guerrerotook / securitas-direct-new-api

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

Alarm does not work #118

Open iuhorts opened 1 year ago

iuhorts commented 1 year ago

Hello, Since 4-5 days ago alarm stop working. Only works first alarm status change after home assistant restart.ç, after this will not work anymore untill restarting home assistant. On integrations, securitas is showed up in orange. Any idea? Screenshot_2023-02-26-18-44-21-327-edit_io homeassistant companion android

Thank you!

ToroNander commented 1 year ago

Please add info from the log file in HA (Settings --> System --> Logs). Could have several reasons. E.g. that u tried too often and your user is blocked. In my case it was like u show in the pic because of that. Realized through log file. Apart HA core version would be interesting. BR

iuhorts commented 1 year ago

Hello! There is the log about alarm. It says that is autoamtization but with the h.a alarm panel happens the same.

Screenshot_2023-02-27-07-21-17-987-edit_io homeassistant companion android Screenshot_2023-02-27-07-21-51-685-edit_io homeassistant companion android

guerrerotook commented 1 year ago

Did you do the 2FA and received an SMS to login into the integration?

iuhorts commented 1 year ago

Nope, did I?

Did you do the 2FA and received an SMS to login into the integration?

iuhorts commented 1 year ago

Did you do the 2FA and received an SMS to login into the integration?

Yes had it done. With furter investigations i found the problem is when i try to reload the integration i do this after each activation/deactivation because most of times it fails and doesn't refresh until next check(20minutes). I use: Home Assistant Core Integration: Reload config entry after this i got an error. Screenshot_2023-03-19-09-16-26-922_io homeassistant companion android

Borty97 commented 1 year ago

Did you wrote your code like this in configuration.yaml?: securitas: username: !secret securitas_direct_username password: !secret securitas_direct_password code: !secret securitas_direct_code country: ES And in your secrets.yaml: securitas_direct_username: username securitas_direct_password: password securitas_direct_code: "code"

Remember to write the code with colons

iuhorts commented 1 year ago

Did you wrote your code like this in configuration.yaml?: securitas: username: !secret securitas_direct_username password: !secret securitas_direct_password code: !secret securitas_direct_code country: ES And in your secrets.yaml: securitas_direct_username: username securitas_direct_password: password securitas_direct_code: "code"

Remember to write the code with colons

Mm, thank you, the thing is i've it configurated trough integration wizard, that you fill the textbox. Need to set it into configuration.yaml?

Borty97 commented 1 year ago

Yes, you need to define this variables first in configuration.yaml and then restart Home Assistant. Once done, it will discover the integration and it will automatically show your phone to send the 2FA message.

iuhorts commented 1 year ago

Yes, you need to define this variables first in configuration.yaml and then restart Home Assistant. Once done, it will discover the integration and it will automatically show your phone to send the 2FA message.

Yes, but you can do it in wizard, and if you do in wizard not need in configuration.yaml