Page 1 of 1
Nvidia Shield status
Posted: Sunday 02 July 2017 1:24
by Bishop
Hello!
I want to create a system where domoticz controls my receiver. I'm still trying to get the hang of controlling the receiver but it's getting along. I would very much like to know how, if possible, I can have Domoticz check the status of my Nvidia Shield. If it's in standby or on. It does not need to control it just 'read' the status.
Scenario:
If TV / Receiver are on I want to have it switch to the cable input.
If TV / Receiver are on and I turn on the Shield I want it to switch to streambox input.
If the Shield is turned of but TV and receiver are still on I want the receiver to switch back to cable.
I can control the receiver at the moment, I just need to be able to read the status of the Shield.
Can someone help me?
Re: Nvidia Shield status
Posted: Wednesday 12 July 2017 20:39
by Bishop
*bump*
I would really like to be able to tell if the Nvidia Shield is in standby or on.
Re: Nvidia Shield status
Posted: Tuesday 18 July 2017 14:41
by Timeless
Does you shield have network connectivity? You could use the ping component and ping your shield once in a while to see if it is turned on or not.
Re: Nvidia Shield status
Posted: Wednesday 19 July 2017 19:31
by Bishop
That was my first idea.
However, I can still access the Shield when it's in standby. This will only work when it's actually off.
Do you have any other suggestions?
Re: Nvidia Shield status
Posted: Thursday 20 July 2017 11:47
by Timeless
Mmh. so you're shield actually leaves the Wireless ON while in standby? That's energy inefficient.
Ah wait... the shield is running android right? You could disable WiFi while in sleep (should be somewhere in the WiFi settings), this should give the desired output.
Re: Nvidia Shield status
Posted: Friday 21 July 2017 9:25
by Bishop
It's connected through an ethernet cable. Since the shield can also stream games this gave the best results.
I was thinking along another route. Maybe it's possible for domoticz not to ping the shield but a certain app. The app would only become active when it's On but not in Standby or Off.
Re: Nvidia Shield status
Posted: Friday 21 July 2017 22:34
by Timeless
Ping is also known as ICMP which uses
Level 3 to communicate between devices. So "pinging" an app is not actually a thing.
Maybe you can also turn WiFi on and ping the IP assigned to the WiFi interface, when the device enters sleep mode it will disconnect and it will no longer be reachable on that Wireless IP, it will be reachable on the wired IP which is OK since the Wireless IP is used for Domoticz. I don't know if Wireless & Wired can be active simultaneously though since I don't have any wired android devices.
You could ofcourse install a app which can be polled to see if the device is asleep or not. But I cannot help you with that because my lack of knowledge in such a mechanism. Sorry.
Re: Nvidia Shield status
Posted: Monday 24 July 2017 15:10
by Bishop
Timeless wrote:I don't know if Wireless & Wired can be active simultaneously though since I don't have any wired android devices.
As far as I know it cannot. You have to disable ethernet to enable WiFi.
Timeless wrote:You could ofcourse install a app which can be polled to see if the device is asleep or not. But I cannot help you with that because my lack of knowledge in such a mechanism. Sorry.
This is what I ment with pinging an app, polling is a better word. I do not have enough Android knowledge to know of such an app myself. Does anyone have any suggestions?
Re: Nvidia Shield status
Posted: Wednesday 03 May 2023 7:54
by freetribes
Hi,
have you tested the "Macrodroid" application? It is possible with this to ensure that when the phone unlocks, it does an action.
The action can be a wget request.
We can imagine that it is a request on a php API which controls a virtual switch on domoticz, do you understand the idea?