Trigger Automation for certain temp value at specified time

Hello,
i need to send a telegram message at specified time and when the temperature is inside a range, this is my script …but is wrong…any idea to fix?

alias: Test - Temperatura alla mattina
trigger:
platform: numeric_state
entity_id: sensor.dark_sky_temperature
above: 5
below: 15
for:
hours: 14
minutes: 00
seconds: 00
action:
service: notify.telegram
data_template:
target:
- 361305683
- 681311648
message: Test temperartura variabile {{ states.sensor.dark_sky_temperature.state }}°C

Thanks in advancePreformatted text``Preformatted text

In order to help you, please format your code.

1 Like