- Posts: 443
- Thank you received: 36
Automation to turn the SmartRemote screen off when charging
- Nillaz
- Offline
- User
-
Less
More
2 years 5 months ago #1441
by Nillaz
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.
Replied by Nillaz on topic Automation to turn the SmartRemote screen off when charging
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.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.
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.
- CrabbyPatties
- Offline
- User
-
Less
More
- Posts: 116
- Thank you received: 1
2 years 4 months ago #1672
by CrabbyPatties
After working brilliantly, this has just suddenly stopped working for me...
Replied by CrabbyPatties on topic Automation to turn the SmartRemote screen off when charging
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.
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.
- Create an automation and name it whatever you want.
- Add this to the Automation Rule Conditions:
WHEN:
{{smartremote_charging_<smart_remote_clientname>}} = true- Add this to the Automation Rule Actions:
Macro|AV|<smart_remote_device_id>~SendKey~SLEEP!
After working brilliantly, this has just suddenly stopped working for me...
Please Log in to join the conversation.
- David Li
- Offline
- Admin
-
Less
More
- Posts: 1019
- Thank you received: 99
2 years 4 months ago #1676
by David Li
Replied by David Li on topic Automation to turn the SmartRemote screen off when charging
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.
- CrabbyPatties
- Offline
- User
-
Less
More
- Posts: 116
- Thank you received: 1
2 years 4 months ago #1677
by CrabbyPatties
Replied by CrabbyPatties on topic Automation to turn the SmartRemote screen off when charging
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.
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.
- David Li
- Offline
- Admin
-
Less
More
- Posts: 1019
- Thank you received: 99
2 years 4 months ago - 2 years 4 months ago #1678
by David Li
Replied by David Li on topic Automation to turn the SmartRemote screen off when charging
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.
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.
- CasaP
- Offline
- User
-
Less
More
- Posts: 10
- Thank you received: 0
2 years 4 months ago - 2 years 4 months ago #1687
by CasaP
Replied by CasaP on topic Automation to turn the SmartRemote screen off when charging
So I have;
WHEN:
For my remote called Remote1, with an ID of 3.
This does not work, what am I missing?
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