2t0m
(Thomas)
April 17, 2019, 10:18am
1
Hi. I have a problem configuring the manual alarm component.
alarm_control_panel:
- platform: manual
delay_time: 0
pending_time: 8
trigger_time: 120
Every time I call the alarm_control_panel.alarm_trigger
service, I have to wait the pending_time
(8 seconds) before the alarm is triggered. While I should wait for the delay_time
(0 second).
Am I wrong ?
Thanks
tom_l
April 17, 2019, 3:02pm
2
Some bad grammar in those configuration variable explanations but no I don’t think you are wrong. Open an issue: https://github.com/home-assistant/home-assistant/issues
I’ve bookmarked the page to go back to it and fix the document grammar when I get a chance.
The delay_time will only delay trigger, while pending_time will delay both from disarmed and triggered state.
Ex: disarmed > pending_time > armed > delay_time > pending_time > trigger
From the module code:
"""
Representation of an alarm status.
When armed, will be pending for 'pending_time', after that armed.
When triggered, will be pending for the triggering state's 'delay_time'
plus the triggered state's 'pending_time'.
After that will be triggered for 'trigger_time', after that we return to
the previous state or disarm if `disarm_after_trigger` is true.
A trigger_time of zero disables the alarm_trigger service.
"""
tom_l
April 18, 2019, 5:20am
4
That’s not how I would have expected it to work but does fit with the variable explanations now that I read it again.
@2t0m If you want an alarm with separate delays have a look at this custom component:
My custom version of an alarm panel hoping to bring many new features at the request of fellow patrons.
Tested with HA Version 0.60.1
You can find the github here: https://github.com/gazoscalvertos/Hass-Custom-Alarm
Please contribute to this thread and submit your requests, suggestions, ideas and pitfalls!.
Features:
MQTT Integration
Google Assistant Integration
Clock display (Optional)
Weather Status (Optional) - NOTE: You must have dark sky weather component enabled specifically sensor.d…
It has changed quite a bit from that first post so scan down the thread.
It has a few pull requests active on github and so you’ll need to edit a couple of files to remove the bugs but other than that it is a fine system.
2t0m
(Thomas)
April 18, 2019, 8:24am
5
That was not clear for me either. But with those explanations, I manage to get what I want.
alarm_control_panel:
- platform: manual
pending_time: 0
armed_away:
pending_time: 30
Immediate triggering (via pending_time: 0
) but a pending_time
of 30 seconds before arming away.
Thanks
2 Likes