genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
388 stars 155 forks source link

Security System program(module) doesn't retain Armed state #331

Closed tuicemen closed 5 years ago

tuicemen commented 5 years ago

I'm running this on a Raspberry PI 3B+ at my off grid place as well as a Pi Zero at my city residents both are running Rasbian Stretch if power is lost to the PI when it reboots and HG reloads the security program (module widget) loads as disarmed. this isn't a issue unless the system was in the armed condition prior. My X10 modules in HG all retain their last known state. Since I have several activities (Macros) based on an alarm trip this renders them unresponsive if my security is actually tripped after the PI reboots. Interestingly this also occurs if the HG service is just restarted and the OS never loses power I just tested this with the PI ZeroW

Expected behavior

Security system to retain Armed condition after OS reboot and HG restarts The security System should load to its previous state (Alarm Away or Alarm home) However I'm more concerned about the away mode

Actual behavior

On a PI power up and HG restarts the security system loads as disarmed even if it was set as Armed prior to a PI shut down.

Steps to reproduce the problem starting from a fresh install

  1. Arm security system (home or away mode it doesn't matter) and be sure it displays as Armed
  2. reboot OS or in HG go to configuration/maintenance and click restart service
  3. open HG web interface, refresh if viewing from another device
  4. check HG Security Armed status

Specifications

Additional configuration notes

The Security system is a DS700 x10 security console however this shouldn't mater as the console never loses power.