Last active
April 12, 2026 21:12
-
-
Save vdvm/3f67794a58a7f002c6baf8abc3d13463 to your computer and use it in GitHub Desktop.
Maakt een dauwpunt-sensor aan op basis van een geselecteerde temperatuur- en luchtvochtigheidssensor.
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 characters
| blueprint: | |
| name: "Dauwpunt Sensor (Alduchov-Eskridge)" | |
| description: > | |
| Maakt een dauwpunt-sensor aan op basis van een geselecteerde temperatuur- en luchtvochtigheidssensor. | |
| De berekening gebruikt de nauwkeurige Alduchov-Eskridge constanten (1996). | |
| domain: template | |
| input: | |
| sensor_name: | |
| name: Naam van de nieuwe sensor | |
| description: "Bijvoorbeeld: 'Dauwpunt Woonkamer'" | |
| default: "Dauwpunt" | |
| temp_sensor: | |
| name: Temperatuur Sensor | |
| selector: | |
| entity: | |
| domain: sensor | |
| device_class: temperature | |
| hum_sensor: | |
| name: Luchtvochtigheid Sensor | |
| selector: | |
| entity: | |
| domain: sensor | |
| device_class: humidity | |
| template: | |
| - variables: | |
| temp_entity: !input temp_sensor | |
| hum_entity: !input hum_sensor | |
| sensor: | |
| - name: !input sensor_name | |
| unique_id: "dp_{{ temp_entity | replace('sensor.', '') }}_{{ hum_entity | replace('sensor.', '') }}" | |
| unit_of_measurement: "°C" | |
| device_class: temperature | |
| state_class: measurement | |
| icon: mdi:thermometer-water | |
| state: > | |
| {% set T = states(temp_entity) | float(none) %} | |
| {% set RH = states(hum_entity) | float(none) %} | |
| {% if T is not none and RH is not none and RH > 0 %} | |
| {% set a = 17.625 %} | |
| {% set b = 243.04 %} | |
| {% set gamma = ((a * T) / (b + T)) + log(RH / 100.0) %} | |
| {{ ((b * gamma) / (a - gamma)) | round(2) }} | |
| {% else %} | |
| unavailable | |
| {% endif %} | |
| availability: > | |
| {{ states(temp_entity) | is_number and states(hum_entity) | is_number }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment