ESP8266 native support

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
alexsh1
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

Post by alexsh1 »

Hi all,


I wonder if Domoticz is going to support ESP8266 natively and not just via JSON?


Thanks
Alex
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: ESP8266 native support

Post by woody4165 »

With which firmware?
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
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: ESP8266 native support

Post by deennoo »

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
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: ESP8266 native support

Post by woody4165 »

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

Post by alexsh1 »

I meant via the Hardware section (like MySensors for example)
Derik
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

Post by Derik »

deennoo wrote:With ESPEasy FW mqtt works great !
Mmmm please will you tell me what are the great options with mqtt.....
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
bobdvb
Posts: 18
Joined: Friday 29 July 2016 9:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: United Kingdom
Contact:

Re: ESP8266 native support

Post by bobdvb »

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

Post by deennoo »

Derik wrote:
deennoo wrote:With ESPEasy FW mqtt works great !
Mmmm please will you tell me what are the great options with mqtt.....
What can i do whit this protocol..
Perhaps some pictures...

Thanks
On Easyesp select domoticz mqtt. And put your mqtt server adresse and port

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

Post by Derik »

Off course you have to connect your domoticz to a mqtt broker (mosquitto), using hardware page
This is the part i do not understand...
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
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: ESP8266 native support

Post by deennoo »

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
Image

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest