Alarm_control_panel enabling via appdaemon

Hi!

Attempoting to use Appdaemon to enable the alarm, using the following code:
self.set_state(alarm_control_panel.home_alarm, state = armed_away)
The alarm control panel displays the correct state of “armed away”, but HA isn’t triggering the alarm when a sensor is triggered.
Clearly missing something here, ie do I eed to send additional parameters to HA in order to enable the alarm?

Thanks,

Rob.

You need to use the call_service() method, not the set_state() method.

Okay thanks for that! (And sorry for the delay in responding…)
I’m away on holis, but will give it a when back.