ESPresence, OBK, and other updates

This commit is contained in:
root
2023-10-20 13:27:48 +13:00
parent 0c38ec96f0
commit 910a908880
26 changed files with 1112 additions and 42 deletions

View 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] }}