Skip to content

Commit

Permalink
Merge pull request #953 from lokonli/windSpeed
Browse files Browse the repository at this point in the history
Dial: subtype wind speed for wind dial
  • Loading branch information
lokonli authored Mar 2, 2022
2 parents 186efb8 + f81e536 commit d2dd408
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
9 changes: 8 additions & 1 deletion docs/blocks/specials/dial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ Block parameters
| ``false``: Don't show the main device value.
* - splitdial
- Normally the dial ring color will color from the 0 value to the actual value, which can be positive or negative. Set this parameter to false to start coloring the dial ring from the minimum value, also for a negative minimum value.
- * - steps
* - steps
| Step size for needle adjustment. You can use this parameter to set thermostat steps to 0.5
| ``0.5``: Use step size of 0.5
* - subtype
| For certain dial types you can specify a subtype for a specific layout/format
| ``'windspeed'``: For wind devices, to show wind speed instead of wind direction as needle position

Usage
Expand Down Expand Up @@ -228,6 +231,10 @@ This dial has a 360 degree range (like a compass). The wind direction can be set
last_update: false
}

In case you want to use the wind speed as needle position instead of the wind direction, add the following block parameter::

subtype: 'windspeed'


P1 Smart Meter
~~~~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions docs/releasenotes/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Enhancements
~~~~~~~~~~~~

* Dial: Needle step size configurable via ``steps`` block parameter.
* Dial: For wind device, add block parameter ``subtype: 'windspeed'`` to use wind speed for needle position instead of wind direction.

Fixes
~~~~~~
Expand Down
44 changes: 29 additions & 15 deletions js/components/dial.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2dd408

Please sign in to comment.