using this automation for my pond-pumps, but it won’t trigger automatically. Might need the |float but can’t use that I think?
- alias: Vijverpomp mag uit
id: 'Vijverpomp mag uit'
trigger:
platform: numeric_state
entity_id: sensor.rsd_temperature
below: 6
condition:
- condition: template
value_template: >
{{ 5 < states('sensor.rsd_temperature')|float < 7 }}
- condition: template
value_template: >
{{ is_state('input_boolean.notify_utility', 'on')}}
action:
service: notify.notify
data_template:
title: Vijverpomp mag uit
message: >
De vijverpompen mogen uit want het is {{ states('sensor.rsd_temperature') }}
graden.
I seem to recall the without the extra conditions the automation kept triggering on each temp change, hence the added range.
Have another one for the pumps to be on:
- alias: Vijverpomp moet aan
id: 'Vijverpomp moet aan'
trigger:
platform: numeric_state
entity_id: sensor.rsd_temperature
above: 6
condition:
- condition: template
value_template: >
{{ 7 > states('sensor.rsd_temperature')|float > 5 }}
- condition: sun
after: sunrise
# after_offset: '+00:00:00'
- condition: template
value_template: >
{{ is_state('input_boolean.notify_utility', 'on')}}
action:
service: notify.notify
data_template:
title: Vijverpomp moet aan
surely I don’t need the value_template:
since it is the state I am concerned about and not one of the attributes?
critical value is 6 degrees. Below, pumps can be off, above, pumps need to be on. I only need it to notify when the threshold is crossed, so don’t need a warning when it’s 2 degrees for Off, or lets say 10 for On.
Oh, I use automations, just not the base home assistant automations. I use appdeamon for all automations. I think I have like 2 time based automations because they are easier to setup. At some point i’ll switch them to appdeamon though.
its a bit hard to test, since I need ti use the real temp… and have to wait.
Giving that another thought, it might not have notified me, because of the fact it only triggers on the threshold crossing, and as far as I can reconstruct for today, that happend on a ‘do not disturb’ moment in the idle of the night:
Ive changed to another component platform to give me more gradient (true float ) changes, since as you can see the yahoo is in fact an int platform…