Supported sensors for the Hue bridge include a virtual daylight sensor that
calculates sunrise and sunset times based on your location. This function
helps configure the built-in daylight sensor (id = 1
).
configure_daylight_sensor(
lat,
lon,
sunriseoffset = 30,
sunsetoffset = -30,
id = 1
)
latitude (in decimal degrees). Positive north; negative south.
longitude (in decimal degrees). Positive east; negative west.
"daylight" begins sunriseoffset
minutes after
sunrise
"daylight" ends sunsetoffset
minutes after sunset
ID of the daylight sensor
Returns TRUE
(invisibly) upon success.
https://developers.meethue.com/develop/hue-api/supported-devices/#supportred-sensors