2022-12-28 08:48:07 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
import config
|
|
|
|
from function.modules import brightness_choose_n_action
|
|
|
|
import logging
|
|
|
|
from function.rooms import room_shelly_motion_sensor
|
|
|
|
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 stairway(room_shelly_motion_sensor):
|
|
|
|
def __init__(self, mqtt_client):
|
2022-12-28 10:47:57 +01:00
|
|
|
# http://shelly1-3494546A9364
|
2023-01-08 11:41:08 +01:00
|
|
|
super().__init__(mqtt_client, config.TOPIC_STW_STAIRWAY_MAIN_LIGHT_SHELLY, config.TOPIC_STW_STAIRWAY_MAIN_LIGHT_GUI,
|
2022-12-28 08:48:07 +01:00
|
|
|
config.TOPIC_STW_STAIRWAY_MAIN_LIGHT_MOTION_SENSOR_GF,
|
|
|
|
config.TOPIC_STW_STAIRWAY_MAIN_LIGHT_MOTION_SENSOR_FF, config.TOPIC_STW_STAIRWAY_MAIN_LIGHT_MIN_ON_TIME)
|