Search found 129 matches

by martinus
04 Feb 2024, 14:19
Forum: ESP Easy: Projects / Applications
Topic: "WindowsEasy"
Replies: 4
Views: 1083

Re: "WindowsEasy"

TD-er wrote: 18 Jan 2024, 15:15 What p2p ID did you use, so I can add "Windows" to the ESPEasy code base :)
I'm using 255 currently, just not to interfere for sure. Not that likely that any other will find a usecase for "WindowsEasy" i guess...
by martinus
04 Feb 2024, 14:13
Forum: ESP Easy: Projects / Applications
Topic: Reading NTC and convert to temperature
Replies: 5
Views: 3894

Re: Reading NTC and convert to temperature

We have had some sunny days lately, so i was able to verify the new formula that i've found on the internet to calculate NTC resistance into actual temperatures: //******************************************************************************************** // Calculate Celsius from NTC analog readin...
by martinus
18 Jan 2024, 14:40
Forum: ESP Easy: Projects / Applications
Topic: "WindowsEasy"
Replies: 4
Views: 1083

"WindowsEasy"

As i have really grown to use the rules engine on my ESP devices and also quickly navigate between ESP units to manage my home even without a central home automation system, i wanted to integrate my Windows Hosts into this 'eco system' as well. So i've build a PowerShell based prototype to provide a...
by martinus
14 Jan 2024, 14:31
Forum: ESP Easy: Projects / Applications
Topic: Reading NTC and convert to temperature
Replies: 5
Views: 3894

Re: Reading NTC and convert to temperature

Anyway running an NTC over long wires is a bad idea as you either will pick up lots of noise I would have replaced it if i would be able to access it without climbing up on the roof and see where it is mounted. I have no access from the attic to it. And back in 1992 they mounted it with three meter...
by martinus
14 Jan 2024, 13:46
Forum: ESP Easy: Projects / Applications
Topic: Reading NTC and convert to temperature
Replies: 5
Views: 3894

Re: Reading NTC and convert to temperature

Also getting irregular readings at low temperature (around 5 degrees). Analog values are approx 200 milliVolts now but fluctuating a lot. Hooked up a scope to see what is going on. SensorNoise.png Seems quite some 50 Hz noise on the line (not on VCC feed), so the long wire to the NTC at the roof mus...
by martinus
14 Jan 2024, 11:37
Forum: ESP Easy: Projects / Applications
Topic: Reading NTC and convert to temperature
Replies: 5
Views: 3894

Reading NTC and convert to temperature

Last year during spring, the controller unit for my Solar Water Heater(Zonneboiler) has given up after 30 years of operation. As the company went broke in 2015, no spares, no support. Zonneboiler.png So i decide to replace the controller with an ESP32 driven solution. Just added a relay board to con...
by martinus
14 Jan 2024, 11:23
Forum: ESP Easy: Projects / Applications
Topic: Need for CRITICAL sections on ESP32 freeRTOS/SMP?
Replies: 1
Views: 3216

Need for CRITICAL sections on ESP32 freeRTOS/SMP?

Question not directly related to ESPEasy firmware, but more coding for ESP32 in general. I'm working on an updated version of my custom ESPNOW protocol handling because a single variable would sometimes loose an event from the callback routine if the main loop is too busy. So i've implemented a ring...
by martinus
07 Jan 2024, 11:53
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 12
Views: 33849

Re: Arduino Nano + INA219 = cheap current scope

Maybe there is a capacitor over the EN-pin (which would make perfect sense) which takes some time to discharge. After some years being busy with other thinks in life (like moving to a new house, waiting for renovations to complete, etc), this winter time was convenient to get back to ESP life. I du...
by martinus
07 Dec 2021, 12:42
Forum: ESP Easy: General Discussion
Topic: Espeasy only as AP
Replies: 21
Views: 19973

Re: Espeasy only as AP

Not yet, but I do plan on adding some user preferred mode for WiFi as it is also very useful to allow the WiFi to not turn on at all for a while. A quick hack for you may be to hack the code where it checks to see if the AP is actively used. If it is considered to be actively used, then the AP will...
by martinus
07 Dec 2021, 11:35
Forum: ESP Easy: Hardware
Topic: Anyone still using doorsensors from LCS-Action or Kruidvat or ?
Replies: 0
Views: 15636

Anyone still using doorsensors from LCS-Action or Kruidvat or ?

My hacked LSC doorsensors are still working fine for at least 6 months on fresh batteries. I've noticed that Action is no longer selling these, but Kruidvat seems to sell similar stuff.
All rebranded TUYA stuff AFAIK.
Anyone still using these kind of doorsensors? Using stock ESP Easy on them?
by martinus
07 Dec 2021, 11:27
Forum: ESP Easy: Hardware
Topic: Espeasy on M5Stack
Replies: 9
Views: 8460

Re: Espeasy on M5Stack

I'm using M5Stack modules with the official M5Stack library (included in custom ESPEasy firmware).
But that library is also using an ILI9341 driver. So plugin P095 may also work. But you would have to figure out the exact pin config for the M5Stack display
by martinus
06 Dec 2021, 10:37
Forum: ESP Easy: General Discussion
Topic: Espeasy only as AP
Replies: 21
Views: 19973

Re: Espeasy only as AP

I rediscovered some instructions that made me believe that AP_STA mode is required to have both normal Wifi and ESPNOW: https://randomnerdtutorials.com/esp32-esp-now-wi-fi-web-server/ After running some more tests with 20211105 i noticed that i only needed to disabled the calls to setWifiMode() to p...
by martinus
05 Dec 2021, 09:13
Forum: ESP Easy: General Discussion
Topic: Espeasy only as AP
Replies: 21
Views: 19973

Re: Espeasy only as AP

I've tried to trace back how i even got to the current ESPNOW code that i'm using atm but it looks like results from earlier experiments have been lost. Somehow i must have concluded that i needed to run ESPNOW on the AP interface to be able to let an ESP32 relay incoming ESPNOW packets to an MQTT b...
by martinus
04 Dec 2021, 10:45
Forum: ESP Easy: General Discussion
Topic: Espeasy only as AP
Replies: 21
Views: 19973

Re: Espeasy only as AP

Hello Gijs, Any new development on ESPNOW or on 'persistent AP mode? I've just finished to 'patch' latest release 20211105 to my custom needs and needed to 'hack' even more stuff to avoid OOTB functions from interfering with my own plugin. I did found some new AP advanced settings, but it looks like...
by martinus
06 Feb 2021, 17:05
Forum: ESP Easy: Software
Topic: Custom System Variables
Replies: 6
Views: 7640

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: 6
Views: 7640

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: 6
Views: 7640

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: 9769

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: 4988

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: 4988

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: 4988

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: 3617

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: 3617

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: 5176

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: 5176

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: 5176

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: 5176

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: 3306

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: 21
Views: 19973

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: 27367

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: 18699

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: 12556

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: 27367

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: 18699

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: 10762

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: 18699

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: 18699

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: 18699

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: 27367

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: 27367

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: 27367

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: 25
Views: 21528

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: 18699

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: 14
Views: 24270

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: 14
Views: 24270

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: 14
Views: 24270

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: 15117

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: 15117

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: 23257

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: 12
Views: 33849

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...