From 836330640aa982a19c6afc2a4078a625ee94fca1 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sat, 24 Dec 2022 12:49:16 +0100 Subject: [PATCH] christmas star added --- function/first_floor_east.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/function/first_floor_east.py b/function/first_floor_east.py index ea71364..127b258 100644 --- a/function/first_floor_east.py +++ b/function/first_floor_east.py @@ -182,6 +182,7 @@ class first_floor_east_living(room_shelly_tradfri_light): devices.tradfri_light(mqtt_client, topic="zigbee_og_e/light/living_floorlamp_%d" % i)) if config.CHRISTMAS: self.powerplug_xmas_tree = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-tree") + self.powerplug_xmas_star = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-star") # self.gui_switch_floorlamp = devices.nodered_gui(mqtt_client, topic="gui/ffe_sw_living_floorlamp") self.gui_brightness_floorlamp = devices.nodered_gui(mqtt_client, "gui/ffe_br_livingroom_floorlamp") @@ -267,6 +268,7 @@ class first_floor_east_living(room_shelly_tradfri_light): def powerplug_xmas_action(self, device, key, data): self.gui_switch_xmas_tree.set_feedback(data) + self.powerplug_xmas_star.set_output_0(data) def gui_switch_command_xmas(self, device, key, data): logger.info("Switching \"%s\" xmas-tree: %s", type(self).__name__, data)