need help with my first automation. i have an aquara temp sensor that i would like to toggle on a smart outlet. If the temp goes above xx then turn on an outlet. here is what i have so far. if i manually run the automation it works, just not automatically. Thanks
# turn on fan when temp sensor reaches certain degree
-alias: fan
-description: ''
trigger:
- type: temperature
platform: device
device_id: 965594261325d21b8b28b38719993f5d
entity_id: sensor.lumi_lumi_weather_58aabc06_temperature
domain: sensor
above: 70
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- service: switch.toggle
target:
area_id: network_rack
device_id: 4dae043d8f620fabf8a34a57a7e78c67
entity_id: switch.boilerfan_socket_1
mode: restart