Juergen
(Juergen)
December 25, 2016, 6:17pm
1
Hi there,
I have a entity_id: sensor.eurotronic_eur_cometz_wall_radiator_thermostat_valve_control_temperature_8_1
which does show a temperature. I do have a input_slide Grad and a template sensor which does contain the value of the input_slider.
Now I wanna create a notify.my_pushbullet when the temperature falls below the value of the slider.
the below trigger seems not to work:
Juergen
(Juergen)
December 25, 2016, 6:18pm
2
Just wonder how I could replace the “below: 12.0” with a variable of the input slider.
Try
below: '{{ states("input_slider.SOME_NAME") | int }}'
But I’m not sure if it works
Juergen
(Juergen)
December 27, 2016, 11:12am
4
Nope does not work. hass --script check_config throws an error. Coment this line out, things are fine
Ok, try to use condition:
- alias: 'Alert on Low temperature'
trigger:
platform: state
entity_id:
- sensor.TARGET
- input_slider.grad
condition:
condition: template
value_template: '{{ (states("sensor.TARGET") | float) < (states("input_slider.grad") | float) }}'
action:
service: notify.my_pushbullet
data:
message: 'Temperature below 12 Grad - Bad'
EDIT: Added input_slider to trigger
Another try:
- alias: 'Alert on Low temperature'
trigger:
platform: template
value_template: '{{ (states("sensor.TARGET") | float) < (states("input_slider.grad") | float) }}'
action:
service: notify.my_pushbullet
data:
message: 'Temperature below 12 Grad - Bad'
Juergen
(Juergen)
December 28, 2016, 7:26pm
7
Thanks. The Trigger platform: template made it.