I’d want to have a virtual device on my SmartThings (A switch i guess?) where when my Windows PC is logged in it is On, otherwise it is off. So i can trigger events based on when somebody uses the PC or not.
i feel like this MUST be something somebody has done before. However i can’t seem to find any information on it anywhere.
I can’t use the conventional method of an actual Power outlet device, as the computer is left running 24/7 (as i imagine most peoples desktop PCs are these days) as they’re on the same network id imagine it should be relatively trivial to do, just basically notify SmartThings on logon and logout. Has it been done? Or if not what would be the best way to go about doing it? I have programming experience so would be able to delve in if necessary. i just feel like this must have been one of the first things somebody did with SmartThings. I’m amazed i haven’t been able to find anything
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
Do a forum search on “EventGhost”… There are several Topics.
I’m using it for a few functions, some integrated with SmartThings pretty easily.
This Topic may not be the most relevant one, but … well, not a bad place to start…
I’d have said a Windows Scheduled Task using multiple triggers might be the best bet.
They support:
At log on
On connection to user session
On disconnect from user session
On workstation lock
On workstation unlock
It’d be a matter of calling a script or program that maybe pokes a SmartApp HTTP endpoint that has a virtual child presence device attached to it that gets updated.
You could go mental probably and associate multiple virtual presence devices based on the people logging in, so not only could you know if the computer was logged in, but who was logged in.
I’m actually working on a project now that is able to monitor any network device via its mac address on the network using a virtual switch and a Raspberry Pi. I just got it working last night and so it still needs debugging and documentation. Feel free to take a look.