iOS actions
This commit is contained in:
parent
9d9ea64854
commit
4dc02ee35c
70
configuration/automations/ios.yaml
Normal file
70
configuration/automations/ios.yaml
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
- id: ios-door-lock
|
||||||
|
alias: '[ios] Door Lock'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: ios.action_fired
|
||||||
|
event_data:
|
||||||
|
actionName: Door Lock
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
||||||
|
state: locked
|
||||||
|
sequence:
|
||||||
|
- service: lock.unlock
|
||||||
|
target:
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
||||||
|
state: unlocked
|
||||||
|
sequence:
|
||||||
|
- service: lock.lock
|
||||||
|
target:
|
||||||
|
entity_id: lock.front_door_25f246fe_door_lock
|
||||||
|
|
||||||
|
- id: ios-good-night
|
||||||
|
alias: '[ios] Good Night'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: ios.action_fired
|
||||||
|
event_data:
|
||||||
|
actionName: Door Lock
|
||||||
|
action:
|
||||||
|
- service: script.good_night
|
||||||
|
|
||||||
|
- id: ios-good-morning
|
||||||
|
alias: '[ios] Good Morning'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: ios.action_fired
|
||||||
|
event_data:
|
||||||
|
actionName: Door Lock
|
||||||
|
action:
|
||||||
|
- service: script.good_morning
|
||||||
|
|
||||||
|
- id: ios-leave-home
|
||||||
|
alias: '[ios] Leave Home'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: ios.action_fired
|
||||||
|
event_data:
|
||||||
|
actionName: Door Lock
|
||||||
|
action:
|
||||||
|
- service: script.leave_home
|
||||||
|
|
||||||
|
- id: ios-arrive-home
|
||||||
|
alias: '[ios] Arrive Home'
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: ios.action_fired
|
||||||
|
event_data:
|
||||||
|
actionName: Door Lock
|
||||||
|
action:
|
||||||
|
- service: script.arrive_home
|
@ -75,14 +75,46 @@ mqtt:
|
|||||||
|
|
||||||
ios:
|
ios:
|
||||||
actions:
|
actions:
|
||||||
- name: door_lock
|
- name: "Door Lock"
|
||||||
background_color: "#000000"
|
background_color: "#000000"
|
||||||
label:
|
label:
|
||||||
text: "Door Lock"
|
text: "Door Lock"
|
||||||
color: "#000000"
|
color: "#ffffff"
|
||||||
icon:
|
icon:
|
||||||
icon: lock-open
|
icon: lock-open
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
|
- name: "Good Night"
|
||||||
|
background_color: "#000000"
|
||||||
|
label:
|
||||||
|
text: "Good Night"
|
||||||
|
color: "#9e9e9e"
|
||||||
|
icon:
|
||||||
|
icon: weather-night
|
||||||
|
color: "#9e9e9e"
|
||||||
|
- name: "Good Morning"
|
||||||
|
background_color: "#000000"
|
||||||
|
label:
|
||||||
|
text: "Good Morning"
|
||||||
|
color: "#ff9800"
|
||||||
|
icon:
|
||||||
|
icon: weather-sunny
|
||||||
|
color: "#ff9800"
|
||||||
|
- name: "Leave Home"
|
||||||
|
background_color: "#000000"
|
||||||
|
label:
|
||||||
|
text: "Leave Home"
|
||||||
|
color: "#ffffff"
|
||||||
|
icon:
|
||||||
|
icon: home-export-outline
|
||||||
|
color: "#ffffff"
|
||||||
|
- name: "Arrive Home"
|
||||||
|
background_color: "#000000"
|
||||||
|
label:
|
||||||
|
text: "Arrive Home"
|
||||||
|
color: "#ffffff"
|
||||||
|
icon:
|
||||||
|
icon: home-import-outline
|
||||||
|
color: "#ffffff"
|
||||||
|
|
||||||
camera:
|
camera:
|
||||||
- platform: xiaomi_cloud_map_extractor
|
- platform: xiaomi_cloud_map_extractor
|
||||||
|
Loading…
Reference in New Issue
Block a user