Search found 115 matches

by martinus
06 Feb 2021, 17:05
Forum: ESP Easy: Software
Topic: Custom System Variables
Replies: 5
Views: 2040

Re: Custom System Variables

... MQTT Import plugin with JSON parsing and filtering... I also added some custom json parsing stuff to support my 'private' payload conventions on MQTT messages. Basically inspired by this work: https://github.com/SmartNodeRules/Documentation/wiki Comes down to this idea: Outdoor/Temperature={&qu...
by martinus
06 Feb 2021, 16:54
Forum: ESP Easy: Software
Topic: Custom System Variables
Replies: 5
Views: 2040

Re: Custom System Variables

The plugin is quite a huge plugin that holds most of my customization's. But the string handling parts basically comes down to this: (i fear that this is quite a poor implementation to accomplish string var support, so it's not PR worthy) I think if Gijs wants to support string variables, he's able ...
by martinus
06 Feb 2021, 11:55
Forum: ESP Easy: Software
Topic: Custom System Variables
Replies: 5
Views: 2040

Re: Custom System Variables

I'm using a custom plugin to support the use of named string variables with this command: LetString <varname>,<string expression> This is convenient in rules where url paths are used multiple times. First rule at boot sets a var like "URL" to "http://192.168.0.123/xxx/aaaa/xxx" T...
by martinus
05 Feb 2021, 14:32
Forum: ESP Easy: General Discussion
Topic: building with vs code/ atom error
Replies: 22
Views: 3079

Re: building with vs code/ atom error

Lol, I feel so stupid. Of course git wasn't installed. Thanks! Same happened to me. Followed more generic instructions that could build regular ESP projects but not ESPEasy. Would be more user friendly if the IDE would be able to say something like "git client not installed" instead of sp...
by martinus
27 Jan 2021, 19:43
Forum: ESP Easy: Software
Topic: Change in timer event? Rules not working after upgrade
Replies: 7
Views: 2597

Re: Change in timer event? Rules not working after upgrade

I've also made some customizations to the stock rulematch function, but that only deals with wildcard processing. And it has worked fine on the april-2020 version of ESPEasy. But maybe some of my changes prevent the current version from functioning properly. If the new timers events work on stock ve...
by martinus
27 Jan 2021, 16:23
Forum: ESP Easy: Software
Topic: Change in timer event? Rules not working after upgrade
Replies: 7
Views: 2597

Re: Change in timer event? Rules not working after upgrade

Alright, so we have auto repeating added, with the loop count as secondary parameter.

Nice, but for some reason the "On Rules#Timer=1 do" is no longer matching the event on my upgraded unit.
by martinus
27 Jan 2021, 15:46
Forum: ESP Easy: Software
Topic: Change in timer event? Rules not working after upgrade
Replies: 7
Views: 2597

Change in timer event? Rules not working after upgrade

After upgrading the first unit (ESP32 M5Stack) from 20200410 to 20210114, i've noticed that the display no longer updates the content. Checking events, noticed that the event is now "Rules#Timer=1,1" What's the second parameter about? Readthedocs does not mention anything about this change...
by martinus
26 Jan 2021, 12:18
Forum: ESP Easy: Software
Topic: IR support ESP32 blocked by design or doing something wrong?
Replies: 4
Views: 1987

Re: IR support ESP32 blocked by design or doing something wrong?

Thanks for the explanations. I've tweaked the Plaformio*.ini files to show only the three build types that i need: custom_ESP8266_4M1M custom_ESP8266_1M custom_ESP32_4M316k And finally all three compile with PlatformIO successfully. Most of the time was spend on updating my custom plugins, because a...
by martinus
26 Jan 2021, 10:00
Forum: ESP Easy: Software
Topic: IR support ESP32 blocked by design or doing something wrong?
Replies: 4
Views: 1987

IR support ESP32 blocked by design or doing something wrong?

Have been running IR support on ESP32 for quite a while, so consider it stable. But now i'm trying to compile my custom setup with PlatformIO instead of Arduino IDE Took a while to figure out why it did not compile, until i discovered that the IR library has been blocked by design? This file: platfo...
by martinus
23 Jan 2021, 16:49
Forum: ESP Easy: Software
Topic: PlatformIO issue
Replies: 7
Views: 2220

