Skip to content

Commit e7587f8

Browse files
committed
fix knx error
1 parent 501595c commit e7587f8

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/interfacers/EmonHubKNXInterfacer.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,27 @@ async def initKnx(self, gateway_ip, local_ip):
9292
local_ip = local_ip
9393
)
9494

95-
self._log.trace("Connect to KNX Gateway : " + gateway_ip)
95+
self._log.debug("Connect to KNX Gateway : " + gateway_ip)
9696
self.xknx = XKNX(connection_config=connection_config, connection_state_changed_cb = self.connection_state_changed_cb,device_updated_cb=self.device_updated_cb, daemon_mode=False)
9797

9898
async def startKnx(self):
9999
try:
100100
await self.xknx.start()
101-
except Exception:
102-
self._log.error("KNX Error start")
101+
except Exception as err:
102+
self._log.error("KNX Error start:")
103+
self._log.error(err);
103104

104105
def connection_state_changed_cb(self, state):
105-
self._log.trace("KNX CnxUpdate:" + state)
106+
self._log.debug("KNX CnxUpdate:" )
107+
self._log.debug(state)
108+
106109

107110
def device_updated_cb(self, device):
108111
value = device.resolve_state()
109112
name = device.name
110113
unit = device.unit_of_measurement()
111114

112-
self._log.debug("Device:" + name + ' <> ' + str(value))
115+
self._log.info("Device:" + name + ' <> ' + str(value))
113116

114117
pos = name.index("_")
115118
meter = name[0:pos]

0 commit comments

Comments
 (0)