Mi Box S - Use "Not available" state as Automation Trigger

Hey guys,

I successfully managed to automatically turn on Denon AVR when I boot Mi Box with the Remote but what about the other way around?

This as trigger doesn’t work here as it is not the same state when MiBox is turned of:

  - platform: device
    device_id: ff5f508434e34b5b83df35b03c2086a1
    domain: media_player
    entity_id: media_player.mibox4
    type: turned_off

The state I’m searching is labeled “Not available” instead of “Off” but it is not in the list here…

How can I use this state for triggering an action?

Thank you guys :slight_smile:

Use the state as the trigger type not device.

I think the state is ‘unavaliable’. You could try that.