Created
April 29, 2025 04:20
-
-
Save shmick/3562c494cb61ce488f875b627ebb3af8 to your computer and use it in GitHub Desktop.
Revisions
-
shmick created this gist
Apr 29, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ {% set temperature = states('sensor.indoor_outdoor_meter_fea7') | float %} {% set humidity = states('sensor.indoor_outdoor_meter_fea7_humidity') | float %} {% set a = 17.27 %} {% set b = 237.7 %} {% set alpha = ((a * temperature) / (b + temperature)) + (log(humidity / 100.0) if humidity > 0 else 0) %} {% set dewpoint = (b * alpha) / (a - alpha) %} {{ dewpoint.real | round(1) }}