MQTT Home Emulation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 860B

1234567891011121314151617181920212223
  1. from devices.brennenstuhl import vlv as brennenstuhl_heatingvalve
  2. from devices.livarno import sw as silvercrest_powerplug
  3. from devices.livarno import sw_br_ct as livarno_sw_br_ct
  4. from devices.my import powerplug as my_powerplug
  5. from devices.shelly import shelly_sw1
  6. from devices.tradfri import sw as tradfri_sw
  7. from devices.tradfri import sw_br as tradfri_sw_br
  8. from devices.tradfri import sw_br_ct as tradfri_sw_br_ct
  9. tradfri_button = None # TODO: required, when a interface for external device stimulation is available
  10. silvercrest_motion_sensor = None
  11. audio_status = None
  12. remote = None
  13. class group(object):
  14. def __init__(self, *args):
  15. self.device_group = args
  16. self.topic = self.device_group[0].topic
  17. def power_on_action(self, *args, **kwargs):
  18. for gm in self.device_group:
  19. gm.power_on_action(*args, **kwargs)