Added Alarm LEDs

This commit is contained in:
Martin Bauer 2019-12-02 21:22:02 +01:00
parent 23d55ddf7a
commit 0b1a2e54b9
3 changed files with 10 additions and 4 deletions

View File

@ -78,6 +78,10 @@ def add_knx_devices(devices, groups):
switches += [DeviceInfo(f"SzeneEingang{n}", f"Eingang Szene {i}") for i, n in scene_button_names[2:]] switches += [DeviceInfo(f"SzeneEingang{n}", f"Eingang Szene {i}") for i, n in scene_button_names[2:]]
switches += [DeviceInfo(f"SzeneTerrassentuer{n}", f"Wohnzimmer Terrassentür Szene {i}") switches += [DeviceInfo(f"SzeneTerrassentuer{n}", f"Wohnzimmer Terrassentür Szene {i}")
for i, n in scene_button_names[2: 4]] for i, n in scene_button_names[2: 4]]
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"),]
power_plugs = [ power_plugs = [
# Vorratsraum # Vorratsraum

View File

@ -96,9 +96,10 @@ cover_half:
logger: logger:
default: info default: info
# logs: logs:
# xknx.telegram: debug custom_components.fhem: debug
# xknx.knx: debug #custom_components: debug
#custom_components.reconnecting_client: debug
# Sensors # Sensors
#sensor: #sensor:

View File

@ -50,7 +50,7 @@ class ReconnectingClient:
try: try:
reader, writer = await asyncio.open_connection(self._host, self._port) reader, writer = await asyncio.open_connection(self._host, self._port)
self._connection_last_state = 'CONNECTED' self._connection_last_state = 'CONNECTED'
_LOGGER.debug(f"{self._connection_name} starting connection")
self._writer = writer self._writer = writer
self.connected = True self.connected = True
await self._connection_status_changed_callback('connected') await self._connection_status_changed_callback('connected')
@ -61,6 +61,7 @@ class ReconnectingClient:
if not line: if not line:
raise OSError("Disconnect") raise OSError("Disconnect")
line = line.decode() line = line.decode()
_LOGGER.debug(f"{self._connection_name} received line - passing along '{line}'")
await self._receive_line_callback(line) await self._receive_line_callback(line)
except OSError as e: except OSError as e:
if self._connection_last_state != 'FAILED': if self._connection_last_state != 'FAILED':