Skip to content

Commit

Permalink
Improve example folder structure and add fan speed calculation example
Browse files Browse the repository at this point in the history
  • Loading branch information
IDmedia committed Mar 8, 2024
1 parent 419ccb6 commit b4bac1b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions lovelace/packages/server_kaya.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
template:
- sensor:
- name: "Kaya Fan Speed"
unit_of_measurement: "%"
state: "{{ ([0, (100 * int(states('sensor.kaya_fan_1_speed')) / 2060) | round(0), 100]|sort)[1] }}"

0 comments on commit b4bac1b

Please sign in to comment.