Latest version

This commit is contained in:
Martin Bauer
2024-05-03 20:50:49 +02:00
parent a8b5c425a9
commit 62450e8dde
62 changed files with 42840 additions and 81367 deletions

View File

@@ -56,6 +56,9 @@ def add_knx_devices(devices, groups):
DeviceInfo("BewegungsmelderMitte LED", "Bewegungsmelder Mitte LED", 'hallway'),
DeviceInfo("BewegungsmelderWest LED", "Bewegungsmelder West LED", 'hallway'),
DeviceInfo("BewegungsmelderOst LED", "Bewegungsmelder Ost LED", 'hallway'),
# Briefkasten
DeviceInfo("KlingelknoepfeLicht", "Klingelknöpfe Licht", 'outside'),
DeviceInfo("BriefkastensaeuleBeleuchtung", "Briefkasten Licht", 'outside'),
]
shutters = [
@@ -70,6 +73,8 @@ def add_knx_devices(devices, groups):
DeviceInfo("KlingelOben", "Klingel Oben", 'first_floor'),
DeviceInfo("Klingel Innen", "Klingel Innentür", 'other'),
DeviceInfo("Klingel Aussen", "Klingel Außentür", 'other'),
# Tueroeffner
DeviceInfo("Tueroeffner", "Türöffner Gartentür", 'other'),
]
scene_button_names = ['ObenLinks', 'ObenRechts', 'MitteLinks', 'MitteRechts', 'UntenLinks', 'UntenRechts']
scene_button_names = [(i, e) for i, e in enumerate(scene_button_names)]
@@ -104,6 +109,9 @@ def add_knx_devices(devices, groups):
DeviceInfo("ArbeitszimmerSteckdose", "Arbeitszimmer Steckdose", 'office'),
DeviceInfo("WohnzimmerSteckdose1", "Wohnzimmer Steckdose 1", 'living_area'),
DeviceInfo("WohnzimmerSteckdose2", "Wohnzimmer Steckdose 2", 'living_area'),
# Gartenhaus steckdosen (Pumpen)
DeviceInfo("Garten1", "Gartenhaus Steckdose1", 'outside'),
DeviceInfo("Garten2", "Gartenhaus Steckdose2", 'outside'),
]
motion_sensors = {
@@ -148,6 +156,12 @@ def add_knx_devices(devices, groups):
{'name': 'Gang Bewegungsmelder Ost',
'state_address': imported_csv['BewegungsmelderOst Motion'],
'device_class': 'motion'},
{'name': 'KlingelknopfGartensaeule',
'state_address': imported_csv['KlingelknopfGartensaeule'], },
{'name': 'KlingelknopfHaustuerUnten',
'state_address': imported_csv['KlingelknopfHaustuerUnten'], },
{'name': 'KlingelknopfInnentuer',
'state_address': imported_csv['KlingelknopfInnentuer'], },
]
}
knx.extent(devices, motion_sensors)
@@ -204,9 +218,11 @@ def make_sensor_exclude_list(all_devices, name_fragments):
for sensor_device in all_devices['sensor']:
if 'platform' in sensor_device and sensor_device['platform'] == 'time_date':
continue
if 'platform' in sensor_device and sensor_device['platform'] == 'template':
elif 'platform' in sensor_device and sensor_device['platform'] == 'template':
for nested_sensor_dev in sensor_device['sensors'].values():
handle_sensor(nested_sensor_dev)
elif 'platform' in sensor_device and sensor_device['platform'] == 'mqtt_room':
pass
elif 'name' in sensor_device:
handle_sensor(sensor_device)
else: