Binary Sensor
A single connectivity binary sensor derived from whether the last GET /state succeeded. It does not make an independent GET /ok request — the coordinator's existing poll result is reused.
The sensor becomes off (disconnected) after _FAILURE_GRACE (3) consecutive poll failures.
Reference
binary_sensor
Classes
SunRiserConnectivitySensor
Bases: CoordinatorEntity[SunRiserCoordinator], BinarySensorEntity
Reports whether the most recent GET /ok refresh returned OK.
Source code in custom_components/sunriser/binary_sensor.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |