Learn R Programming

PhilipsHue (version 1.0.0)

configure_daylight_sensor: Configure Built-In Daylight Sensor

Description

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).

Usage

configure_daylight_sensor(
  lat,
  lon,
  sunriseoffset = 30,
  sunsetoffset = -30,
  id = 1
)

Arguments

lat

latitude (in decimal degrees). Positive north; negative south.

lon

longitude (in decimal degrees). Positive east; negative west.

sunriseoffset

"daylight" begins sunriseoffset minutes after sunrise

sunsetoffset

"daylight" ends sunsetoffset minutes after sunset

id

ID of the daylight sensor

Value

Returns TRUE (invisibly) upon success.

See Also

https://developers.meethue.com/develop/hue-api/supported-devices/#supportred-sensors