Hello, I’m new to HA and trying out some automation. I have a synology in a closet and recently installed some fans connected to a TP Link plug. I want to turn on the fans when the avg temperate of the synology goes above a certain point and then turn them off when it goes below. So below is what I’ve come up with so far. I believe it’s working… I had to stress my NAS to increase temps and then turn on the device fans to max to decrease temps to get this to work properly.
I have a few questions. Is this a correct way to do it? Does the script look correct? Is there a better way to do it? I noticed that in my dashboard the temps listed doen’t update often enough. Is there a way to get those to update more frequently… or better yet get my script to run more frequently based on real time temp of the synology drives?
alias: Synology Fans description: '' trigger: - platform: state entity_id: sensor.synology_average_disk_temp condition:  action: - choose: - conditions: - condition: numeric_state entity_id: sensor.synology_average_disk_temp below: '95' sequence: - type: turn_off device_id: 40a760a1a440502a0cbf941cb95d1b1c entity_id: switch.fans domain: switch - service: notify.mobile_app_turtle_power data: message: 'Synology Fans Turned Off ' title: Synology - conditions: - condition: numeric_state entity_id: sensor.synology_average_disk_temp above: '95' sequence: - type: turn_on device_id: 40a760a1a440502a0cbf941cb95d1b1c entity_id: switch.fans domain: switch - service: notify.mobile_app_turtle_power data: message: Synology Turned Fans On title: Synology default:  mode: single