Provide ambient illuminance state. More...
Public Member Functions | |
| bool | is_started (self) |
| Return whether the controller is ready to read state. | |
| bool | is_available (self) |
| Return whether ambient light support is available. | |
| str|None | status_message (self) |
| Return an availability message, if one applies. | |
| AmbientLightState|None | latest_state (self) |
Return the latest state, or None before the first read. | |
| None | start (self) |
| Start the controller and its ambient light sensor. | |
| None | stop (self) |
| Stop the controller and its ambient light sensor. | |
| AmbientLightState | read_state (self) |
| Read and return the current ambient light state. | |
Provide ambient illuminance state.
| bool environmental.ambient_light_controller_if.AmbientLightControllerIf.is_available | ( | self | ) |
Return whether ambient light support is available.
Reimplemented in environmental.ambient_light_controller.AmbientLightController.
| bool environmental.ambient_light_controller_if.AmbientLightControllerIf.is_started | ( | self | ) |
Return whether the controller is ready to read state.
Reimplemented in environmental.ambient_light_controller.AmbientLightController.
| AmbientLightState | None environmental.ambient_light_controller_if.AmbientLightControllerIf.latest_state | ( | self | ) |
Return the latest state, or None before the first read.
Reimplemented in environmental.ambient_light_controller.AmbientLightController.
| AmbientLightState environmental.ambient_light_controller_if.AmbientLightControllerIf.read_state | ( | self | ) |
Read and return the current ambient light state.
Reimplemented in environmental.ambient_light_controller.AmbientLightController.
| str | None environmental.ambient_light_controller_if.AmbientLightControllerIf.status_message | ( | self | ) |
Return an availability message, if one applies.
Reimplemented in environmental.ambient_light_controller.AmbientLightController.