LightSensor
Smart HomeMeasures how bright it is: a special resistor lets more electricity through when more light falls on it.
How you reach it
Section titled “How you reach it”The LightSensor class is reached through this attribute of home.
home.light_sensor
Section titled “home.light_sensor”Always there.
All the attributes of home are in its table.
Methods
Section titled “Methods”level()
Section titled “level()”How bright it is, as a raw reading from 0 to 4095 (higher means more light).
level() -> Optional[int]Used in examples: Web dashboard, Smart house