Skip to content

Commit

Permalink
Merge pull request #35 from FreeBear-nc/0.7.0
Browse files Browse the repository at this point in the history
Add a note about using templates to display time obtained from ntp by…
  • Loading branch information
fvanroie authored May 25, 2024
2 parents 923259b + b514e59 commit 66f1dcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/integrations/home-assistant/sampl_conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ In component configuration all you need for the objects is:
"text": "{{ states('sensor.time') }}"
```
#### Tip:
You can also use a magic template to display the time that the plate has obtained from ntp. This means you do not need a Home Assistant rule to push the time.
```json linenums="1"
{"page":0,"id":6,"obj":"label","x":3,"y":5,"h":30,"w":62,"text":"00:00","template":"%H:%M","align":0,"bg_color":"#2C3E50"}
```

#### Note:
You can of course omit the second label object with the unit and use the same for both value and unit:

Expand Down

0 comments on commit 66f1dcb

Please sign in to comment.