Yamaha AV Receiver Automation

you can make a source sensor an use it’s state for the condition: