Browse Source

christmas star added

tags/v1.0.0
Dirk Alders 2 years ago
parent
commit
836330640a
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      function/first_floor_east.py

+ 2
- 0
function/first_floor_east.py View File

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

Loading…
Cancel
Save