I was looking for VPD control dashboard but have not a found solution.
That’s why I started to create my own one.
Hardware needed:
A Temp / RH sensor (I’ve use Shelly Blue H&T)
A humidifier which can be turned on and of by a smart plug.
A smart plug (I’ve used a Shelly Plug S)
I also would like to have the option to add an offset to both sensors.
You would need to have a calibrated sensor on hand (or you know someone who give you a loaner) to calculate the offset.
find below the what u need to add to your configuration.yaml
template:
- sensor:
- name: "VPD in kilopascal"
unit_of_measurement: "kPa"
device_class: pressure
state_class: measurement
state: >
{% set T = states('sensor.tent_temp_with_offset')|float(0) %}
{% set RH = states('sensor.tent_rh_with_offset')|float(0) %}
{% set SVP = 0.61078 * e ** (17.2694 * T / (T + 238.3)) %}
{% set VPD = ((100-RH) / 100) * SVP %}
{{-VPD | round(3) -}}
- sensor:
- name: "tent RH with offset"
unit_of_measurement: "%"
device_class: humidity
state: >
{% set tent_rh = states('sensor.sbht_003c_f740_humidity')|float %}
{% set offset = states('input_number.tent_rh_offset')|float %}
{{ (tent_rh + offset)}}
- sensor:
- name: "tent temp with offset"
unit_of_measurement: "°C"
device_class: temperature
state: >
{% set tent_temp = states('sensor.sbht_003c_f740_temperature')|float %}
{% set offset = states('input_number.tent_temp_offset')|float %}
{{ (tent_temp + offset)}}
The first sensor calculates the VPD value, it is important to mention here, the “T” an “RH” state is pulled from the “tent RH with offset” and “tent temp with offset” sensors.
To get the “offset sensors” to work you also would need to create two “helpers”
You need to adjust the “above” and “below” value according to your VPD needs.
As I live in a more dry region I only need to take care on increasing the humidity.
You still need to calculate the VPD using your calculation but this will allow you to change the VPD you want to target.
If you were to keep adding time based automations you could have it automatically change the set VPD based on days of growth.
I am using
#Grow Day Calculator#
- platform: template
sensors:
days_of_growth:
friendly_name: "Days of Growth"
unit_of_measurement: "days"
value_template: "{{ ((as_timestamp(now()) - as_timestamp(states('input_datetime.grow_days'))) / 86400) | int }}"
Automations should just need to reference the sensor and once you complete what you are growing reset the date of input_datetime.grow_days that then sets the sensor to zero.
I am very new to HA, maybe you can help me with the missing steps. I created a vpd.yaml in a custom_templates folder i created. It seem´s to be loading, because i managed to create the helpers and afterwards the two offset buttons on my dashboard and assign them a value. But i still could not figure out how to get get graphics and graphs. Which steps am I missing?
Off topic:
I am planning to add a small python script to HA, which counts 10 different tones from yellow to green from an rtsp stream. That script is already working. Tell me, if you might be interested and willing to help.
For the VPD dashboard I’ve used the new view type with sections because it makes live easier to arrange the tiles.
Start with creating a new dashboard with View type “sections”.
Create your first section.
Now add a gauge card and and assign e.G the entity (in my case) "VPD in Kilopascal.
On the gauge card enable “Display as needle gauge” and “Define severity”
Now define the green yellow and red value.
For the history I’ve used the “Plotly Graph Card” from the HACS repository.
The configuration of this card is self explaining.
Regarding the off topic, not sure if I can help but happy to try