Re: PlatformIO issue

You also experimented with a compressed 2-step OTA build, so maybe we can together have a look at it to see if we can get the intermediate build smaller so we are not limited to this 600k limit we now have. Yes i remember trying the gzipped version. But back then, the Arduino lib version did not in...
by martinus
23 Jan 2021, 16:05
Forum: ESP Easy: Software
Topic: PlatformIO issue
Replies: 7
Views: 2220

Re: PlatformIO issue

TD-er wrote: 23 Jan 2021, 15:21 With 574k you have stripped out a lot.
That was just a test without including any plugin.
After including C001,C005 and my own Smartplug plugin P240, it compiles to 599 kB.
Still ok for my 'Action' brand Smartplugs that use the ESP8285
by martinus
23 Jan 2021, 15:08
Forum: ESP Easy: Software
Topic: PlatformIO issue
Replies: 7
Views: 2220

Re: PlatformIO issue

Thanks for the video! I used this generic tutorial: https://randomnerdtutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/ But they did not mention anything about git for windows. I had github desktop installed but your video pointed out that you need "Git for windows" After install...
by martinus
23 Jan 2021, 09:13
Forum: ESP Easy: Software
Topic: PlatformIO issue
Replies: 7
Views: 2220

PlatformIO issue

Trying to switch from my (favorite) Arduino-IDE to PlatformIO. I've installed VS-Code and extension PlatformIO IDE. And i can now compile a sample on ESP8266 and ESP32 (basic sketch) However, compiling latest ESPEasy project seems to require 2.74 and the tool manager gives an error. No luck here. > ...
by martinus
22 Jan 2021, 13:30
Forum: ESP Easy: Software
Topic: Unexpected progsize increase from release 20200410 to 2021014
Replies: 3
Views: 1930

Unexpected progsize increase from release 20200410 to 2021014

Hello All, Been a while since i had time to look at ESPEasy again. Decided to start upgrading from release 20200410 to the latest. Worked out fine for my ESP32 modules. But trying to compile a new version for my 1M smartplugs leads to a very large increase of code size. Compiled a version using cust...
by martinus
26 Oct 2020, 13:00
Forum: ESP Easy: General Discussion
Topic: Espeasy only as AP
Replies: 11
Views: 7182

Re: Espeasy only as AP

