17-02-20 14:20:37 ERROR (MainThread) [homeassistant.core] Invalid service data for remote.send_command: required key not provided @ data['device']. Got None
Yes I use conditions based around the state of the harmony quite a bit.
For example in my own ‘sonos turn on’ script I check to see if the Harmony is turned off before i go changing it.
alias: "Sonos turned on, turn it on in living room"
trigger:
- platform: state
entity_id: media_player.kitchen
state: 'playing'
condition:
- condition: state
entity_id: sensor.alarm_status
state: 'unset' #most likely not in bed
- condition: state
entity_id: sensor.harmony
state: 'PowerOff' #nothing on TV
action:
- service: script.turn_on_sonos
sensor.harmony is a template sensor that contains the current activity, defined as below