Hi,
I’ve got a problem and looking for hints on how to solve it. My study is in an area of the house where the light is triggered by a Philips Hue sensor. This works perfectly fine when there is constant movement. However, when somebody is logged into the iMac they often sit still hence the sensor doesn’t detect and the light turns off.
What I was hoping to do is detect if somebody was logged into the computer and if so then the light doesn’t turn off.
Any ideas?
You could create a login and logoff script that does an API call to your HA instance.
Google ‘mac login/logoff scripts’, pretty sure you’ll find quite a lot of input.
Just make sure to check that whatever you find is still applicable to the current macOS you’re running on that IMAC. Especially since the last 2-3 OS versions, solutions from the past don’t always apply anymore.