As i needed a persistent AP for my ESPNOW stack running on the AP interface i just did this slash-hammer approach: void setWifiMode(WiFiMode_t wifimode) { if(c_persistentAP) return; c_persistentAP is a global, set by the ESPNOW plugin when active in a task. The ESPNOW plugin configures the Wifi conn...
by martinus
03 Oct 2020, 10:57
Forum: ESP Easy: General Discussion
Topic: Making EspEasy a little bit more useable with ioBroker
Replies: 37
Views: 16275

Re: Making EspEasy a little bit more useable with ioBroker

But I need to check if there are plugins configured with the Name "In2Out" or with the Plugin ID 248 and how many are configured. For my smartplug (p240), I use this to check which tasks are configured for this plugin and it also checks the task by name, because multiple tasks could be de...
by martinus
01 Oct 2020, 16:35
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

I will make a video on how to proceed. Today i gave my earlier local install a new try and when i used Github Desktop to open the repo in Visual Studio code, i got the "alien" icon as described in the docs. From there it was just a matter of selecting "Build All" and some time l...
by martinus
01 Oct 2020, 15:33
Forum: ESP Easy: Software
Topic: neopixel (basic)
Replies: 12
Views: 6952

Re: neopixel (basic)

Now I want to connect 3 ledstrips and set them separtely depending the sensorvalue. How does this work in esp easy? No I use in my rule the name 'NeoPixelAll' to set one ledstrip. If I try to change this to the devicename of GPIO15 (wled) nothing happens. How do I adress the different ledstrips in ...
by martinus
01 Oct 2020, 11:41
Forum: ESP Easy: General Discussion
Topic: Making EspEasy a little bit more useable with ioBroker
Replies: 37
Views: 16275

Re: Making EspEasy a little bit more useable with ioBroker

moelski wrote: 01 Oct 2020, 10:52 Oh Man ... I´m stupid ...
Everyone is allowed to be stupid once a month :lol:
If the frequency increases, you may have to start worrying...
by martinus
01 Oct 2020, 10:09
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

Also noticed that the free account does not allow for private repos. So you should avoid using sensitive data in your custom sources or pay 8 euro per month to make a private repo (?)
I guess the free account suits collaborating on repos that are already public without issues.
by martinus
01 Oct 2020, 10:04
Forum: ESP Easy: Hardware
Topic: LCD Keypad Shield
Replies: 7
Views: 7957

Re: LCD Keypad Shield

rieders wrote: 01 Oct 2020, 09:15 When I switch the solid state relay it opens, but when I switch the relay off, the relay does not close.
Just wondering: i guess most Solid State relays use a triac circuit to switch AC loads only. Looks like you are switching a 12V DC load.
by martinus
30 Sep 2020, 19:40
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

If you have a GitHub account and the "gitpod" browser plugin installed, you can have a single-click build environment (literally a single click) First parts were easy, the button was there and now i'm facing a webbased IDE with the ESPEasy repo listed. Looks promising! But the next steps?...
by martinus
30 Sep 2020, 16:39
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

Maybe it's time to upload a more recent zip package containing the latest release to offer "Compile for dummies" again. Great idea. And the option for ESP8266 should be also build in. I've added the 2.7.4 ESP8266 support and updated source to 20200913 (with the small TDer patch). Verified...
by martinus
30 Sep 2020, 15:47
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

I just added a commit which does prepare this define and also documents the Arduino IDE build process. Currently it is possible to rename the src folder to ESPEasy and let PlatformIO know where to find the sources. But I'm afraid we might loose all Git history on files when moving it. I know Git do...
by martinus
30 Sep 2020, 15:15
Forum: ESP Easy: General Discussion
Topic: Making EspEasy a little bit more useable with ioBroker
Replies: 37
Views: 16275

Re: Making EspEasy a little bit more useable with ioBroker

3) Add a simple switch botton to the UI That´s a topic I missed in my first post here ... In Tasmota there is a simple ON / OFF Button (beside the measured values) on the first webpage. So you enter the URL to your browser and can switch the plug immediately. I used this feature often. See some RSS...
by martinus
30 Sep 2020, 15:08
Forum: ESP Easy: General Discussion
Topic: Making EspEasy a little bit more useable with ioBroker
Replies: 37
Views: 16275

Re: Making EspEasy a little bit more useable with ioBroker

@Martinus: You can use any system variable in topics too. Just use something like this: %sysname%/%tskname%/%valname% Which is the default by the way when you add a new instance of the Home Assistant (openHAB) MQTT (C005) I know, it was there from the beginning. But AFAIK you still have to use ../g...
by martinus
30 Sep 2020, 10:36
Forum: ESP Easy: General Discussion
Topic: Making EspEasy a little bit more useable with ioBroker
Replies: 37
Views: 16275

Re: Making EspEasy a little bit more useable with ioBroker

I've also been working on a dedicated smartplug plugin in combination with Node-Red and MQTT, see this topic: https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=7635&p=43977#p43977 It makes life easier and no rules needed. But i also had to tweak ESPEasy MQTT C005 controller to get it w...
by martinus
30 Sep 2020, 07:17
Forum: ESP Easy: Software
Topic: mqtt - how to?
Replies: 23
Views: 10228

Re: mqtt - how to?

At the time of developing support for MQTT it became clear that there was no such thing as a standard syntax for MQTT messages. So soon after the first MQTT controller plugin, additional ones were build to support specific HOME Automation controllers in a limited way. But from there on, it also beca...
by martinus
28 Sep 2020, 10:51
Forum: ESP Easy: General Discussion
Topic: undefined reference to `do_process_c00x
Replies: 29
Views: 10098

Re: undefined reference to `do_process_c00x

