Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Alterado o codigo para  diferenciar  o armado em casa  (codigo  3441)  dos outros  codigos  de arme  da central.
  • Loading branch information
fernac03 authored Aug 12, 2024
1 parent 3625452 commit 325567f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,17 @@ def run(self):
conn.send(bytes(message))
if len(data) ==24:
evento = data[8:12].decode('ascii')
if evento == '3401' or evento == '3407' or evento =='3403' or evento =='3404' or evento =='3408' or evento=='3409' or evento=='3441':
if evento == "3441" :
self.armed_away = False
self.armed_night = False
self.armed_home = True
self._attr_state = STATE_ALARM_ARMED_HOME
dispatcher_send(self.hass, SIGNAL_PANEL_MESSAGE, self)
if evento == '3401' or evento == '3407' or evento =='3403' or evento =='3404' or evento =='3408' or evento=='3409' :
self.armed_away = False
self.armed_night = False
self.armed_home = True
self._attr_state = STATE_ALARM_ARMED_AWAY
dispatcher_send(self.hass, SIGNAL_PANEL_MESSAGE, self)
if evento == '1401' or evento =='1407' or evento =='1403' or evento=='1409':
_LOGGER.warn("Evento %s", evento)
Expand Down

0 comments on commit 325567f

Please sign in to comment.