I’m about to make my first automation in HA, however, i’m having some trouble.
I would like to pause one of my Sonos speakers if it’s playing, everytime I’m starting a certain activity on my Harmony Hub. A rather simple automation I agree, but I haven’t quite gotten the hang of using HA yet. Hopefully one of you can help me. The code (so far) looks like this:
alias: Hvis Sonos i køkken spiller og TV tændes, sluk Sonos i køkken
description: ""
mode: single
trigger: []
condition:
- condition: and
conditions:
- - condition: device
device_id: 3c006c438c097b07f662e75dd2701c12
domain: media_player
entity_id: media_player.kokken
type: is_playing
- condition: device
device_id: 5775cdb70f507639cc6229e4a6b414c3
domain: select
entity_id: select.harmony_hub_activities
type: selected_option
option: Brug Nvidia Shield
action:
- type: pause
platform: device
device_id: 3c006c438c097b07f662e75dd2701c12
domain: media_player
entity_id: media_player.kokken
I’m getting the error “Expected a dictionary @ data[‘condition’][0][‘conditions’][0]”
What seems to be the problem?