ESP8266 + Tasmota + MQTT + Domoticz = Feedback problem.

Everything about esp8266 and more.

Moderator: leecollings

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

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

Post by emme »

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"
mutley
Posts: 9
Joined: Tuesday 16 May 2017 18:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by mutley »

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 »

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

Thank you
User avatar
sincze
Posts: 1301
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

I've setup a Mosquitto server and installed a Sonoff Basic / Sonoff Pow R2 with the latest tasmota
Thanx to the great plugin:

Code: Select all

https://github.com/arendst/Sonoff-Tasmota/wiki/Domoticz---Automatic-discovery
the devices were instantly available in Domoticz.

I used to have ESP Easy installed and in that config I could easily send the RSSI value to Domoticz.
Is this possible with Tasmota as well?
I can't seem to figure it out without the use of Node-Red.
The information is available in:

Code: Select all

mosquitto_pub -h localhost -t <topic>/cmnd/status -m 11

Code: Select all

19:10:24 MQT: basic/stat/STATUS11 = {"StatusSTS":{"Time":"2019-05 12T19:10:24","Uptime":"0T06:20:15","Vcc":3.206,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"******","BSSId":"**:**:**:**:**:**","Channel":**,"RSSI":98,"LinkCount":1,"Downtime":"0T00:00:04"}}}
19:10:25 MQT: basic/tele/HASS_STATE = {"Version":"6.5.0(release-sonoff)","BuildDateTime":"2019-03-1
But how to get it out :lol:
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest