HI, I wish to activate Alarm System every day after midnight in “silent mode”… avoiding xiaomi gateway plays ringtone.
How can I do it?
- alias: system alarm home automatic on
trigger:
- platform: state
entity_id: device_tracker.samsung_s8_wifi
to: 'home'
- platform: state
entity_id: device_tracker.samsung_s8_bt
to: 'home'
condition:
- condition: time
after: '00:00:00'
before: '06:00:00'
action:
- service: alarm_control_panel.alarm_arm_home
data: {"entity_id":"alarm_control_panel.ha_alarm","code":"ABCD"}
Which platform are you using for your alarm control panel?
I don’t think it is currently possible. The arming service only accepts an entity and code as data.
I have a pull request in which would make arming with additional options like this easy to implement for the various platforms. The maintainers aren’t convinced yet that it is needed. I will link to your inquiry that there is demand for a more flexible arming capability though.
Hi anderson110, I’m using raspbery 3 Pi with Hassio with the classic alarm.py
I have seen it declare a “silent mode”… it could be very useful to arm and disarm alarm in the night without playng any ringtone with the xiaomi gateway.
But as you write… at the moment it seem is impossible to use.