Skip to content

Commit

Permalink
Fix syntax issue introduced with replace all
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 16, 2024
1 parent 84e08bd commit f7bfc49
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 41 deletions.
2 changes: 1 addition & 1 deletion automations/alarm_clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
value_template: >
{{ states("sensor.time")[0:5] == states("sensor.ten_minutes_before_alarm") }}
conditions:
conditions: state
condition: state
entity_id: input_boolean.alarm_clock
state: "on"
actions:
Expand Down
2 changes: 1 addition & 1 deletion automations/apple_watch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
event_data:
actionName: Play TV
conditions:
conditions: state
condition: state
entity_id: media_player.tv
state: "on"
actions:
Expand Down
2 changes: 1 addition & 1 deletion automations/bike.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
trigger: time_pattern
minutes: '/1'
conditions:
conditions: template
condition: template
value_template: "{{ states('sensor.time') == states('input_datetime.bike_charger_off')[0:5] }}"
actions:
action: switch.turn_off
Expand Down
4 changes: 2 additions & 2 deletions automations/climate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
value_template: >
{{ states("sensor.time")[0:5] == states("sensor.half_hour_before_alarm") }}
conditions:
conditions: state
condition: state
entity_id:
- input_boolean.alarm_clock
- input_boolean.automatic_temperature
Expand Down Expand Up @@ -144,7 +144,7 @@
entity_id: binary_sensor.activity_in_guest_room
to: "off"
conditions:
conditions: state
condition: state
entity_id: binary_sensor.activity_in_guest_room
state: "off"
actions:
Expand Down
10 changes: 5 additions & 5 deletions automations/control_switches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@
- alias: "Control switches: bedroom IKEA dimmer switch"
mode: parallel
triggers:
- trigger: event
- trigger: mqtt
topic: "zigbee2mqtt/IKEA Remote (Bedroom)"
- trigger: event
- trigger: mqtt
topic: "zigbee2mqtt/IKEA Remote (Bedroom Marcella)"
variables:
actions: "{{ trigger.payload_json.action }}"
Expand Down Expand Up @@ -358,7 +358,7 @@
entity_id: all
- conditions: # off -> half
conditions: state
condition: state
entity_id: input_select.sleep_mode
state: "off"
sequence:
Expand All @@ -374,7 +374,7 @@
option: half

- conditions: # half -> total
conditions: state
condition: state
entity_id: input_select.sleep_mode
state: half
sequence:
Expand All @@ -385,7 +385,7 @@
option: total

- conditions: # on total, just turn lights off
conditions: state
condition: state
entity_id: input_select.sleep_mode
state: total
sequence:
Expand Down
6 changes: 3 additions & 3 deletions automations/cube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
actions:
choose:
- conditions: # Change hue of living room lights
conditions: state
condition: state
entity_id: input_select.cube_mode
state: "Hue"
sequence:
Expand All @@ -100,7 +100,7 @@
- "{{ hue_sat[1] }}"

- conditions: # Change brightness of living room lights
conditions: state
condition: state
entity_id: input_select.cube_mode
state: "Brightness"
sequence:
Expand All @@ -114,7 +114,7 @@
{{ new_brightness|int(0) }}
- conditions: # Change speaker volume
conditions: state
condition: state
entity_id: input_select.cube_mode
state: "Volume"
sequence:
Expand Down
2 changes: 1 addition & 1 deletion automations/doorbell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
#- from github.com/basnijholt/home-assistant-config
- alias: "Doorbell: click the button"
initial_state: "on"
initial_state: true
triggers:
trigger: event
event_type: deconz_event
Expand Down
10 changes: 5 additions & 5 deletions automations/light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
entity_id: binary_sensor.activity_in_living_room
to: "on"
conditions:
conditions: state
condition: state
entity_id: input_boolean.guest_mode
state: "off"
actions:
Expand All @@ -45,7 +45,7 @@
entity_id: input_select.sleep_mode
from: total
conditions:
conditions: state
condition: state
entity_id: input_boolean.guest_mode
state: "off"
actions:
Expand All @@ -63,7 +63,7 @@
entity_id: binary_sensor.someone_in_the_house_in_last_hour
to: "on"
conditions:
conditions: state
condition: state
entity_id: binary_sensor.someone_in_the_house_in_last_hour
state: "on"
actions:
Expand Down Expand Up @@ -137,7 +137,7 @@
entity_id: binary_sensor.activity_in_kitchen
to: "on"
conditions:
conditions: state
condition: state
entity_id: input_select.sleep_mode
state:
- "off"
Expand Down Expand Up @@ -320,7 +320,7 @@
event_data:
id: smart_switch_bedroom_marcella
conditions:
conditions: state
condition: state
entity_id: input_boolean.bedroom_lights_automatically_turned_on
state: "on"
actions:
Expand Down
2 changes: 1 addition & 1 deletion automations/media_player.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
entity_id: media_player.tv
to: "off"
conditions:
conditions: state
condition: state
entity_id: media_player.kef_ls50
state: "on"
actions:
Expand Down
10 changes: 0 additions & 10 deletions automations/mqtt.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion automations/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
entity_id: binary_sensor.openclose_front_door
to: "on"
conditions:
conditions: state
condition: state
entity_id: input_boolean.front_door_open_warning
state: "on"
actions:
Expand Down
6 changes: 3 additions & 3 deletions automations/plant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- trigger: time
at: "20:00"
conditions:
conditions: state
condition: state
entity_id: plant.calathea
state: "problem"
actions:
Expand All @@ -34,7 +34,7 @@
- trigger: time
at: "20:00"
conditions:
conditions: state
condition: state
entity_id: plant.monstera
state: "problem"
actions:
Expand All @@ -52,7 +52,7 @@
- trigger: time
at: "20:00"
conditions:
conditions: state
condition: state
entity_id: plant.peace_lily
state: "problem"
actions:
Expand Down
4 changes: 2 additions & 2 deletions automations/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
entity_id: binary_sensor.openclose_bathroom
to: "on"
conditions:
conditions: state
condition: state
entity_id: input_boolean.bathroom_door_open_warning
state: "on"
actions:
Expand All @@ -126,7 +126,7 @@
entity_id: binary_sensor.activity_in_master_bedroom
to: "on"
conditions:
conditions: state
condition: state
entity_id: input_boolean.bedroom_activity_warning
state: "on"
actions:
Expand Down
4 changes: 2 additions & 2 deletions automations/sleep_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from: "on"
to: "off"
conditions:
conditions: state
condition: state
entity_id: input_boolean.alarm_clock
state: "off"
actions:
Expand Down Expand Up @@ -54,7 +54,7 @@
to: "off"
for: "01:00:00"
conditions:
conditions: state
condition: state
entity_id: input_select.sleep_mode
state: half
actions:
Expand Down
2 changes: 1 addition & 1 deletion automations/vacuum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
trigger: time
at: "08:00"
conditions:
conditions: state
condition: state
entity_id: binary_sensor.vacuum_day
state: "on"
actions:
Expand Down
4 changes: 2 additions & 2 deletions automations/work.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
trigger: time
at: "00:00"
conditions:
conditions: state
condition: state
entity_id: input_boolean.work_hour_notification_sent
state: "on"
actions:
Expand All @@ -47,7 +47,7 @@
entity_id: person.bas
from: "Work"
conditions:
conditions: time
condition: time
after: "15:00:00"
before: "22:00:00"
actions:
Expand Down

0 comments on commit f7bfc49

Please sign in to comment.