I’m trying to create a full binding for MyElas compatible Alarms.
For now I can connect and get an almost full json of my alarm state. I don’t understand why but some informations do not appear in json if I do not connect myself to the MyElas WEB UI…
Next step is to parse json into java class (I think I’m gonna use Gson except if something already exists in the framework), and then create a channel for :
offline status
ongoing alarm
number of armed partitions
number of disarmed partitions
number of partially armed partitions
Next milestones will be to arm and disarm partitions, and then a channel for each detector with state and bypass state + manual bypass, last alarms informations, …
I’m testing your binding . Works on my risco panel (Risco = MyElas ) .but doesn’t update channels (even connection is ok and fetch correctly state and detectors).
After debug it on Eclipse seems updatechannels() at line 200 on MyElasHandler class is never called probably because isconnected is ever false at line 1999.
That is what branches are for. Fork scantineau’s repo, create a branch in your fork, make your edits and commits. When you are ready, create a PR from your fork which will create the PR for the up stream repo.