augustas2 / eldes

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

Module failure if alarm is offline #27

Open simie7 opened 1 year ago

simie7 commented 1 year ago

I have two ELDES alarms on the cloud. When both are working, everything is OK with HA. But I had a case recently, when one (remote) system was offline because of electricity failure for prolonged time. I wasn't able to see anything on Home assistant even related with another working alarm system.

What is expected - when one system is not working, other system should be functional.

Problem was seen even in this window: image

Error was like this:

2023-10-13 18:32:26.779 ERROR (MainThread) [custom_components.eldes_alarm.core.eldes_cloud] Client error on API https://cloud.eldesalarms.com:8083/api/device/partition/list?imei=IMEINUMBER request 400, message='', url=URL('https://cloud.eldesalarms.com:8083/api/device/partition/list?imei=IMEINUMBER')

As second alarm system wasn't functioning, it still was discoverable on the cloud, but was not possible to read partitions list (as well as controls and temperature sensors).

Maybe it would be possible to change code to handle such case?