Search found 75 matches

by FanOfHue
04 Jan 2020, 16:38
Forum: ESP Easy: Software
Topic: Rule engine and JSON event payload
Replies: 0
Views: 444

Rule engine and JSON event payload

After a year of successfully running ESPCoreRules with the rule engine based on ESP Easy, i felt a need for a bit more advanced event messages between devices. These messages should be able to handle additional metadata on a specific event, besides the information that could be obtained from the top...
by FanOfHue
21 Dec 2019, 14:57
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

After two months of operation as test device, reporting every 10 minutes, the battery voltage is still ok and the decline during the last month is even lower than the first month: SensorBatVoltage.png Looks promising, so yesterday i've build the first two units for production use: DoorSensorModSI702...
by FanOfHue
05 Dec 2019, 20:25
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Robvs wrote:
02 Dec 2019, 12:06
The doorswitch does take 5 seconds to switch a light after the realtime state is changed (eg the magnet is removed or added)
is there any way to make this faster?
If Theo could as ESPNOW protocol to Tasmota it will be a lot faster (<1 Second)
by FanOfHue
05 Dec 2019, 20:00
Forum: Experimental
Topic: ESPCoreRules build 6 is out on github.
Replies: 0
Views: 1194

ESPCoreRules build 6 is out on github.

A friend of mine wanted to use an ESP module to enhance his RaspBerryPi/Domoticz system with a temperature sensor. So i provided a module with ESPCoreRules, but found out that the HTTP command was missing. I use WindowsRules to bridge all messagebus events to domoticz but he does not want to run a w...
by FanOfHue
27 Nov 2019, 21:18
Forum: ESP Easy: Software
Topic: New ESP Easy plugin for ESPNOW
Replies: 9
Views: 3222

Re: New ESP Easy plugin for ESPNOW

If no other project is active I see no point of us being the only one here (as in we should make a sole purpose forum). This is not decided or anything, just my personal thoughts. That might be a very good decision. Looks like most of the other letscontrolit projects are abandoned. Having very old ...
by FanOfHue
27 Nov 2019, 21:03
Forum: ESP Easy: Software
Topic: What can users do to make ESPEasy more attractive.
Replies: 16
Views: 1848

Re: OTA updates on 1MB devices

obod0002c wrote:
26 Nov 2019, 11:48
But it's also true: regardless how good our products are in some areas: we have to provide a stable version.
Second that. Also try to work out a lean,mean,stable core and focus only on plugins to enhance features. It's not my intention to be negative but isn't the core becoming a bit bulky?
by FanOfHue
27 Nov 2019, 20:54
Forum: ESP Easy: Hardware
Topic: Battery goes down WAY too fast on ESP
Replies: 52
Views: 3542

Re: Battery goes down WAY too fast on ESP

but also got my own written code, which boots, connects to Wifi, sends to MQTT and goes to sleep in well under a second . I'm so jealous! Can't get anything done in less then three seconds, unless using ESPNOW. I have to use an ESPNOW gateway, which adds another single point of failure in the loop....
by FanOfHue
27 Nov 2019, 20:41
Forum: ESP Easy: Hardware
Topic: M5Stick gadget
Replies: 1
Views: 1649

M5Stick gadget

Searching for M5Stick on this forum did not give any results, so i assume to be the first one to mention the existence of this gadget: M5Stick.png Loaded ESPCoreRules onto the ESP32 and added a plugin for the SH1107 OLED driver. Very nice to display a clock and cycle the display for other values aut...
by FanOfHue
24 Nov 2019, 15:56
Forum: ESP Easy: Software
Topic: New ESP Easy plugin for ESPNOW
Replies: 9
Views: 3222

Re: New ESP Easy plugin for ESPNOW

Also please have a look at the number of active developers. You can count them on one hand. Maybe even one finger as it seems mainly to be you. When i first came into contact with Letscontrolit, i thought that there would be a lot of developers, considering the various projects. But many projects s...
by FanOfHue
24 Nov 2019, 15:46
Forum: ESP Easy: Hardware
Topic: Battery goes down WAY too fast on ESP
Replies: 52
Views: 3542

