diff --git a/source/_cookbook/dim_lights_when_playing_media.markdown b/source/_cookbook/dim_lights_when_playing_media.markdown index 92bea514ca4..55fe9413b59 100644 --- a/source/_cookbook/dim_lights_when_playing_media.markdown +++ b/source/_cookbook/dim_lights_when_playing_media.markdown @@ -57,7 +57,7 @@ automation: entity_id: media_player.htpc from: 'playing' condition: - - platform: state + - condition: state entity_id: sun.sun state: 'below_horizon' action: @@ -70,7 +70,7 @@ automation: entity_id: media_player.htpc to: 'playing' condition: - - platform: state + - condition: state entity_id: sun.sun state: 'below_horizon' action: