Not sure what would be the best approach/start reading.
- TV (primary)
- Android TV (connected to TV, secondary)
I think I want a device/template/helper that display the status of two media.players (would be good to know if secondary is sleeping). And a conditional action to turn on/off or wake/sleep depending on condition.
I'm not sure about the syntax but this would probably describe the behaviour I am after. I rather keep to yaml
What is possible? Where should I start reading?
If primary = ON
player.primary.powertoggle
player.secondary.sleep
return condition (OFF)
Else
If player.secondary.sleep then wake else powertoggle.secondary
if primary = off then powertoggle.primary
return condition (ON)
End IF