1
0

iOS actions

This commit is contained in:
Przemek Grondek 2022-04-02 03:00:35 +02:00
parent 9d9ea64854
commit 4dc02ee35c
2 changed files with 104 additions and 2 deletions

View 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

View File

@ -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