Skip to content

Commit

Permalink
debugging tcp gateway problems
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Oct 17, 2024
1 parent 38dc1cf commit a66f8cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion custom_components/eltako/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from eltakobus.message import *
from eltakobus.util import AddressExpression, b2s
from eltakobus.eep import EEP
from eltakobus.device import known_objects
from eltakobus.device import sorted_known_objects
from eltakobus import locking

from esp2_gateway_adapter.esp3_serial_com import ESP3SerialCommunicator
Expand Down Expand Up @@ -301,6 +301,12 @@ async def _read_memory_of_all_bus_members(self):

self._callback_receive_message_from_serial_bus(EltakoDiscoveryReply.parse(dev_response.body))

device_name = ""
for o in sorted_known_objects:
if dev_response.model[0:2] in o.discovery_names:
device_name = o.__name__

LOGGER.error("[Gateway] [Id: %d] Read memory from %s", )
# iterate through memory lines
for line in range(1, dev_response.memory_size):
try:
Expand Down

0 comments on commit a66f8cd

Please sign in to comment.