|
@@ -18,22 +18,22 @@ logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
18
|
18
|
class first_floor_east_floor(room_shelly):
|
19
|
19
|
def __init__(self, mqtt_client):
|
20
|
20
|
# http://shelly1l-3C6105E4E629
|
21
|
|
- super().__init__(mqtt_client, "shellies/floor_madi", "gui/ffe/floor/main_light/switch")
|
|
21
|
+ super().__init__(mqtt_client, "shellies/ffe/floor/main_light", "gui/ffe/floor/main_light/switch")
|
22
|
22
|
|
23
|
23
|
|
24
|
24
|
class first_floor_east_kitchen(room_shelly):
|
25
|
25
|
def __init__(self, mqtt_client):
|
26
|
26
|
# http://shelly1l-8CAAB5616C01
|
27
|
|
- super().__init__(mqtt_client, "shellies/kitchen", "gui/ffe/kitchen/main_light/switch")
|
|
27
|
+ super().__init__(mqtt_client, "shellies/ffe/kitchen/main_light", "gui/ffe/kitchen/main_light/switch")
|
28
|
28
|
|
29
|
29
|
|
30
|
30
|
class first_floor_east_dining(room_shelly):
|
31
|
31
|
def __init__(self, mqtt_client):
|
32
|
32
|
# http://shelly1l-84CCA8ADD055
|
33
|
|
- super().__init__(mqtt_client, "shellies/diningroom", "gui/ffe/diningroom/main_light/switch")
|
34
|
|
- self.floorlamp_powerplug = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/dining_floorlamp")
|
|
33
|
+ super().__init__(mqtt_client, "shellies/ffe/diningroom/main_light", "gui/ffe/diningroom/main_light/switch")
|
|
34
|
+ self.floorlamp_powerplug = devices.silvercrest_powerplug(mqtt_client, "zigbee/ffe/dinigroom/powerplug_floorlamp")
|
35
|
35
|
if config.CHRISTMAS:
|
36
|
|
- self.garland_powerplug = devices.silvercrest_powerplug(mqtt_client, topic="zigbee_og_e/powerplug/aux")
|
|
36
|
+ self.garland_powerplug = devices.silvercrest_powerplug(mqtt_client, topic="zigbee/ffe/dinigroom/garland")
|
37
|
37
|
#
|
38
|
38
|
self.gui_switch_floorlamp = devices.nodered_gui_switch(mqtt_client, topic="gui/ffe/diningroom/floorlamp/switch")
|
39
|
39
|
#
|
|
@@ -53,16 +53,16 @@ class first_floor_east_dining(room_shelly):
|
53
|
53
|
class first_floor_east_sleep(room_shelly_tradfri_light):
|
54
|
54
|
def __init__(self, mqtt_client):
|
55
|
55
|
# http://shelly1l-E8DB84A254C7
|
56
|
|
- super().__init__(mqtt_client, "shellies/sleep_madi", "gui/ffe/sleep/main_light/switch",
|
57
|
|
- "zigbee_og_e/light/sleep_madi", "gui/ffe/sleep/main_light/br_ct")
|
|
56
|
+ super().__init__(mqtt_client, "shellies/ffe/sleep/main_light", "gui/ffe/sleep/main_light/switch",
|
|
57
|
+ "zigbee/ffe/sleep/main_light", "gui/ffe/sleep/main_light/br_ct")
|
58
|
58
|
#
|
59
|
|
- self.bed_light_di_tradfri = devices.tradfri_light(mqtt_client, topic="zigbee_og_e/light/sleep_bed_di")
|
|
59
|
+ self.bed_light_di_tradfri = devices.tradfri_light(mqtt_client, "zigbee/ffe/sleep/bed_light_di")
|
60
|
60
|
#
|
61
|
61
|
self.gui_switch_bed_light_di = devices.nodered_gui_switch(mqtt_client, "gui/ffe/sleep/bed_light_di/switch")
|
62
|
62
|
self.gui_br_ct_bed_light_di = devices.nodered_gui_brightness_color_temp(mqtt_client, "gui/ffe/sleep/bed_light_di/br_ct")
|
63
|
63
|
self.gui_led_active_device = devices.nodered_gui_leds(mqtt_client, "gui/ffe/sleep/active_device_state/led")
|
64
|
64
|
#
|
65
|
|
- self.button_tradfri = devices.tradfri_button(mqtt_client, topic="zigbee_og_e/input_device/og_east")
|
|
65
|
+ self.button_tradfri = devices.tradfri_button(mqtt_client, "zigbee/ffe/sleep/input_device")
|
66
|
66
|
#
|
67
|
67
|
# Callback initialisation
|
68
|
68
|
#
|
|
@@ -129,16 +129,16 @@ class first_floor_east_sleep(room_shelly_tradfri_light):
|
129
|
129
|
class first_floor_east_living(room_shelly_tradfri_light):
|
130
|
130
|
def __init__(self, mqtt_client):
|
131
|
131
|
# http://shelly1l-3C6105E3F910
|
132
|
|
- super().__init__(mqtt_client, "shellies/livingroom", "gui/ffe/livingroom/main_light/switch",
|
133
|
|
- "zigbee_og_e/light/livingroom", "gui/ffe/livingroom/main_light/br_ct")
|
|
132
|
+ super().__init__(mqtt_client, "shellies/ffe/livingroom/main_light", "gui/ffe/livingroom/main_light/switch",
|
|
133
|
+ "zigbee/ffe/livingroom/main_light", "gui/ffe/livingroom/main_light/br_ct")
|
134
|
134
|
for i in range(1, 7):
|
135
|
|
- setattr(self, 'floorlamp_tradfri_%d' % i, devices.tradfri_light(mqtt_client, topic="zigbee_og_e/light/living_floorlamp_%d" % i))
|
|
135
|
+ setattr(self, 'floorlamp_tradfri_%d' % i, devices.tradfri_light(mqtt_client, "zigbee/ffe/livingroom/floorlamp_%d" % i))
|
136
|
136
|
#
|
137
|
137
|
if config.CHRISTMAS:
|
138
|
|
- self.powerplug_xmas_tree = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-tree")
|
139
|
|
- self.powerplug_xmas_star = devices.silvercrest_powerplug(mqtt_client, "zigbee_og_e/powerplug/xmas-star")
|
|
138
|
+ self.powerplug_xmas_tree = devices.silvercrest_powerplug(mqtt_client, "zigbee/ffe/livingroom/powerplug_xmas-tree")
|
|
139
|
+ self.powerplug_xmas_star = devices.silvercrest_powerplug(mqtt_client, "zigbee/ffe/livingroom/powerplug_xmas-star")
|
140
|
140
|
#
|
141
|
|
- self.gui_switch_floorlamp = devices.nodered_gui_switch(mqtt_client, topic="gui/ffe/livingroom/floorlamp/switch")
|
|
141
|
+ self.gui_switch_floorlamp = devices.nodered_gui_switch(mqtt_client, "gui/ffe/livingroom/floorlamp/switch")
|
142
|
142
|
self.gui_br_ct_floorlamp = devices.nodered_gui_brightness_color_temp(mqtt_client, "gui/ffe/livingroom/floorlamp/br_ct")
|
143
|
143
|
#
|
144
|
144
|
if config.CHRISTMAS:
|