Smarthome Functionen
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

first_floor_west.py 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. import config
  5. import logging
  6. from function.modules import radiator_function
  7. from function.rooms import room_shelly, room_shelly_tradfri_light
  8. try:
  9. from config import APP_NAME as ROOT_LOGGER_NAME
  10. except ImportError:
  11. ROOT_LOGGER_NAME = 'root'
  12. logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
  13. class first_floor_west_julian(room_shelly_tradfri_light):
  14. # http://shelly1l-3C6105E43452
  15. def __init__(self, mqtt_client):
  16. super().__init__(mqtt_client, config.TOPIC_FFW_JULIAN_MAIN_LIGHT_SHELLY, config.TOPIC_FFW_JULIAN_MAIN_LIGHT_GUI, config.TOPIC_FFW_JULIAN_MAIN_LIGHT_ZIGBEE)
  17. class first_floor_west_bath(object):
  18. def __init__(self, mqtt_client):
  19. # radiator valve
  20. self.radiator_function = radiator_function(mqtt_client, config.TOPIC_FFW_BATH_RADIATOR_VALVE_ZIGBEE,
  21. config.TOPIC_FFW_BATH_RADIATOR_VALVE_GUI, config.DEFAULT_TEMPERATURE_FFW_BATH)
  22. def all_off(self):
  23. pass
  24. class first_floor_west_living(room_shelly_tradfri_light):
  25. # http://shelly1l-84CCA8ACE6A1
  26. def __init__(self, mqtt_client):
  27. super().__init__(mqtt_client, config.TOPIC_FFW_LIVINGROOM_MAIN_LIGHT_SHELLY,
  28. config.TOPIC_FFW_LIVINGROOM_MAIN_LIGHT_GUI, config.TOPIC_FFW_LIVINGROOM_MAIN_LIGHT_ZIGBEE)
  29. class first_floor_west_sleep(room_shelly_tradfri_light):
  30. # http://shelly1-3494546A51F2
  31. def __init__(self, mqtt_client):
  32. super().__init__(mqtt_client, config.TOPIC_FFW_SLEEP_MAIN_LIGHT_SHELLY, config.TOPIC_FFW_SLEEP_MAIN_LIGHT_GUI, config.TOPIC_FFW_SLEEP_MAIN_LIGHT_ZIGBEE)