ESPresence, OBK, and other updates
This commit is contained in:
8
packages/weather_additional.yaml
Normal file
8
packages/weather_additional.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
weewx_wind_bearing_template:
|
||||
value_template: >
|
||||
{% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %}
|
||||
{% set degree = states('sensor.weewx_wind_direction')|float %}
|
||||
{{ direction[((degree+11.25)/22.5)|int] }}
|
Reference in New Issue
Block a user