М
Size: a a a
М
IB
М
V
M
self.listen_event(self.callback_kitchen_double_switch_click, "MQTT_MESSAGE", topic="zigbee2mqtt/kitchen_double/click", namespace="mqtt")и конфиг appdaemona:
def callback_kitchen_double_switch_click(self, event_name, data, kwargs):
if data['payload'] == 'left':
self.toggle(self.kitchen_light)
elif data['payload'] == 'right':
self.toggle(self.hallway_lamp_philips)
plugins:
MQTT:
type: mqtt
namespace: mqtt
verbose: True
client_host: '192.168.1.57'
client_port: 1883
client_user: user
client_password: password
M
V
A
A
V
A
A
A
A
A
V
A
A
A
A