Page 1 of 1

Tazmota buttons/switches over MQTT

Posted: Monday 08 July 2024 3:12
by FredZ
Hello all

Sorry, but my lack of knowledge has gotten the better of me.

I have a Tasmota device (generic (18)) that has several temp probes and water level switches attached.

My problem is with the water switches.
The switches are connected D5 GPIO14 and D6 GPIO12. Switch1 and switch2 respectively.
I'm using MQTT to talk to Domoticz.
In Domoticz both switches are seen as a single switch, so no matter which switch is triggered Dom changes state on a single device.

I'm wanting to know how to split them so that Dom sees them as 2 separate devices.

I have no need to and cannot change the device state from Dom.

About Domoticz
Version: 2024.5
Build Hash: a0887b5e9
Compile Date: 2024-07-07 18:31:16
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
On Debian 11

Regards

Fred

Re: Tazmota buttons/switches over MQTT

Posted: Monday 08 July 2024 8:21
by waltervl
What kind of integration with Domoticz do you use?
How do the Tazmota MQTT topics for these 2 devices look like?

Re: Tazmota buttons/switches over MQTT

Posted: Monday 08 July 2024 9:29
by FredZ
What kind of integration with Domoticz do you use?
On Dom I'm using the Autodiscovery of Tasmota Devices plugin.
Prefix1 (cmnd): cmnd
Prefix2 (stat): stat
Prefix3 (tele): tele
Subscriptions: %prefix%/%topic%|%topic%/%prefix%
How do the Tazmota MQTT topics for these 2 devices look like?
On the Tazmota device.
Topic = Hydro
Full Topic (%prefix%/%topic%/)

Here is the payload being sent to the MQTT server
08:22:19.565 MQT: tele/Hydro/SENSOR = {"Time":"2024-07-08T08:22:19","Switch1":"OFF","Switch2":"OFF","DS18B20-1":{"Id":"3C01D075797F","Temperature":13.938},"DS18B20-2":{"Id":"3C01D075D7AD","Temperature":15.438},"TempUnit":"C"}
Regards

Fred

Re: Tazmota buttons/switches over MQTT

Posted: Monday 08 July 2024 9:48
by waltervl
Please ask this in the github repository of the Tasmota plugin you are using as the solution is probably there.