Providers
Providers are data sources and get data from different sources like system or environment values, MQTT data, REST API results or calculate times like solar or lunar times.
They continuously collect and process information from device sensors, network services, public APIs, and internal calculations, then feed it to facelets through the expression parser.
This architecture cleanly separates data acquisition from visual presentation, so any facelet can display data from any provider simply by referencing the appropriate output value.
Status
Every provider returns a status value which informs about its actual condition.
Some providers use their output value as status, others the accuracy of their source depending on the function.
The status can be used to set color of text or icons, hide Facelets on N/A etc.
The following values are used:
Text |
Value |
Color |
Condition |
N/A |
0 |
Gray |
Absent, value not available, provider not initialized/available |
Excellent |
1 |
Green |
Excellent, very good |
Good |
2 |
Blue |
Good |
Fair |
3 |
Yellow |
Fair, medium |
Poor |
4 |
Orange |
Poor, bad |
Fail |
5 |
Red |
Fail, critical, very bad |
Status as Color Source
Whenever a Facelet has a color input, a provider status value can be used as direct color source.
For example, a text color input can be set to the status value of e.g the Battery Provider to reflect its current status as color of the table above.
|
Tip
|
It’s handy to use the center dot of the Clock Facelet or the colon of the Digital Clock Facelet as status indicator of the Time Provider. A green dot means the time is accurate, a red dot means the time is not accurate. Simply select "Actual Time" / "Status" as according color input. |