Hi,
How can I count the time that the outside temperature is above 25 °C
We like to turn on a fan if the temp is for more then 5 hours is above value 25 °C
So we can extra turn on the home fan in the summer days at night.
best regards
ocean
Hi,
How can I count the time that the outside temperature is above 25 °C
We like to turn on a fan if the temp is for more then 5 hours is above value 25 °C
So we can extra turn on the home fan in the summer days at night.
best regards
ocean
You could use a numerical trigger, something like this:
platform: numeric_state
entity_id: sensor.bathroom_temp
for:
hours: 5
above: '25'
Note however that for this to trigger, the temp would have to be below 25 then rise to above 25 and stay above 25 for 5 hours.
I already tried this with no succes :-/
alias: Fan - Zomerstand - hoog
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.temperatuur_buiten
for:
hours: 0
minutes: 0
seconds: 0
attribute: unit_of_measurement
above: '26'
condition: []
action:
- service: input_select.select_option
data:
option: hoog
target:
entity_id: input_select.temp_fan_mode
mode: single
Ok, you don’t need or want to list attribute so maybe try and remove that.
The important thing to remember is that the numerical state trigger will only trigger when the temp transitions from below 26 to above 26.
So for testing you may want to use developer tool to set the temp below 26 then either wait for it to update to above 26 or again use developer tools to set the state back to something above 26 to confirm the trigger works.
Its working when the time is 0.
When adding for example 5 min it is not reacting.
I any one has a better working idee it would be nice