But there is one thing I really hate by using those tools ... It´s a lot of time to get PlatformIO up and running. I like the Arduino IDE because of it´s portable feature. You put all the stuff you need into one folder and you are done. If I have to do some changes for my devices I can start over i...
by martinus
08 Sep 2020, 12:54
Forum: ESP Easy: General Discussion
Topic: ESP32 and NeoPixel don't work
Replies: 11
Views: 9993

Re: ESP32 and NeoPixel don't work

Just keep in mind that using templates like that, you effectively create a new object (or function) definition, which also needs to be compiled. Thus every combination of different template variables will increase the build size (and build time). So if you do know the parameters at compile time, th...
by martinus
07 Sep 2020, 13:17
Forum: ESP Easy: General Discussion
Topic: ESP32 and NeoPixel don't work
Replies: 11
Views: 9993

Re: ESP32 and NeoPixel don't work

As said not so easy because it uses a specific template for each pin to be defined. I was working on a demo/test plugin to verify 3 different drivers options: #ifdef USES_P038 //####################################################################################################### //################...
by martinus
02 Sep 2020, 15:34
Forum: ESP Easy: General Discussion
Topic: ESP32 and NeoPixel don't work
Replies: 11
Views: 9993

Re: ESP32 and NeoPixel don't work

I tried this a while ago on M5Stack modules (ESP32). If i remember correctly, it didn't work properly using Adafruit library. The FastLED worked but it was not so easy to implement in ESP Easy with runtime configurable pin selection. I also found a small library that was specifically build for ESP32...
by martinus
26 Jul 2020, 10:27
Forum: ESP Easy: General Discussion
Topic: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?
Replies: 18
Views: 8870

Re: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?

I guess your issue is more related to the used protocol instead of the frequency. You can't change the frequency in the ESPEasy webgui. If you want to learn things, maybe check this link: https://esp8266-shop.com/blog/esp8266-ir-remote-control-of-air-conditioners/ You could try the IR receiver and s...
by martinus
23 Jul 2020, 14:27
Forum: ESP Easy: General Discussion
Topic: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?
Replies: 18
Views: 8870

Re: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?

The IR Receivers used for this library decode the incoming signal to a mark/space pulse signal and the 3x kHz carrier signal is removed. The library never sees the carrier signal. The used IR LED does not modulate by itself so the library uses a software PWM signal carrier to generate mark/space sig...
by martinus
29 Jun 2020, 16:47
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 12
Views: 14466

Re: New protocol for battery powered devices.

After some tweaking on ESPEasy, this is the best i could achieve on the LSC "cold-boot circuit". 400 milliseconds to do setup, serial communications to the MCU, init boot message to verify channel, check status and send final message. All done with rules. And 500 mSeconds before actual sle...
by martinus
27 Jun 2020, 17:36
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 12244

Re: Arduino Nano + INA219 = cheap current scope

I am using the AP mac interface on the receiver so that should be ok. About the sleep, it turns out that it does work like planned. The power-off as assumed in the previous graph was not true. I also measured VCC and used a 4 ms timescale, to find out that the VCC remains active for an additional se...
by martinus
27 Jun 2020, 09:25
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 12244

Re: Arduino Nano + INA219 = cheap current scope

I'm using the LSC doorsensor circuit for my battery devices. So every boot is a cold-boot in this case and it cannot use normal deepsleep. So i guess some issues cannot be avoided with this type of circuit. But the sleep current of the entire circuit is now 14 uA which is sufficient. Battery life wi...
by martinus
27 Jun 2020, 09:12
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 12
Views: 14466

Re: New protocol for battery powered devices.

TD-er wrote: 26 Jun 2020, 22:23 Well, that's not entirely true.
I am working on adding an ESP-now layer to ESPEasy.
It is a work-in-progress.
Good to hear that ESPNOW will be part of the stock firmware. That will likely add to the level of adoption from end users.
by martinus
26 Jun 2020, 15:45
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 12244

Re: Arduino Nano + INA219 = cheap current scope

