-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautomations_old.yaml
29 lines (28 loc) · 971 Bytes
/
automations_old.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- alias: Notify iLendrius Garage #creates the notification
initial_state: True
hide_entity: True
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0001fd6296
from: 'off'
platform: state
to: 'on'
action:
service: notify.ios_ilendrius #id of your ios device, might not show up until you've loaded the ios component in HA
data:
title: "Garage" #customizable
message: "La saracinesca è aperta" #customizable
data:
push:
badge: 0 # this will remove the badge/app icon number
category: 'garage' #name matched in ios component
- alias: iOS app notification action garage1 #creates the action button
initial_state: True
hide_entity: True
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: CHIUDI_GARAGE #name matched in ios component
action:
service: switch.turn_on
entity_id: switch.sonoff_garage_4