Tazmota buttons/switches over MQTT

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
FredZ
Posts: 22
Joined: Monday 08 June 2020 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tazmota buttons/switches over MQTT

Post 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
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tazmota buttons/switches over MQTT

Post by waltervl »

What kind of integration with Domoticz do you use?
How do the Tazmota MQTT topics for these 2 devices look like?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
FredZ
Posts: 22
Joined: Monday 08 June 2020 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tazmota buttons/switches over MQTT

Post 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
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tazmota buttons/switches over MQTT

Post by waltervl »

Please ask this in the github repository of the Tasmota plugin you are using as the solution is probably there.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest