Open sira87 opened 4 years ago
Hello, thanks for the kind words!
The Universal Media Player integration is perfect for these use-cases.
Simply create a universal media player based on your device and override the turn_on
/ turn_off
with service calls, then use that newly created entity in your Lovelace UI.
Let me know if this solution suits your needs.
Hi! Thank you for your quick reply. I did as you said and I managed to obtain the result I wanted, sort of.
The biggest problem here is how the Apple TV reports his state, which is idle
both when the device is in standby/off state, and when powered on but waiting for input the menu, which of course is unfortunate.
Due to this behaviour I can't turn off the ATV via Universal Media Player turn_off
(which calls a remote.send_command
service) if the device is idling in the menu. For what Universal Media Player knows the device is actually off, not on (since it's reporting idle
state even when in the menu), and it sends the turn_on
command instead when trying to turn it off. I can, however, turn it off when the device is in playing
or paused
state, and that is what I cared about the most.
Anyway, I'll live with it! Thank you again for your suggestion. Have a nice day!
I have the same request. I use mainly Linkplay devices which do not support ON/OFF (maybe, but mine not) Beside of that I use Sonoff MQTT switches to spare on energy payload and turn ON/OFF the whole multimedia bundle
So having a way to specify device/service for Powering ON/OFF would be a Plus
Hi, first, you did a wonderful job on this card and I love it so much! I use it to control my Sky Q, my Samsung TV and my Apple TV.
Speaking of the latter, as you probably know the power button of your card won't work with it, since it needs a
remote.send_command
service calls to power on/off.It would be nice if we could replace the default behaviour of the power button to accomodate media players that needs particular services/scripts/automations to power on/off, like the Apple TV does.
Thank you again for your wonderful work and to have taken the time to read this!