augustas2 / eldes

Home Assistant custom component for Eldes Alarm system
MIT License
14 stars 4 forks source link

No bypass alarm API - System fails to arm if any zones have errors #9

Open sim-maz opened 2 years ago

sim-maz commented 2 years ago

If using the eldes security app, when trying to arm alarm an error modal is displayed if e.g. a window is not closed and allows to bypass the zones to arm the system anyway. Is it possible to add this API to the integration so that HA could always make sure to arm the alarm regardless if someone forgot to close a window, etc? Right now it just tries to arm and times out after failing.

Screenshot_20220222-091137

augustas2 commented 2 years ago

Its definitely possible. Just I'm seeing this modal for the first time. I will try to replicate this case and will inform about progress.

sim-maz commented 2 years ago

I would try this myself, but I've no way of testing what requests are sent by the android app. I tried scrapping with fiddler, but couldn't get it to work.

augustas2 commented 2 years ago

You can try to set up https://www.charlesproxy.com. This how I got all API endpoints. But no worries, I will try to open my house doors and arm. Probably it will show same warning, just never tried 😄

samuolis commented 2 years ago

You can try to set up https://www.charlesproxy.com. This how I got all API endpoints. But no worries, I will try to open my house doors and arm. Probably it will show same warning, just never tried 😄

For me on android Charles do not work, because every app needs changes to approve Charles, so it should only be possible on ios. Only on android 6 version it is possible to get these charles events, then this change was not made.

One of the possible ways would be to deconstruct apk, but it needs more work, but probably it will have proguard so it could be pretty hard to get source code and such apps mostly have this.