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

2.3.0.0 update prevents state changes #160

Closed zav13r closed 7 months ago

zav13r commented 10 months ago

Hello - strange bug I experienced today.

Since updating to v 2.3.0.0 this morning, the integration reported entities as expected but no requests to change alarm status had any effect. Alarm control panel card (selecting disarm, arm etc) has no action.

There was no difference to setting alarm status by fronted, automation or service call.

Nothing was received at Securitas end, according to official app.

Nothing shows in any logs.

Reverting to v 2.2.0.0 restored the expected behaviour.

No other changes were made to config or setup.

ToroNander commented 10 months ago

Hi! I observed the same, but easy to solve. I have several automations running, activating and deactivating the alarm. Before the update it wasn't needed to enter the 4digit code for activating, only for deactivating, now it is needed for both.

I simply added the line code: "XXXX" into ALL of the scripts which are called for the automations.

Complete part of script in yaml:

device_id: YYYXXXZZZ domain: alarm_control_panel entity_id: alarm_control_panel.name_of_your_installation type: arm_home code: "4digitcode"

With the panel the same: Enter the code first and activate/decativate.

BR Toro

zav13r commented 10 months ago

HI @ToroNander,

Thank you for the tip - this may work for automation/script service calls, but for the alarm panel card this doesn't work - I have wall-mounted tablets, with no option to enter a code before arm/disarm on the lovelace frontend. Same on mobile, where no option exists for entering a code before arming.

ToroNander commented 10 months ago

Hi! I have also several wall-mounted tablets and when I add the Securitas Alarm to a dashboard the proposal is like in the pic below with the number block keyboard. I only know it that way, maybe because of a newer installation ?! No idea...

HA_cardAlarm_SecDir

If I switch to the yaml code editor for that card and add the line 'code: "XXXX"', like above explained, it works again.

BR Toro

zav13r commented 10 months ago

I think this is linked with #162 and #163

zav13r commented 10 months ago

Hi! I have also several wall-mounted tablets and when I add the Securitas Alarm to a dashboard the proposal is like in the pic below with the number block keyboard. I only know it that way, maybe because of a newer installation ?! No idea...

HA_cardAlarm_SecDir

If I switch to the yaml code editor for that card and add the line 'code: "XXXX"', like above explained, it works again.

BR Toro

I don't use the standard alarm card in lovelace so don't have this by default.

cantupaz commented 7 months ago

@zav13r Does this work now? (edit: try the latest version)

zav13r commented 7 months ago

@cantupaz - yes, this appears to be resolved for me since latest version. I'll close the issue.

zav13r commented 7 months ago

Latest version appears to resolve this issue which is no longer experienced for me.