Smarthome Functionen
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

first_floor_west.py 868B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. import logging
  5. from function.rooms import room_shelly, room_shelly_tradfri_light
  6. try:
  7. from config import APP_NAME as ROOT_LOGGER_NAME
  8. except ImportError:
  9. ROOT_LOGGER_NAME = 'root'
  10. logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
  11. class first_floor_west_julian(room_shelly_tradfri_light):
  12. # http://shelly1l-3C6105E43452
  13. def __init__(self, mqtt_client):
  14. super().__init__(mqtt_client, "shellies/ffw/julian/main_light", "gui/ffw/julian/main_light/switch",
  15. "zigbee/ffe/julian/main_light", "gui/ffw/julian/main_light/br_ct")
  16. class first_floor_west_living(room_shelly):
  17. # http://shelly1l-84CCA8ACE6A1
  18. def __init__(self, mqtt_client):
  19. super().__init__(mqtt_client, "shellies/ffw/livingroom/main_light", "gui/ffw/livingroom/main_light/switch")