I did this in the past but it never works. Maybe automation is not the right tool? Because automation starts when you start it. For me it should always on … or?
- alias: 'Temperature below'
trigger:
platform: numeric_state
entity_id: sensor.netatmo_office_temperature
# Optional
#value_template: '{{ state.attributes.battery }}'
# At least one of the following required
above: 23
below: 19
action:
- service: notify.push_html5
data:
message: Attenzione temperatura
#
p.s. the sensor is a netatmo weather station. I don’t mind if I use the sensor orr the netatmo thermostat component (which also has a temp sensor inside)
Isn’t it the same as mine? Shall I take out the “above 23”?
Or you are reffering to change the entity_id (I don’t have it as states.climate.office_thermo.attributes.temperature when I check in the developer tools)
how does HASS work in that regard? I mean once an automation is in the automation.yaml file, and there is a trigger option … is it a poll system? Every how much is it checked?
This is not necessary in this case - Home Assistant will check that automation every time the thermometer sends a change in value, there is no poll for the automation, it will react instantly. (The thermometer itself may or may not be polled depending on the component’s implementation but you don’t need to worry about that for the automation).