hi,
i have a pioneer receiver, which eats ~1W when in standby. this is ok for me. i have a TV and a powered subwoofer that eat way more.
so my plan was to use the power state of the receiver as a trigger to switch on the other two via a wifi plug.
i can see the state changes of the receiver (via DLNA integration):
became unavailable
12:54:41 PM - 9 minutes ago
---
changed to Playing
12:54:18 PM - 11 minutes ago
etc - but this automation:
- alias: "tv on"
trigger:
- platform: "state"
from: "unavailable"
entity_id: "media_player.pioneer_receiver_2"
action:
- service: "switch.turn_on"
target:
device_id: "78ff24e73a34f305d69d9162f5304d40"
entity_id: "switch.tv_switch"
does not trigger - any ideas why? is “unavailable” incorrect?