Re: Battery goes down WAY too fast on ESP

It would be nice to see more project samples along with true battery life charts, so we could learn which way is best for battery operated sensor devices. I'm working on this LSC doorsensor mod that now is turned into a temperature//humidity sensor: DoorSensorMod.png I only have data for the last mo...
by FanOfHue
11 Nov 2019, 12:27
Forum: ESP Easy: Software
Topic: New ESP Easy plugin for ESPNOW
Replies: 9
Views: 3222

Re: New ESP Easy plugin for ESPNOW

But it currently works only for a few seconds :cry: :cry: , until the receiving ESP Easy connects to Wifi AP. ESPNOW and Wifi can't be used at the same time (AFAIK) You are correct. This is why i commented out the whole wifi part from my ESPNow hack. :) There are no collisions anymore. And the comp...
by FanOfHue
03 Nov 2019, 21:45
Forum: ESP Easy: Software
Topic: ESP Easy plugin update for SmartNodeRules
Replies: 0
Views: 2781

ESP Easy plugin update for SmartNodeRules

Just in case anyone uses this plugin, the update compiles without errors again on recent builds. Final work for this evening :geek: https://github.com/SmartNodeRules/ESPEasyRules However to make it really work, you should uncomment this line in ESPEasy.ino // PluginCall(PLUGIN_UNCONDITIONAL_POLL, 0,...
by FanOfHue
03 Nov 2019, 21:12
Forum: ESP Easy: Software
Topic: New ESP Easy plugin for ESPNOW
Replies: 9
Views: 3222

New ESP Easy plugin for ESPNOW

Also converted the ESPNOW code to ESP Easy, plugin P204. Added to the other stuff: :mrgreen: https://github.com/FanOfHue/Other I can now get a sensor response from ESP Easy (doorsensor) to a normal ESP Easy (NodeMCU) in about 1 second. But it currently works only for a few seconds :cry: :cry: , unti...
by FanOfHue
03 Nov 2019, 17:04
Forum: ESP Easy: Software
Topic: New ESPEasy plugin for LSC door and pir sensors
Replies: 0
Views: 2816

New ESPEasy plugin for LSC door and pir sensors

For those who hacked the LSC (Action store) door or PIR sensors, a small plugin demo to get the status into Domoticz using ESP Easy. Instructions contained within the plugin. Only tested on a nightly build. As the developers are not taking in any new plugins due to size issues and the playground is ...
by FanOfHue
28 Oct 2019, 20:48
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

I tried to build my own firmware from here https://github.com/SmartNodeRules/ESPCoreRules with success but did not manage to get MQTT to work properly :( While waiting for the battery charts to evolve in Domoticz, i'm currently checking out MQTT (and maybe uMQTTBroker) again. The MQTT code exits be...
by FanOfHue
25 Oct 2019, 07:36
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Instead of info being scattered around this forum, I have added some more info on the github wiki, just in case someone wants to build one of my gadget projects. :geek: Howto on the door and pir sensor: https://github.com/SmartNodeRules/Documentation/wiki/SampleESPNOW Howto on the experimental tempe...
by FanOfHue
23 Oct 2019, 20:33
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

happytm wrote:
19 Oct 2019, 21:28
Can you please publish the ESPNow code on GitHub so someone with these fancy equipment can test the code for us ? I myself do not have equipment to test it.

Thanks.
Build 5 seems stable, it has been running for several days here and the code is available on GitHub.
by FanOfHue
19 Oct 2019, 16:02
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Can you please calculate power consumption at different stages as shown above.It will be very useful to calculate battery life. Thanks. How would I be able to calculate this? I've seen one guy doing some sophisticated measurements on ESP like this: https://www.bakke.online/wp-content/uploads/2017/0...
by FanOfHue
16 Oct 2019, 20:00
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

