@@ -519,16 +519,47 @@ or alternatively,
519519Compute absolute humidity
520520
521521` ` ` yaml
522- - entity: sensor.wintergarten_clima_humidity
523- period: 5minute # important so the datapoints align in the x axis
524- filters:
525- - store_var: relative_humidity
526- - entity: sensor.wintergarten_clima_temperature
527- period: 5minute
528- name: Absolute Hty
529- unit_of_measurement: g/m³
530- filters:
531- - map_y: (6.112 * Math.exp((17.67 * y)/(y+243.5)) * +vars.relative_humidity.ys[i] * 2.1674)/(273.15+y);
522+ type: custom:plotly-graph-dev
523+ entities:
524+ - entity: sensor.wintergarten_clima_humidity
525+ period: 5minute # important so the datapoints align in the x axis
526+ internal: true
527+ filters:
528+ - store_var: relative_humidity
529+ - entity: sensor.wintergarten_clima_temperature
530+ period: 5minute
531+ name: Absolute Hty
532+ unit_of_measurement: g/m³
533+ filters:
534+ - map_y: (6.112 * Math.exp((17.67 * y)/(y+243.5)) * +vars.relative_humidity.ys[i] * 2.1674)/(273.15+y);
535+ ` ` `
536+
537+ Compute dew point
538+
539+ ` ` ` yaml
540+ type: custom:plotly-graph-dev
541+ entities:
542+ - entity: sensor.openweathermap_humidity
543+ internal: true
544+ period: 5minute # important so the datapoints align in the x axis
545+ filters:
546+ - store_var: relative_humidity
547+ - entity: sensor.openweathermap_temperature
548+ period: 5minute
549+ name: Dew point
550+ filters:
551+ - map_y: >-
552+ {
553+ // https://www.omnicalculator.com/physics/dew-point
554+ const a = 17.625;
555+ const b = 243.04;
556+ const T = +y;
557+ const RH = +vars.relative_humidity.ys[i];
558+ const α = Math.log(RH/100) + a*T/(b+T);
559+ const Ts = (b * α) / (a - α);
560+ return Ts;
561+ }
562+ hours_to_show: 24
532563` ` `
533564
534565# ## `internal:`
0 commit comments