Changed automations to pyscript
This commit is contained in:
@@ -19,10 +19,13 @@ living_area:
|
||||
bedroom:
|
||||
name: Schlafzimmer
|
||||
entities:
|
||||
- light.schlafzimmer_deckenlampe
|
||||
- light.schlafzimmer_fluter
|
||||
- light.bett_martin
|
||||
- light.bett_rebecca
|
||||
- light.schlafzimmer_schrank
|
||||
- cover.schlafzimmer_rollo_gross
|
||||
- cover.schlafzimmer_rollo_klein
|
||||
|
||||
hallway:
|
||||
name: Gang
|
||||
@@ -45,21 +48,24 @@ outside:
|
||||
office:
|
||||
name: Arbeitszimmer
|
||||
entities:
|
||||
- light.arbeitszimmer_deckenlampe
|
||||
- light.arbeitszimmer_stehlampe_oben
|
||||
- light.arbeitszimmer_stehlampe_unten
|
||||
- light.arbeitszimmer_fluter
|
||||
|
||||
- cover.arbeitszimmer_rollo
|
||||
|
||||
kids_room:
|
||||
name: Kinderzimmer
|
||||
entities:
|
||||
- light.kinderzimmer_fluter
|
||||
- cover.kinderzimmer_rollo
|
||||
|
||||
|
||||
bathroom:
|
||||
name: Bad
|
||||
|
||||
|
||||
|
||||
other:
|
||||
name: Rest
|
||||
|
||||
|
||||
@@ -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__':
|
||||
|
||||
@@ -54,6 +54,8 @@ homeassistant:
|
||||
half_position: 25
|
||||
|
||||
|
||||
pyscript: !include pyscript/config.yaml
|
||||
|
||||
# enable configuration editor
|
||||
config:
|
||||
|
||||
@@ -257,15 +259,17 @@ long_click:
|
||||
- switch.wohnzimmer_szene_3
|
||||
- switch.wohnzimmer_szene_4
|
||||
- switch.wohnzimmer_szene_5
|
||||
- switch.wohnzimmer_terrassentur_szene_2
|
||||
- switch.wohnzimmer_terrassentur_szene_3
|
||||
- switch.eingang_szene_2
|
||||
- switch.eingang_szene_3
|
||||
- switch.eingang_szene_4
|
||||
- switch.eingang_szene_5
|
||||
|
||||
#logger:
|
||||
# default: info
|
||||
# logs:
|
||||
# #custom_components: debug
|
||||
logger:
|
||||
default: info
|
||||
logs:
|
||||
custom_components: info
|
||||
# #custom_components.reconnecting_client: debug
|
||||
#
|
||||
# Sensors
|
||||
@@ -638,7 +642,7 @@ light:
|
||||
- platform: group
|
||||
name: Garten Lichter
|
||||
entities:
|
||||
- light.garten_spot_birke
|
||||
- light.garten_vorne
|
||||
- light.garten_spot_magnolie
|
||||
- light.garten_spot_beet
|
||||
- light.garten_stehleuchte
|
||||
|
||||
Reference in New Issue
Block a user