segalion / securitasdirect

Home Assistant integration with Securitas Direct (AKA Verisure EU) and command line tool to interact with.
40 stars 17 forks source link

Future maintainance and first curl issue #1

Closed BorlandFA closed 4 years ago

BorlandFA commented 5 years ago

Hi @segalion

I just find out about your bash script to use Securitas Direct alarm with Home Assistant since I was planning to develop something similar. I wanted to ask you if you are still working on this and if you'd feel comfortable if I try to help you on finishing the few TODO's?

Moreover, I have tried it in Mac with no success since the first $CURL does not return any .csv file attachment and then the grep fails. Any clue?

Thank you very much.

segalion commented 5 years ago

Hello. This script is a kind of prototyping automation to interact with web access. It has been tested only with spanish web, so the first thing I need to know is your country, as other web can has different versions, or even absolutely different webs.

This script has been developed reverse engineering spanish web access, as no api is provided by the company. Another problem could be uncompatibiity bash OSX. I have a slight integration in HA, with a command-line sensor that pulls state every 60 seconds, and a standard HA alarm module that sync with real alarm, so if you change alarm module, securitas is changed, and if you change securitas, HA alarm module is changed. (I would publish new version with all HA integration as soon as I have a little more spare time).

To improve pull every minute I have discovered that the CSV (that report the last 200 events) is the light form to access securtitas alarm state (The spanish securitas web is very rudimentary and hasnt any websocket suppport).

BorlandFA commented 5 years ago

I'm from Spain too and I actually was trying to fake the login as well with Postman and so on, that's why I found your module very interesting since that work was already done!

If you want, I'll wait until you publish the new version and from then, I can help you on something

segalion commented 4 years ago

A new custom component has been created. So I close this issue

EricBorland commented 4 years ago

Oh great! I'll try it, then