Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
correção do bug de monitoramento dos sensores para centrais com  firmare superior  ao 5.5  onde nao estava sendo reportado o status dos sensores
  • Loading branch information
fernac03 authored Jul 18, 2024
1 parent f26dfdc commit 3625452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def run(self):
_LOGGER.warn('Send ACK ')
elapsed=time.time()
conn.send(bytes(message))
if len(data) == 118:
if len(data) >= 118:
#_LOGGER.warn("pacote 118")
if data[12]/14 > 12.5:
#_LOGGER.warn("Bateria Normal")
Expand All @@ -436,7 +436,7 @@ def run(self):
#_LOGGER.warn("Bateria Baixa")
self.battery_low = True
dispatcher_send(self.hass, SIGNAL_PANEL_MESSAGE, self)
#_LOGGER.warn("PGM %s", data[13])
_LOGGER.debug("PGM %s", data[13])
### status das particoes
for i in range(16):
Part=i+1
Expand Down

0 comments on commit 3625452

Please sign in to comment.