Hi,
I am in the process of moving all my Zigbee lights form Deconz to Z2M, and would like to know the mqtt alternative to:
self.turn_on(light)
I have been trying with:
light = "zigbee2mqtt/Flur EG"
self.mqtt_publish(light, "ON")
where zigbee2mqtt/Flur EG is the light name that I see in the Z2M logs.
According to the AddDaemon Reference, this should work:
self.mqtt_publish("homeassistant/bedroom/light", "ON")
I can see the message being published in the AppDaemon MQTT Events, but the light stays OFF:
"{"event_type":"MQTT_MESSAGE","data":{"topic":"zigbee2mqtt/Flur EG","wildcard":"#","payload":"ON"},"namespace":"mqtt","time_received":"2022-11-27T13:10:15.276Z"}"
This is my appdaemeon.yaml file:
secrets: /config/secrets.yaml
appdaemon:
latitude: 52.379189
longitude: 4.899431
elevation: 2
time_zone: Europe/Amsterdam
plugins:
HASS:
type: hass
MQTT:
type: mqtt
namespace: mqtt
client_host: '192.168.178.76'
client_port: 1883
client_user: user
client_password: password
Can someone help me with this?
Thanks!