If the receiver is available when Hassio starts the sensor shows up fine, but doesn’t when I turn on the receiver afterwards (I’ve disabled network control on the receiver to limit power usage btw).
Can anyone help me out with the action format for this sensor in the automation?
Thanks for the quick response! I noticed a typo in your code ‘unkonwn’ instead of ‘unknown’. After changing that the state is being recognised as ‘off’ when hassio restarts and the receiver is off and the correct audio source when the receiver is on. But if I turn on the receiver when the sensor shows off it doesn’t change to the audio source.
Is there a way to create an automation that change the sensor state when the receiver gets turned on?
Edit: Scratch that. It seems to be working, but it takes a lot longer before it updates the sensor after turning on the receiver. Longer than it used to take when the receiver was still accesible in standby mode over the network.
At the moment it’s showing ‘END’, but the whole night it had been showing ‘TV audio’ even though I turned it off yesterday evening via remote.
I just noticed that it behaves strangely when I turn it off via the remote. If I turn the receiver off via Hassio it seems to detect the state change properly.
Btw: the state of the reveiver itself shows up as ‘unknown’ via: