** SOLVED ** After discovery Tasmota device, dummy switch not working anymore

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

** SOLVED ** After discovery Tasmota device, dummy switch not working anymore

Post by McMelloW »

In the beginning life was easy, flashed a Sonoff S20 with Tasmota, create a simple dummy switch, entered the switch idx in the device config and it worked.

After struggling for some time with Shelly 2.5 for blinds, somebody adviced: Use MQTT Auto Discovery. So I entered homeassistant as prefix in MQTT Client Gateway with LAN interface. Bingo there was a switch (blind + stop) created. Bingo, this seems to work. Blinds are not connected yet. To avoid a lot of up & down for testing.
However, my dummy switches for the Sonoff S20 devices do not work anymore in Domoticz. Only with the button on the device or the Tasmota WebUI.

What is going on here?
What is the difference between a Dummy switch and a created switch after Auto Discovery?
Is there an easy way to solve this issue?
Last edited by McMelloW on Thursday 13 January 2022 20:47, edited 1 time in total.
Greetings McMelloW
eddieb
Posts: 391
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: After discovery Tasmota device, dummy switch not working anymore

Post by eddieb »

I think this is normal behavior, the auto discovery creates new devices and the old manual created devices are not used anymore
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC MQTTmapper / SolarEdge SE3500H modbus_tcp / Marstek Venus / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: After discovery Tasmota device, dummy switch not working anymore

Post by McMelloW »

But the devices have Auto Discovery Off in Tasmota (SetOption19 0) and there are no new devices created in Domoticz.
Greetings McMelloW
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: After discovery Tasmota device, dummy switch not working anymore

Post by jvdz »

I don't see any relation (yet) with MQTT discovery and any dummy device not being updated. I am pretty sure my TASMOTA power socket switched update their Domoticz dummy switch and power consumption sensor fine via the direct Domoticz config in TASMOTA and also see the discovery and status update stuff in MQTT at the same time.
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: After discovery Tasmota device, dummy switch not working anymore

Post by McMelloW »

jvdz wrote: Sunday 19 December 2021 11:45 I don't see any relation (yet) with MQTT discovery and any dummy device not being updated. I am pretty sure my TASMOTA power socket switched update their Domoticz dummy switch and power consumption sensor fine via the direct Domoticz config in TASMOTA and also see the discovery and status update stuff in MQTT at the same time.
For my understanding, the only relation Domoticz dummy switch <==> Tasmota Device is the domoticz device idx number?
When a device is created by Discovery, do you have to enter the Domoticz device idx in the Tasmota WebUI for good operation?
Greetings McMelloW
User avatar
jvdz
Posts: 2441
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: After discovery Tasmota device, dummy switch not working anymore

Post by jvdz »

McMelloW wrote: Sunday 19 December 2021 12:02 For my understanding, the only relation Domoticz dummy switch <==> Tasmota Device is the domoticz device idx number?
Correct, this is filled in in the ESP webinterface on page: http://192.168.x.x/dm?
McMelloW wrote: Sunday 19 December 2021 12:02 When a device is created by Discovery, do you have to enter the Domoticz device idx in the Tasmota WebUI for good operation?
Nope ... The devices should be create automatically when TASMOTA's MQTT CONFIG payload is read by Domoticz the first time and are automatically updated via MQTT after that.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest