Page 1 of 1

MQTT Discovery plugin - clarification requested

Posted: Thursday 26 July 2018 12:01
by Andyf66
A clarification requested on how it works...

Initially it pulls in all my Sonoff Tasmota devices - Switches/relays etc, and they are named the same as they are within my Sonoff setup. Works perfectly, even for wall switches that have the button/relay separated via 'ButtonTopic'

- If I were to change the name within the Sonoff device, would this then ripple through via auto discovery and update the name of the device within Domoticz, Or would it create 'new' devices?

- If I were to change the name off a device within Domoticz, would the auto discovery part realise this and 'play nicely' - Not overwrite the new name with the 'official' Sonoff name, but still keep the setup working and linked up?

Maybe I'm overthinking this and it will all just work...

TIA

Andy.

Re: MQTT Discovery plugin - clarification requested

Posted: Saturday 18 August 2018 9:03
by emontnemery
Andyf66 wrote: Thursday 26 July 2018 12:01 - If I were to change the name within the Sonoff device, would this then ripple through via auto discovery and update the name of the device within
Domoticz, Or would it create 'new' devices?
No, a new device would only be created if you change the "topic" of your device. Also the name you set in the Sonoff system will not overwrite the name in Domoticz after initial discovery.
Andyf66 wrote: Thursday 26 July 2018 12:01 - If I were to change the name off a device within Domoticz, would the auto discovery part realise this and 'play nicely' - Not overwrite the new name with the 'official' Sonoff name, but still keep the setup working and linked up?
Right, that will work just fine since the devices are indexed by topic, not by "friendly name".