Automation to turn the SmartRemote screen off when charging

More
2 years 5 months ago #1441 by Nillaz

When I found the sleep command a few weeks back I made that suggestion to Allonis. And it's sort of what I'm doing with my volume popup timeout so I know it could work. But I don't know of an easy way of monitoring every button press(both hard and soft buttons). You could do that if you went through every button you had and added something that set a timeout but that would be super tedious so I haven't attempted it. For now pushing the button on the side is easier.
 
Yeah I came to similar conclusions about the button/screen presses but was hoping I had missed an easier method for monitoring this more efficiently. There's no way I'm doing that for every hard button and screen element. I appreciate you confirming that the logic is sound though.

I totally forgot about the volume overlay too so thanks for reminding me! That's definitely something I want to implement sooner rather than later.

Please Log in to join the conversation.

More
2 years 4 months ago #1672 by CrabbyPatties

I didn't like the fact that every time I placed the remote on the charging station the screen would stay on.  So I came up with this automation to turn the screen off automatically.
  1. Create an automation and name it whatever you want.
  2. Add this to the Automation Rule Conditions:
    WHEN:
    {{smartremote_charging_<smart_remote_clientname>}} = true
  3. Add this to the Automation Rule Actions:
    Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
This automation requires you to have connected the AndroidTV driver to the SmartRemote.  You just need to fill in the appropriate <smart_remote_clientname> and <smart_remote_device_id> and it should automatically turn off the screen on the remote when you dock it in the charger.

After working brilliantly, this has just suddenly stopped working for me...

Please Log in to join the conversation.

More
2 years 4 months ago #1676 by David Li
To diagnose further, what's not working....is the automation event firing? Is the variable of SmartRemote status changing? Is the command working when fired? What's in the log?

Please Log in to join the conversation.

More
2 years 4 months ago #1677 by CrabbyPatties
17/03/2024 17:00:03.00 · DEBUG · Server.doCommand - AV|1~SendKey~SLEEP from
17/03/2024 17:00:03.00 · ERROR · AndroidTV.doCommand - Error in doCommand - Object reference not set to an instance of an object.

Please Log in to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #1678 by David Li
Since this is working on my system, it's a configuration issue on yours
Is the SmartRemote still device ID AV1?
If so, enable TeamViewer access so I can see what's up.
Last edit: 2 years 4 months ago by David Li.

Please Log in to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #1687 by CasaP
So I have;

WHEN:

{{smartremote_charging_<Remote1>}} = true

Macro|AV|< 3 >~SendKey~SLEEP!


For my remote called Remote1, with an ID of 3.
This does not work, what am I missing?
Last edit: 2 years 4 months ago by CasaP.

Please Log in to join the conversation.

Time to create page: 0.214 seconds