Quellcode durchsuchen

christmas star added

tags/v1.0.0
Dirk Alders vor 2 Jahren
Ursprung
Commit
836330640a
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      function/first_floor_east.py

+ 2
- 0
function/first_floor_east.py Datei anzeigen

@@ -182,6 +182,7 @@ class first_floor_east_living(room_shelly_tradfri_light):
182 182
                     devices.tradfri_light(mqtt_client, topic="zigbee_og_e/light/living_floorlamp_%d" % i))
183 183
         if config.CHRISTMAS:
184 184
             self.powerplug_xmas_tree = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-tree")
185
+            self.powerplug_xmas_star = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-star")
185 186
         #
186 187
         self.gui_switch_floorlamp = devices.nodered_gui(mqtt_client, topic="gui/ffe_sw_living_floorlamp")
187 188
         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):
267 268
 
268 269
     def powerplug_xmas_action(self, device, key, data):
269 270
         self.gui_switch_xmas_tree.set_feedback(data)
271
+        self.powerplug_xmas_star.set_output_0(data)
270 272
 
271 273
     def gui_switch_command_xmas(self, device, key, data):
272 274
         logger.info("Switching \"%s\" xmas-tree: %s", type(self).__name__, data)

Laden…
Abbrechen
Speichern