Skip to content

Commit

Permalink
test Service for sending arbritrary ESP2 messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Mar 24, 2024
1 parent e44dc9c commit 1f142f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/eltako/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def async_service_send_message(self, event) -> None:

try:
# create message
msg = eep.encode_message(sender_id)
msg = eep.encode_message(sender_id[0])
LOGGER.debug("[Service: Send Message] Generated message: %s Serialized: %s", msg, msg.serialize().hex())
# send message
event_id = config_helpers.get_bus_event_type(self.base_id, SIGNAL_SEND_MESSAGE)
Expand All @@ -282,7 +282,7 @@ async def async_service_send_message(self, event) -> None:
# target_temperature = event.data.get("target_temperature")
# current_temperature = event.data.get("current_temperature")
# if target_temperature and current_temperature is not None:
# message = A5_10_06(A5_10_06.Heater_Mode.NORMAL, target_temperature, current_temperature, False).encode_message(sender_address)
# message = A5_10_06(A5_10_06.Heater_Mode.NORMAL, target_temperature, current_temperature, False).encode_message(sender_address)

# if message is not None:
# self.send_message(message)
Expand Down

0 comments on commit 1f142f4

Please sign in to comment.