ESPNOW was a small but useful side step to improve the firmware for use on the LSC devices. For all that have asked for more detailed timing specifics, i hooked up a logic analyzer to get some accurate timings. Global graph, edge triggered on the reed contact, checking VCC power line and serial comm...
by FanOfHue
14 Oct 2019, 20:27
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

I want to connect it to another ESP that runs ESP Easy. Using smartnoderules on the sensor and gateway should also work for ESP Easy, although i did not test it because i have no ESP Easy devices running anymore. You can give it a try, just connect the 'gateway' to an ESP Easy device (link both ser...
by FanOfHue
12 Oct 2019, 12:24
Forum: ESP Easy: Software
Topic: ESP-NOW
Replies: 6
Views: 3611

Re: ESP-NOW

Have to do some cleanup, but code is nearing completion for production use. Some minor changes reduced the send-delay from 300 -> 240 mSeconds SmartNodeRules Tuya plugin now properly checks the MCU responses and creates events for the rule engine and it also creates a debug event to send internal re...
by FanOfHue
12 Oct 2019, 10:05
Forum: ESP Easy: Software
Topic: ESP-NOW
Replies: 6
Views: 3611

Re: ESP-NOW

Please keep us informed about time it consume to send data over ESPNow protocol. Thanks. Using millis() as counter, current dev version takes 300 mSec to get the message out. I estimate that approx. 100 mSec is spend on communication to the MCU on 9600 baud. I tried to skip some parts like getting ...
by FanOfHue
11 Oct 2019, 14:41
Forum: ESP Easy: Software
Topic: ESP-NOW
Replies: 6
Views: 3611

Re: ESP-NOW

I decided to dive in deep myself, but it took a while to find a good sample on how to setup ESP-NOW with two STATION mode units and make use of encryption and peering. This supprised me a bit, but majority of samples skip encryption options and sometimes also use mac broadcast messages. That looks l...
by FanOfHue
09 Oct 2019, 13:20
Forum: ESP Easy: Software
Topic: ESP-NOW
Replies: 6
Views: 3611

ESP-NOW

Who has experience with ESP-NOW, combined with ESPEasy at the same time? I've read that it cannot be combined with normal Wifi operation so that could complicate things a bit. How to do OTA upgrade when the device can't use normal Wifi/Webserver and at the same time being a ESP-NOW sensor? I guess w...
by FanOfHue
09 Oct 2019, 12:01
Forum: ESP Easy: Projects / Applications
Topic: TinyExtender project
Replies: 2
Views: 3884

Re: TinyExtender project

I'm not afraid of that part, as the entire step-up converter is "power-controlled" by the MCU. The MCU and ATTiny85 are running on direct battery voltage. The ESP runs on the step-up converter and it's powered down when not in use. I'm more worried about the high current consumption of the ESP and t...
by FanOfHue
08 Oct 2019, 16:28
Forum: ESP Easy: Projects / Applications
Topic: TinyExtender project
Replies: 2
Views: 3884

TinyExtender project

Don't know if anyone still working on the letscontrolit NodoTiny repository, last commit 3 years ago :shock: But found some nice code stuff that helped me create a TinyExtender project, similar to the Pro Mini Extender and using a similar plugin and protocol. Currently using it as a test device that...
by FanOfHue
27 Sep 2019, 14:38
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

As you may have seen on GitHub, I've been very busy trying to free up space and thinking of other sets of plugins to combine, so we have free space for other additions. Can you add this suggestion here: https://github.com/letscontrolit/ESPEasy/issues/2590 Would be great if letscontrolit could provi...
by FanOfHue
26 Sep 2019, 17:45
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

[...] When will it be part of official build? That's hard to say right now. At the moment we're running into all kinds of build issues regarding build size, so adding more plugins is not going to help much then. What if you only add the one plugin so you can link SmartNodeRules network to ESPEasy n...
by FanOfHue
26 Sep 2019, 17:33
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Hi, I just bought a door sensor and a pir sensor. Could you give us some more detailled info how do you flash it, with wich firmware ? Can we integrate it with Domoticz ? Thx I used the hardware way, using a header (see picture in earlier post). Boot with GPIO0 low to get it into flash mode. This i...
by FanOfHue
25 Sep 2019, 15:35
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

How does SmartNodeRules know when the door is open or closed? My SmartNodeRules plugin communicates with the onboard MCU to get the status. No variable needed at all. Current rules: On System#Boot do tuyasend 1,0,0 tuyasend 2,1,2 tuyasend 2,1,3 endon On Wifi#Connected do sendtoudp 255.255.255.255,6...
by FanOfHue
24 Sep 2019, 12:51
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

How long does the uC keeps the tywe3s (esp) on when the firmware don't actively sends the rights messages over uart to the uC? It's about 13 seconds in total in my case. Takes 3 seconds to get connected. I can ping it for about 10 seconds. With serial comms, it's only powered for 5 seconds, so it w...
by FanOfHue
21 Sep 2019, 10:18
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Has anyone got the door sensor running on custom firmware? I have one running with SmartNodeRules. Just updated the plugin so it creates a rule event "TUYA#Event=<state>" when the sensor detects a change. Sample rule: On TUYA#Event do msgbus %sysname%/DoorSwitch=%eventvalue% endon Any of the other ...
by FanOfHue
07 Sep 2019, 18:37
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

I also reverse engineered the serial protocol to find out that it's not really following protocol as documented. Taken from my plugin comments: * tuyaSend <cmd>,<len>,<value> Send a serial message to the 'tuya' MCU as used on LSC Smart Connect PIR and Doorsensors * * Still debugging. Official docume...
by FanOfHue
07 Sep 2019, 16:21
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Latest commit of ESPCoreRules has a work-in-progress quick and dirty plugin for the doorsensor: ESPCoreRules/_P201_TUYA.ino You might be able to see how it works from this plugin: https://github.com/SmartNodeRules/ESPCoreRules/blob/master/_P201_TUYA.ino The plugin currently sends messages received f...
by FanOfHue
07 Sep 2019, 16:12
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

I had the latest dev ESPCoreRules code on my laptop. I added a "reset" command that should format and create the files. Commit to github just now. This version also has serial debug enabled so you could see a bit more on serial. You could try this: Upload the latest code Boot the ESP, wait until it'...
by FanOfHue
07 Sep 2019, 13:45
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

AFAIK, the door sensor has no GPIO attached to any hardware. Only RX/TX is connected to the other MCU. I'm working on a serial plugin for ESPCoreRules to read the status from the other MCU and instruct it to power off again. I have seen an existing plugin for ESP Easy to controll Tuya MCU that might...
by FanOfHue
07 Sep 2019, 13:36
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

If you hardcoded the Wifi SSID it does not depend on SPIFFS. As long as it prints "SPIFFS?" on serial, the system is unable to mount SPIFFS. From my experience it means that there is no formatted SPIFFS partition or it is in the wrong area. For Wemos D1 mini, i use 4M (1M SPIFFS) setting on both ESP...
by FanOfHue
07 Sep 2019, 09:03
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

It looks like the SPIFFS partition does not mount for some reason. That's a major requirement to continue. Did you use exactly the same compiler settings for ESP Easy and ESPCoreRules?
by FanOfHue
05 Sep 2019, 17:13
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

Can you please give little how to guide so I can setup my esp8266 device using your firmware. I looked at wiki pages but it does not have information on how to get started.I was able to compile & upload for esp8266 but in serial console I get this: ⸮ogl`orǛ⸮g#⸮ls⸮⸮gb⸮d⸮⸮dd⸮⸮$`⸮⸮n⸮h SPIFFS? sd I was...
by FanOfHue
03 Sep 2019, 08:27
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

I found some more info and a tear-down of these devices on a the German forum mikrocontroller.net . It seams that the OTA update with Tuya-convert has been disabled by Tuya with a new firmware and these devices would have the new update. Also some of these devices don't have the esp8266 or esp8285 ...
by FanOfHue
03 Sep 2019, 08:23
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

Chip/Module used: Switch Plug ESP8285-TYWE2S Door Sensor ESP8266-TYWE3S PIR Sensor ESP8266-TYWE3S Hand Remote RTL8710BN-WR3 Sirene RTL8710BN-WR3 Led Strip ESP8266-TYWE3L At least the ESP editions can be flashed with ESP Easy or similar stuff. I'm not aware of any custom firmware for the RTL modules.
by FanOfHue
20 Aug 2019, 20:18
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

I seems that you can use a project named Tuya-Convert to replace the firmware OTA way, but then you would need an RPI-3. I don't have one, so i took the hardware hack road: Doorsensor.png Not really difficult to do. A siimple header gives access to RX/TX and GPIO-0 and that's all you need. I used Ar...
by FanOfHue
20 Aug 2019, 15:02
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

Re: New hackable ESP gadgets in local budget store "action" !!!

The doorsensor has also been migrated to a SmartNode with custom firmware.
by FanOfHue
17 Aug 2019, 12:25
Forum: ESP Easy: Hardware
Topic: New hackable ESP gadgets in local budget store "action" !!!
Replies: 85
Views: 30750

New hackable ESP gadgets in local budget store "action" !!!

Yesterday i found some nice new products available in the Dutch Action store. A full range of Wifi sensors and lights most of them under 9.95 euro each. I bought some sensors to see what's inside and some of them have the Tuya ESP8266 module. So hack friendly i guessed So my first "SmartNodeRules" P...
by FanOfHue
02 Aug 2019, 21:37
Forum: Experimental
Topic: Pro Mini Extender "Advanced" concept
Replies: 8
Views: 6454

Re: Pro Mini Extender "Advanced" concept

I've pushed an update to GitHub: https://github.com/SmartNodeRules/NanoCore The core loop is a lot faster now as i've changed the "scheduler' using interrupt driven timers that will also be more accurate. Also changed the unconditional call to a 100_per_second call which should be more than enough. ...
by FanOfHue
27 Jul 2019, 16:29
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

I've just updates several repositories on github. Main update is the addition of the group feature on the Node List. Because the list of nodes has grown rapidly in my home, i can now group devices and the main landing web page first shows the discovered groups. Selecting a group will list all nodes ...
by FanOfHue
27 Jul 2019, 16:21
Forum: ESP Easy: Software
Topic: What happened with PLUGIN_UNCONDITIONAL_POLL?
Replies: 1
Views: 3083

What happened with PLUGIN_UNCONDITIONAL_POLL?

Just upgraded my dev node from ESPEasy, dated 2018-11-22 to the latest stable release dated 2019-06-30 (last release seems to crash) But now, the smartnoderules plugin no longer works. After some debugging, i found this line commented out in the ESPEasy.ino file: //PluginCall(PLUGIN_UNCONDITIONAL_PO...
by FanOfHue
27 Jul 2019, 11:18
Forum: Experimental
Topic: Pro Mini Extender "Advanced" concept
Replies: 8
Views: 6454

Re: Pro Mini Extender "Advanced" concept

This sounds really great. I was also thinking about something similar, to use a small 'co processor' board to either handle time critical stuff (ESP8266 is not good at real time stuff) or help to extend some GPIO pins like serial to I2C or something like that. Can you show more? (and Jimmy will upd...
by FanOfHue
27 Jul 2019, 11:15
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

Would be great if the plugin is added and maybe other people could have use cases for it. I currently use the messagebus for sensor data that is repeated every minute so i guess that some missed messages get unnoticed. Looking at the sensor graphs, i don't see any gaps. I've defined a confirmation f...
by FanOfHue
16 Jul 2019, 17:40
Forum: ESP Easy: Projects / Applications
Topic: "SmartNodeRules" concept idea
Replies: 37
Views: 3874

Re: "SmartNodeRules" concept idea

I really like the idea. The ESPeasy p2p protocol is getting some rewrite to share plugin data among nodes. If you need any changes/additions or have some good ideas, please let me know. This is just something I was thinking about also, but was not yet able to make it due to time and time lost in th...