Skip to content

Commit

Permalink
wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
lubeda committed Sep 23, 2023
1 parent b8b921b commit 33f96b1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions wiki/icon_clock.md
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);
```

0 comments on commit 33f96b1

Please sign in to comment.