So i have the following configuration in my configuration.yaml to setup an iOS category for my Alarm.
ios: push: categories: - name: Alarm identifier: 'alarm' actions: - identifier: 'DISABLE_ALARM' title: 'Disable Alarm'
I then have an automation that will disable my alarm from the notifications which works well.
- alias: 'Disarm alarm from iOS Notification' trigger: platform: event event_type: ios.notification_action_fired event_data: action: "DISABLE_ALARM" action: - service: script.alarm_disarm
However i’ve noticed if i click on other notifications the above automation will still run so my alarm disables
Any idea why this is.
- alias: Door Bell Home Night initial_state: true trigger: - platform: state entity_id: sensor.0x00158d0004506f59_click to: "single" condition: condition: and conditions: - condition: time after: '18:00:00' before: '09:00:00' - condition: state entity_id: group.family state: 'home' action: - service: notify.all_ios_devices data: title: "Ding Dong!" message: 'Someone is at the door.' data: attachment: content-type: jpeg push: category: camera entity_id: camera.camera_bedroom