ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Everything about esp8266 and more.
Post Reply
pychu
Posts: 9
Joined: Thursday 27 April 2017 18:03
Target OS: Linux
Domoticz version:
Contact:

ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Post by pychu » Tuesday 16 May 2017 13:03

I'm sorry for my English. I use the Google translator.
hi, i have a problem with my modules.
If my modules are offline, Domoticz does not represent them as offline.
For example, if Domoticz I turn on a switch, Domoticz represents the switch as on, but in reality it is turned off because it is offline.
Is there any way for domoticz to show the switch as offline?
Any ideas?
Thanks

User avatar
emme
Posts: 910
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Post by emme » Tuesday 16 May 2017 16:51

looks like a MQTT issue

If you switch on manually the TASMOTA (that I assume is a sort of sonoff device) does it update the status on Domoticz?
Are you using MQTT just for this device? does other MQTT connected devices works good?

..is the MQTT configuration ok?! (do you get error in Domoticz Log?) :P
The most dangerous phrase in any language is:
"We always done this way"

pychu
Posts: 9
Joined: Thursday 27 April 2017 18:03
Target OS: Linux
Domoticz version:
Contact:

Re: ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Post by pychu » Tuesday 16 May 2017 17:38

emme wrote:looks like a MQTT issue

If you switch on manually the TASMOTA (that I assume is a sort of sonoff device) does it update the status on Domoticz?
Are you using MQTT just for this device? does other MQTT connected devices works good?

..is the MQTT configuration ok?! (do you get error in Domoticz Log?) :P
Hi, thanks for your answer.

1- Tasmota is a firmware for Sonoff (https://github.com/arendst/Sonoff-Tasmota)

2- If I press the change-of-state button on the switch, domoticz detects the change and vice versa. This works well.

3- MQTT works correctly.

4- I have no other devices connected, I only have ESP8266 by MQTT

5- Log
https://drive.google.com/open?id=0B99w- ... FdKM0pTU2M

mutley
Posts: 8
Joined: Tuesday 16 May 2017 18:01
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Post by mutley » Tuesday 16 May 2017 18:19

I've only just started playing with creating my own devices in Domoticz using MQTT, so I could be wrong but from what I think you are trying to ask this is what I think is going on.

Domoticz does not poll any device over MQTT for status information. So unless your device sends out a states before it shuts down / goes offline it will never be reported in Domoticz.
Domoticz also doesn't expect any device conformation messages over MQTT, so Domoticz could sent a "close contact" message over MQTT and it will report closed in Domoticz, but if you device is offline / not registered on the queue, it never knows.
I've also seen quite a few other issues with making MQTT devices utilizing the standard Domoticz MQTT implimentation, like duplicating messages and filling the queue up.

Again, I've only just spend a few hours playing with this so may well be wrong, but I'm just about to dig into source code to see what that turns up, and if above is correct, you may as well give up on the standard Domoticz MQTT for 2 way device implementation and create you own.

Ylan
Posts: 1
Joined: Monday 02 October 2017 15:41
Target OS: Linux
Domoticz version:
Contact:

Re: ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Post by Ylan » Monday 02 October 2017 15:43

pychu can you please contact me on PM, I can't send PM because Im new.

Thank you

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests