I have updated all the code to v.2.
- to make more and more robust.
- to make more and more speed: Call “securitas” without parameters get the “supposed” alarm state without the need of consult the alarm for the state.
- to be HA alarm component states compatible. The input are now the states in HA: armed_away, armed_home, armed_night and disarmed, and the output is a direct json.
- hide user and password from command-line parameters (ps listing process).
- etc…
Now, I am working in configure an alarm_manual component that “sync” with real “Securitas” alarm: If you change in HA, change the Securitas alarm, and if you change the Securitas" alarm (with real panel, keys, remotes…), change the state of the HA alarm.
I have created a command line sensor that every minute get the state of the Securitas Alarm, and a shell_command for arm/disarm (call to “securitas armed_away”). But my problem now is that incredibly, HA lacks to get the output of the shell_command, so you cannot known if secuence was really completed.