Changed automations to pyscript

This commit is contained in:
Martin Bauer
2021-10-05 11:22:27 +00:00
parent a0e498edeb
commit ab2ab9f9d7
27 changed files with 496 additions and 2592 deletions

View File

@@ -51,7 +51,7 @@ def add_knx_devices(devices, groups):
DeviceInfo('AussenleuchteHaustüren', 'Haustür Licht', 'outside'),
DeviceInfo('AussenleuchteObenNW', 'Haustür Licht NW', 'first_floor'),
DeviceInfo('TreppenhausLicht', "Treppenhaus Licht", 'first_floor'),
DeviceInfo('WCLicht', "WC Licht", 'other'),
#DeviceInfo('WCLicht', "WC Licht", 'other'),
DeviceInfo('LampeVorratsraum', "Vorratsraum Licht", 'other'),
# Bewegungsmelder LEDs
DeviceInfo("BewegungsmelderMitte LED", "Bewegungsmelder Mitte LED", 'hallway'),
@@ -82,7 +82,8 @@ def add_knx_devices(devices, groups):
switches += [DeviceInfo("AlarmLEDLinksNormal", "alarm_led_links_normal"),
DeviceInfo("AlarmLEDLinksUeberlagert", "alarm_led_links_ueberlagert"),
DeviceInfo("AlarmLEDRechtsNormal", "alarm_led_rechts_normal"),
DeviceInfo("AlarmLEDRechtsUeberlagert", "alarm_led_rechts_ueberlagert"),]
DeviceInfo("AlarmLEDRechtsUeberlagert", "alarm_led_rechts_ueberlagert"),
DeviceInfo("WCLicht Schalten", "wc_licht_taster"), ]
power_plugs = [
# Vorratsraum
@@ -297,7 +298,7 @@ def create_config(target_directory, development=False):
additional_file = 'secrets_development.yaml' if development else 'secrets_deploy.yaml'
output.write(open(os.path.join(script_path, additional_file), 'r').read())
create_automation_rules(os.path.join(target_directory, 'automations'))
#create_automation_rules(os.path.join(target_directory, 'automations'))
if __name__ == '__main__':