-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Introduction | ||
|
||
**Skill-level:** medium | ||
|
||
**minimum version** 2023.8.0 | ||
|
||
Assume you have got a weather sensor in home assistant that returns the current weather condition. E.G. "cloudy" with this code in your yaml you will display the time and the icon according to your weather. Therefore you need an icon for every possible condition with the id: *weather_***condition** | ||
|
||
```yaml | ||
text_sensor: | ||
- platform: homeassistant | ||
id: current_icon | ||
entity_id: weather.buienradar | ||
filters: | ||
prepend: "weather_" | ||
on_value: | ||
then: | ||
- lambda: | ||
id(rgb8x32).icon_clock(x,120,7); | ||
``` |