Hi,
I want to control my shutter of my windows based on the PWS Sensor “Solar Radiation” of the WUnderground Weather Station.
But I want the the shutter is closing/opening only if the value is higher a certain value for a dedicated time frime, e.g. 10 Minutes.
Here is the sensor or BWS:
Entity:
sensor.pws_solarradiation
State:
49
State attributes
{
“friendly_name”: “Solar Radiation”,
“unit_of_measurement”: “w/m2”,
“date”: “Last Updated on May 1, 6:47 AM CEST”,
“attribution”: “Data provided by the WUnderground weather service”,
“icon”: “mdi:weather-sunny”
}
I want now to create a binary Sensor:
- platform: template
sensors:
solrad:
friendly_name: “Solar Radiation over certain Time”
value_template: “{{ states.sensor.pws_solarradiation | float > 30 }}”
But the value of the binary sensor is always “false”.
Br,
Johannes