The yaml file in the automation folder looks like this.
- alias: Speedtest Check
trigger:
platform: state
entity_id: sensor.speedtest_download
below: 20
action:
service: notify.smtp
data:
title: "Speed Test Issue"
message: "Speed test is less than 20"
For testing purposes I changed 20 to 50 since it has been running at 47-48…just to verify I can get an email but nothing.
try and format your code correctly, it’s difficult to see if there are any indentation issues otherwise.
Regarding your issue, you need to replace platform: state
with platform: numeric_state
every time the sensor.speedtest_download gets a state change, the automation is triggered and tested
every time the value goes from more than 20 to less than 20 it fires up the action