help for convert MQTT message to MQTT discovery
Posted: Friday 18 August 2023 16:44
Hello
I have many scripts MQTT and ESP qui old MQTT protocol with example:
{"command": "switchlight", "idx": 701, "switchcmd": "On" }
My idx is a swith and name is Portilon:
I have tested with prefix "domoticz"
mosquitto_pub -h 127.0.0.1 -p 1883 -t "domoticz/switch/Portillon/set" -m ON
any message is received, any error
i have read the wiki https://www.domoticz.com/wiki/MQTT https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover https://www.home-assistant.io/integrati ... -discovery
I have many scripts MQTT and ESP qui old MQTT protocol with example:
{"command": "switchlight", "idx": 701, "switchcmd": "On" }
My idx is a swith and name is Portilon:
I have tested with prefix "domoticz"
mosquitto_pub -h 127.0.0.1 -p 1883 -t "domoticz/switch/Portillon/set" -m ON
any message is received, any error
i have read the wiki https://www.domoticz.com/wiki/MQTT https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover https://www.home-assistant.io/integrati ... -discovery