Skip to content

Commit

Permalink
reformat conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Jan 19, 2020
1 parent 5f2aaf2 commit 868a4e0
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions automations/cube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,12 @@
event_data:
id: lumi_sensor_cube_aqgl01_11
condition:
condition: and
conditions:
- condition: template
value_template: >
{{ trigger.event.data.event == 7007 }}
- condition: template
value_template: >
{{ is_state_attr("media_player.spotify", "source", "LS50 Wireless")}}
- condition: template
value_template: >
{{ trigger.event.data.event == 7007 }}
- condition: template
value_template: >
{{ is_state_attr("media_player.spotify", "source", "LS50 Wireless")}}
action:
- service: media_player.shuffle_set
entity_id: media_player.spotify
Expand All @@ -112,14 +110,12 @@
event_data:
id: lumi_sensor_cube_aqgl01_11
condition:
condition: and
conditions:
- condition: template
value_template: >
{{ trigger.event.data.event == 1001 }}
- condition: template
value_template: >
{{ is_state_attr("media_player.spotify", "source", "LS50 Wireless")}}
- condition: template
value_template: >
{{ trigger.event.data.event == 1001 }}
- condition: template
value_template: >
{{ is_state_attr("media_player.spotify", "source", "LS50 Wireless")}}
action:
service: media_player.media_play_pause
entity_id: media_player.spotify
Expand Down

0 comments on commit 868a4e0

Please sign in to comment.