You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After searching around, it seams, that it is now possible with Mac OS Big Sur (Mac Catalyst 14.0+) to get information of the ambient light sensor in a easy way without any hacks like before.
Describe the solution you'd like
The ambient light sensor of the mac delivers a light level value [Lux]. A HA Automation turns on (or off) desk lights, when it is too dark(bright). Similar to motion sensor like Philips Hue ones.
The text was updated successfully, but these errors were encountered:
#917 is for the SensorKit part of this, but SensorKit looks like it's going to be similar to HealthKit -- something that's likely off-limits for most things :( It looks like Firefox/Mozilla found a private-ish API route to get the data, but Apple's locked it down in newer Macs. I'm not sure why they're so tightlipped about this info.
Making the current screen brightness level available may be an okay analog.
I think Lunar gets around this by reading the main display brightness, which is then set automatically using the sensor. In other words, the display brightness is used as a proxy.
There's also an AmbientDisplay.framework being mentioned in the code, but that's way out of my depth.
After searching around, it seams, that it is now possible with Mac OS Big Sur (Mac Catalyst 14.0+) to get information of the ambient light sensor in a easy way without any hacks like before.
https://developer.apple.com/documentation/sensorkit/srsensor/3377673-ambientlightsensor
Describe the solution you'd like
The ambient light sensor of the mac delivers a light level value [Lux]. A HA Automation turns on (or off) desk lights, when it is too dark(bright). Similar to motion sensor like Philips Hue ones.
The text was updated successfully, but these errors were encountered: