Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 17, 2024
1 parent 3012920 commit e1ac0ba
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 43 deletions.
62 changes: 31 additions & 31 deletions automations/apple_watch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_OFF
action: SLEEP_OFF
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_HALF
action: SLEEP_HALF
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SLEEP_TOTAL
action: SLEEP_TOTAL
timeout: "00:00:20"
continue_on_timeout: false
- variables:
Expand Down Expand Up @@ -124,31 +124,31 @@
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_ALL
action: SET_LIGHTS_ALL
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_BEDROOM
action: SET_LIGHTS_BEDROOM
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_LIVING_ROOM
action: SET_LIGHTS_LIVING_ROOM
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_BATHROOM
action: SET_LIGHTS_BATHROOM
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_HALL
action: SET_LIGHTS_HALL
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_TOILET
action: SET_LIGHTS_TOILET
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SET_LIGHTS_KITCHEN
action: SET_LIGHTS_KITCHEN
timeout: "00:00:20"
continue_on_timeout: false
- variables:
Expand Down Expand Up @@ -185,31 +185,31 @@
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_OFF
action: LIGHTS_OFF
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_ON
action: LIGHTS_ON
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_FIFTY
action: LIGHTS_FIFTY
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_HUNDRED
action: LIGHTS_HUNDRED
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_ONE
action: LIGHTS_ONE
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_WHITE
action: LIGHTS_WHITE
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: LIGHTS_COZY
action: LIGHTS_COZY
timeout: "00:00:20"
continue_on_timeout: false
- variables:
Expand Down Expand Up @@ -325,31 +325,31 @@
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_LIVING_ROOM
action: VACUUM_LIVING_ROOM
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_BEDROOM
action: VACUUM_BEDROOM
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_OFFICE
action: VACUUM_OFFICE
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_HALL
action: VACUUM_HALL
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_KITCHEN
action: VACUUM_KITCHEN
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_ALL
action: VACUUM_ALL
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: VACUUM_STOP
action: VACUUM_STOP
timeout: "00:00:20"
continue_on_timeout: false
- variables:
Expand Down Expand Up @@ -423,31 +423,31 @@
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T15
action: T15
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T16
action: T16
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T17
action: T17
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T18
action: T18
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T19
action: T19
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T20
action: T20
- trigger: event
event_type: mobile_app_notification_action
event_data:
actions: T21
action: T21
timeout: "00:00:20"
continue_on_timeout: false
- variables:
Expand Down
2 changes: 1 addition & 1 deletion automations/climate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: TURN_ON_HEATING
action: TURN_ON_HEATING
timeout: "00:00:20"
continue_on_timeout: false
- action: script.set_high_temperature
Expand Down
16 changes: 8 additions & 8 deletions automations/control_switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Dimmer Switch (Living room)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Next color
Expand Down Expand Up @@ -78,7 +78,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Dimmer Switch (Bedroom)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Next color
Expand Down Expand Up @@ -153,7 +153,7 @@
- trigger: mqtt
topic: "zigbee2mqtt/IKEA Remote (Bedroom Marcella)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
personal_light: >-
{% if trigger.topic == 'zigbee2mqtt/IKEA Remote (Bedroom)' %}
light.bed_led
Expand Down Expand Up @@ -461,7 +461,7 @@
trigger: mqtt
topic: "zigbee2mqtt/IKEA Switch (Guest room)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Turn on
Expand All @@ -482,7 +482,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Guest Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Toggle
Expand All @@ -504,7 +504,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Desk)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Toggle
Expand All @@ -520,7 +520,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Baby Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Toggle light
Expand All @@ -543,7 +543,7 @@
trigger: mqtt
topic: "zigbee2mqtt/Smart Switch (Mid Room)"
variables:
actions: "{{ trigger.payload_json.action }}"
action: "{{ trigger.payload_json.action }}"
actions:
choose:
# Toggle
Expand Down
2 changes: 1 addition & 1 deletion automations/leaving.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: TURN_OFF_EVERYTHING
action: TURN_OFF_EVERYTHING
actions:
action: script.leaving

Expand Down
2 changes: 1 addition & 1 deletion automations/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: "AGREE_WORD"
action: "AGREE_WORD"
timeout: "01:00:00"
continue_on_timeout: false

Expand Down
2 changes: 1 addition & 1 deletion automations/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
trigger: event
event_type: mobile_app_notification_action
event_data:
actions: SOUND_ALARM
action: SOUND_ALARM
timeout: "01:00:00"
continue_on_timeout: false
- action: light.turn_on
Expand Down

0 comments on commit e1ac0ba

Please sign in to comment.