ESP8266 native support
Moderators: leecollings, remb0
-
- Posts: 169
- Joined: Wednesday 30 September 2015 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8975
- Location: United Kingdom
- Contact:
ESP8266 native support
Hi all,
I wonder if Domoticz is going to support ESP8266 natively and not just via JSON?
Thanks
Alex
I wonder if Domoticz is going to support ESP8266 natively and not just via JSON?
Thanks
Alex
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: ESP8266 native support
With which firmware?
ESPEasy, Nodemcu,...
ESPEasy, Nodemcu,...
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: ESP8266 native support
With ESPEasy FW mqtt works great !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: ESP8266 native support
AFAIK you don't need Json to control ESP8266 with ESPEasy FW.
What I', missing is to receive the state of a GPIO after I've sent a command to the ESP8266.
But reading the ESPEasy Wiki I found this http://www.esp8266.nu/index.php/Tutorial_Rules and probably it's going to be implemented via Rules, if you have a release higher than 100 (you need to download via Github and compile with Arduino SW).
It's interesting with rules to define timers and send command using it.
In my case, I use it with an irrigation system, and I'm always worried that when I send a command from Domoticz to ESP it's going to be missed for any reason.
If I send a command with a timer, if the Off command is missing, and I've defined a timer, i'm pretty sure that is going to be Off by itself.
When there will be the possibility to have the ESP send something via MQTT or HTTP so that Domoticz can be updated on the status it will be very nice and complete.
What I', missing is to receive the state of a GPIO after I've sent a command to the ESP8266.
But reading the ESPEasy Wiki I found this http://www.esp8266.nu/index.php/Tutorial_Rules and probably it's going to be implemented via Rules, if you have a release higher than 100 (you need to download via Github and compile with Arduino SW).
It's interesting with rules to define timers and send command using it.
In my case, I use it with an irrigation system, and I'm always worried that when I send a command from Domoticz to ESP it's going to be missed for any reason.
If I send a command with a timer, if the Off command is missing, and I've defined a timer, i'm pretty sure that is going to be Off by itself.
When there will be the possibility to have the ESP send something via MQTT or HTTP so that Domoticz can be updated on the status it will be very nice and complete.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
-
- Posts: 169
- Joined: Wednesday 30 September 2015 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8975
- Location: United Kingdom
- Contact:
Re: ESP8266 native support
I meant via the Hardware section (like MySensors for example)
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: ESP8266 native support
Mmmm please will you tell me what are the great options with mqtt.....deennoo wrote:With ESPEasy FW mqtt works great !
What can i do whit this protocol..
Perhaps some pictures...
Thanks
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 18
- Joined: Friday 29 July 2016 9:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: United Kingdom
- Contact:
Re: ESP8266 native support
I think it would be really nice if you could go to the Hardware section of Dz, select to add a device type of ESPeasy and enter the IP address.
From there, somewhat like RFXcomm, I would hope the ESPeasy devices could automatically appear in the Devices section of Dz as "unused". Dz could automatically inject the IDX values in the ESPeasy with ease and quickly provision an ESPeasy in Dz after the devices have been set up on the ESP itself.
I'm a terrible coder but I imagine this isn't a big job? It would make integration amazingly simple, especially with devices like the Sonoff and other ESP based devices which have been modded with ESPeasy. I am really impressed with ESPeasy and this would make it a delight to use.
From there, somewhat like RFXcomm, I would hope the ESPeasy devices could automatically appear in the Devices section of Dz as "unused". Dz could automatically inject the IDX values in the ESPeasy with ease and quickly provision an ESPeasy in Dz after the devices have been set up on the ESP itself.
I'm a terrible coder but I imagine this isn't a big job? It would make integration amazingly simple, especially with devices like the Sonoff and other ESP based devices which have been modded with ESPeasy. I am really impressed with ESPeasy and this would make it a delight to use.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: ESP8266 native support
On Easyesp select domoticz mqtt. And put your mqtt server adresse and portDerik wrote:Mmmm please will you tell me what are the great options with mqtt.....deennoo wrote:With ESPEasy FW mqtt works great !
What can i do whit this protocol..
Perhaps some pictures...
Thanks
Act as usual for device page.
Off course you have to connect your domoticz to a mqtt broker (mosquitto), using hardware page.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: ESP8266 native support
This is the part i do not understand...Off course you have to connect your domoticz to a mqtt broker (mosquitto), using hardware page
Some examples.?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: ESP8266 native support
You have to run a mqtt server, something where your domoticz and esp can meet each other.
Mosquitto is the one.
Domoticz sd card use to get it already set and running on port 1883.
https://www.domoticz.com/wiki/Domoticz_ ... i_SD_Image
Have a look at mqtt broker
All your answer are on the wiki

On my side i try to use it to connect my Domoticz to another HA app who got plugin for some hardware i got.
Mosquitto is the one.
Domoticz sd card use to get it already set and running on port 1883.
https://www.domoticz.com/wiki/Domoticz_ ... i_SD_Image
Have a look at mqtt broker
All your answer are on the wiki

On my side i try to use it to connect my Domoticz to another HA app who got plugin for some hardware i got.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Who is online
Users browsing this forum: No registered users and 1 guest