Almost forgot that the Arduino Nano has digital inputs to mimic a cheap logic analyzer and the Arduino Serial plotter can do multiple lines in the chart. So i used GPIO-0 on the ESP to toggle at some given points in the rules engine and hooked up to an input on the Nano. Gives more info on what happ...
by martinus
26 Jun 2020, 10:51
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 12
Views: 14466

Re: New protocol for battery powered devices.

I have been looking for cheap and simple ways to reduce power consumption for my battery powered ESP8266 & ESP32 devices for quite long time. I haven't seen any request on alternative protocols for battery operated ESP devices, not for my ESPNOW experiments, nor your 'probe-request' approach. S...
by martinus
25 Jun 2020, 15:30
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 12244

Re: Arduino Nano + INA219 = cheap current scope

What range have you set for the current? And are you measuring the current in front of a linear voltage regulator? The range is set to 400 mA. Measuring the entire setup, so the modded doorsensor with the Arduino Pro Mini and the servo. The INA sensor is between the batteries and the Vbat connectio...
by martinus
24 Jun 2020, 16:40
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 12244

Arduino Nano + INA219 = cheap current scope

In order to checkout current consumption of the ESP doorsensor mod (using ESPNOW and controlling a servo on batteries) i decided to hookup an INA219 module to an old Arduino Nano module and used the Arduino IDE serial plotter to show exact current measures from boot till shut-down: ESPNOW_Current.pn...
by martinus
07 Jun 2020, 13:23
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 11333

Re: ESP32 Cluster

Finished a bare plugin that checks the remote node webgui and provide the Serial2 debug mode: WD1.png WD2.png The plugin adds a small "/watchdog" web page without a password. It currently only responds with OK. When i disable the watchdog on one node, the other node will reset it after thr...
by martinus
06 Jun 2020, 18:49
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 11333

Re: ESP32 Cluster

I've also cross wired the standard serial port on both modules to the HW-serial2 port and started working on a watchdog/debug plugin. I can now check the serial output from each node using the weblog feature on the other node and see all output even from the early boot stage: 23164: SER 2: ets Jun 8...
by martinus
06 Jun 2020, 14:38
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 11333

Re: ESP32 Cluster

The ESP32 does have a HW watchdog, right? Do you know what may have gone wrong for the unit to get stuck? For example, did it reboot and have some GPIO pin low or high to force the unit into flash boot mode? Yes, the ESP32 also has a build-in watchdog. But it will only assist in severe cases where ...
by martinus
06 Jun 2020, 12:56
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 11333

ESP32 Cluster

Two weeks ago, during holiday i wanted to remotely update a few rules on my central ESPEasy unit. And the unit got stuck after submit and no way to push the reset button. This is inconvenient because several HA logic is done by this main unit instead of using Domoticz. I had used an I2C watchdog in ...
by martinus
02 Jun 2020, 17:08
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 13964

Re: E-paper on batteries

I'm planning to use an e-paper inside a picture frame, running on batteries. The bigger display has arrived and it's also running with some test values, this time inside/outside temperature and the battery voltage: WaveShare.png This setup uses an enhanced Pro Mini Extender connected to I2C bus. All...
by martinus
02 Jun 2020, 17:03
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 13964

Re: E-paper on batteries

Ath wrote: 31 May 2020, 14:39 Great results so far!

Btw: Are those numbers anything real, like from a PV installation, or just something random?
The upper value is the controlled servo position (not used here) and the lower value is the battery voltage. Just for testing...
by martinus
02 Jun 2020, 17:02
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 13964

Re: E-paper on batteries

Some of these displays also support partial updates. Maybe that can shorten the refresh time? Not sure if that will work when everything is powered off between cycles? And for even lower power consumption in deep sleep, see: https://www.youtube.com/watch?v=n_A_8Y4xNx8 (not tested myself) That does ...
by martinus
31 May 2020, 13:24
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 13964

E-paper on batteries

While a normal LCD would draw current al the time, an E-paper display should retain it's picture without any power. To do some experiments, i've ordered a Wemos E-paper display to see if this can be run on batteries for several months. Unfortunately, the display refresh takes up to 2 seconds, but du...