From 0af3c55e66dbf6292d2ee25dd8efe54f98e20b65 Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Thu, 11 Apr 2024 14:22:18 +0200 Subject: [PATCH] Added EEPs A5-30-01 and A5-30-03 --- custom_components/eltako/binary_sensor.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/custom_components/eltako/binary_sensor.py b/custom_components/eltako/binary_sensor.py index 99578b97..2ce0897f 100644 --- a/custom_components/eltako/binary_sensor.py +++ b/custom_components/eltako/binary_sensor.py @@ -42,19 +42,24 @@ async def async_setup_entry( dev_conf = config_helpers.DeviceConf(entity_config, [CONF_DEVICE_CLASS, CONF_INVERT_SIGNAL]) if dev_conf.eep.eep_string in CONF_EEP_SUPPORTED_BINARY_SENSOR: if dev_conf.eep == A5_30_03: - entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, "Digital Input 0", dev_conf.eep, + name = "Digital Input 0" + entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, name, dev_conf.eep, dev_conf.get(CONF_DEVICE_CLASS), dev_conf.get(CONF_INVERT_SIGNAL), description_key="0")) - entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, dev_conf.name, dev_conf.eep, + name = "Digital Input 1" + entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, name, dev_conf.eep, dev_conf.get(CONF_DEVICE_CLASS), dev_conf.get(CONF_INVERT_SIGNAL), description_key="1")) - entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, dev_conf.name, dev_conf.eep, + name = "Digital Input 2" + entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, name, dev_conf.eep, dev_conf.get(CONF_DEVICE_CLASS), dev_conf.get(CONF_INVERT_SIGNAL), description_key="2")) - entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, dev_conf.name, dev_conf.eep, + name = "Digital Input 3" + entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, name, dev_conf.eep, dev_conf.get(CONF_DEVICE_CLASS), dev_conf.get(CONF_INVERT_SIGNAL), description_key="3")) - entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, dev_conf.name, dev_conf.eep, + name = "Staus of Wake" + entities.append(EltakoBinarySensor(platform_id, gateway, dev_conf.id, name, dev_conf.eep, dev_conf.get(CONF_DEVICE_CLASS), dev_conf.get(CONF_INVERT_SIGNAL), description_key="wake")) elif dev_conf.eep == A5_30_01: