guerrerotook / securitas-direct-new-api

This repository contains the new securitas direct API that can be integrated in Home Assistant
Apache License 2.0
76 stars 30 forks source link

[BUG] It refresh every minute while 5 minutes refresh period is set #185

Closed sh4rks closed 8 months ago

sh4rks commented 8 months ago

Hi @guerrerotook !

Thanks for your work!

since the latest version, the integration refresh the alarm state every minute while I have set 5 minutes refresh period on the configuration.

Thanks! IMG_9798

guerrerotook commented 8 months ago

There is a new option in the integration so you can set up what frequency the integration call the server.

sh4rks commented 8 months ago

There is a new option in the integration so you can set up what frequency the integration call the server.

Already set to 5 minutes but it seems to not be taken into account by the integration.

IMG_9799

Fluimucil commented 8 months ago

Same problem here. I tried to change the scan intervale but it keeps scanning every minute. I had to disable the integration as Securitas keeps calling because of the number of requests

sh4rks commented 8 months ago

Same problem here. I tried to change the scan intervale but it keeps scanning every minute. I had to disable the integration as Securitas keeps calling because of the number of requests

I downgrade to 2.4.0.4 and the integration is calling every 20minutes. Parameter are not taken into account.

miquellaboria commented 8 months ago

Same problem here, if you check “Check the Status of the panel…” it refresh every minute and don’t use Scan Interval.

Thanks for the help!

sh4rks commented 8 months ago

@guerrerotook : I saw the PR closed. I downloaded the version in the main branch, it seems not fixed.

IMG_0038

guerrerotook commented 8 months ago

What happening right there is the option Check the Status of the panel that you may have checked. This force to check the alarm panel every time, please take a look at the readme.md file to understand what it does.

https://github.com/guerrerotook/securitas-direct-new-api?tab=readme-ov-file#features

By the way this is not a bug.

sh4rks commented 8 months ago

@guerrerotook :

so what should I do? I disarm alarm when I enter/exit home through the panel so I need to check the panel but refresh every minutes the panel state cause the integration to stop at a moment as you can see below. maybe you can implement an interval to refresh the panel as you have done for the server?

Thanks you. IMG_0041