home_emulation/devices/__init__.py

24 lines
860 B
Python
Raw Normal View History

2023-10-29 15:10:52 +01:00
from devices.brennenstuhl import vlv as brennenstuhl_heatingvalve
from devices.livarno import sw as silvercrest_powerplug
from devices.livarno import sw_br_ct as livarno_sw_br_ct
from devices.my import powerplug as my_powerplug
from devices.shelly import shelly_sw1
from devices.tradfri import sw as tradfri_sw
from devices.tradfri import sw_br as tradfri_sw_br
from devices.tradfri import sw_br_ct as tradfri_sw_br_ct
2023-08-03 20:43:41 +02:00
2023-10-29 15:10:52 +01:00
tradfri_button = None # TODO: required, when a interface for external device stimulation is available
silvercrest_motion_sensor = None
2023-10-29 15:10:52 +01:00
audio_status = None
remote = None
2023-08-03 20:43:41 +02:00
2023-10-29 15:10:52 +01:00
class group(object):
def __init__(self, *args):
self.device_group = args
self.topic = self.device_group[0].topic
def power_on_action(self, *args, **kwargs):
for gm in self.device_group:
gm.power_on_action(*args, **kwargs)