Page 1 of 1

Best esp8266 firmware for usage with domoticz

Posted: Saturday 23 July 2016 15:14
by superczar
I have around 12 ESP8266 doing duty around the house as sensors or actuator relays.
I am currently using ESP_Easy on all just because that was the site through which I discovered the ESP8266 and am really familar with it.

By and large I am happy with the esp_easy firmware except a few minor quibbles (minor instability issues at times, returns to an off state after a power outage and not the old state)

I understand that quite a few people use NodeMCU as well and perhaps other firmwares too.
Would be great to hear other folks experience with either NodeMCU (or any other firmware) and what their experience has been in production

Re: Best esp8266 firmware for usage with domoticz

Posted: Friday 19 August 2016 9:31
by franzelare
I run mysensor nodes on my ESP units as direct gateway.

I use them for temperature sensors (where I used to use z-wave)
In my garden shed to sense temperature, humidity, doors
As IR remote to control my AV set
For RGB control of LED strips

Next up is curtain control with some old motors I have and ESP units to control them

Very happy with the mysensor nodes, since I can see when they are connected and use a heartbeat to keep them alive (heartbeat will hard reboot the ESP unit if the connection is lost for >5minutes and reconnect from domoticz)

Re: Best esp8266 firmware for usage with domoticz

Posted: Friday 19 August 2016 9:44
by trixwood
And how to you save/read the previous state, in case of power failure?

Re: Best esp8266 firmware for usage with domoticz

Posted: Monday 22 August 2016 12:38
by franzelare
At power up I read all states from the inputs and for the outputs, I don't have key items that need to be set at power up, so all settings are low normally, only on my RGB lestrip I pull the settings from domoticz at power up.
send(msg.set(DOMOTICZ_IDX))
that will return the status of that IDX, what you can caputre in the reply and set the output

Secondly I send the data from all in puts every 30 minutes to be sure the status is correct plus I have a heartbeat script every minute since I did not get the mysensor heartbeat working properly under domoticz. the script in domoticz sends an on signal on mysensor id 100 to the ESP unit, that replies by sending back an off sinal for that ID. if domoticz doesn't see the heartbeat return for 5 minutes it resets the connection, and if the ESP unit did not see the heartbeat for 5 minutes it reboots (ESP has a software function for this, on normal arduino units I do this with a Do pulling the reset pin for a hard reboot)

Re: Best esp8266 firmware for usage with domoticz

Posted: Tuesday 11 April 2017 20:48
by davidlightsa
franzelare wrote: send(msg.set(DOMOTICZ_IDX))
that will return the status of that IDX, what you can caputre in the reply and set the output

Secondly I send the data from all in puts every 30 minutes to be sure the status is correct
Please may you elaborate step by step how you did this on both the ESP and Domoticz. I am having the exact same issue, whereby my sensors are in a different state as Domoticz reports after a power failure.

Re: Best esp8266 firmware for usage with domoticz

Posted: Saturday 15 April 2017 11:30
by franzelare
when you use a mysensor node and you use the message
send(msg.set(DOMOTICZ_IDX))
domoticz will send the status of the IDX out to the mysensor node as if is was just toggled

Re: Best esp8266 firmware for usage with domoticz

Posted: Sunday 29 October 2017 17:10
by gajotnt