2022-12-20 14:05:32 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
import logging
|
2022-12-26 16:54:26 +01:00
|
|
|
from function.rooms import room_shelly, room_shelly_tradfri_light
|
2022-12-20 14:05:32 +01:00
|
|
|
|
|
|
|
try:
|
|
|
|
from config import APP_NAME as ROOT_LOGGER_NAME
|
|
|
|
except ImportError:
|
|
|
|
ROOT_LOGGER_NAME = 'root'
|
|
|
|
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class first_floor_west_julian(room_shelly_tradfri_light):
|
|
|
|
# http://shelly1l-3C6105E43452
|
|
|
|
def __init__(self, mqtt_client):
|
2022-12-25 18:43:25 +01:00
|
|
|
super().__init__(mqtt_client, "shellies/ffw/julian/main_light", "gui/ffw/julian/main_light/switch",
|
|
|
|
"zigbee/ffe/julian/main_light", "gui/ffw/julian/main_light/br_ct")
|
2022-12-20 14:05:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
class first_floor_west_living(room_shelly):
|
|
|
|
# http://shelly1l-84CCA8ACE6A1
|
|
|
|
def __init__(self, mqtt_client):
|
2022-12-25 18:43:25 +01:00
|
|
|
super().__init__(mqtt_client, "shellies/ffw/livingroom/main_light", "gui/ffw/livingroom/main_light/switch")
|