diff --git a/configuration/automations/ios.yaml b/configuration/automations/ios.yaml new file mode 100644 index 0000000..275a998 --- /dev/null +++ b/configuration/automations/ios.yaml @@ -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 diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 3a50da5..a608c38 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -75,14 +75,46 @@ mqtt: ios: actions: - - name: door_lock + - name: "Door Lock" background_color: "#000000" label: text: "Door Lock" - color: "#000000" + color: "#ffffff" icon: icon: lock-open 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: - platform: xiaomi_cloud_map_extractor