Created
December 16, 2020 21:54
-
-
Save MrWyss/c6a9edcb443e29206cb6976ab7a7a5e8 to your computer and use it in GitHub Desktop.
HA Blueprint for a argon40 case fan control automation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: "Argon40 Case: Set fan speed to XX % if CPU is above YY °C and lower than ZZ °C" | |
description: Controls the speed of the argon40 case fan depending on the cpu temperature | |
domain: automation | |
input: | |
cpu_temperature: | |
name: CPU Temperature Sensor Entity | |
description: This is the Raspberry Pi's CPU Temperature sensor. | |
default: sensor.cpu_temp | |
selector: | |
entity: | |
domain: sensor | |
fan_speed_in_pct: | |
name: Fan Speed | |
description: Set a fan speed in percentage. | |
default: 10 | |
selector: | |
number: | |
min: 0 | |
max: 100 | |
unit_of_measurement: "%" | |
above_temperature: | |
name: Above Temperature | |
description: Set the lower temperature boundary in degrees celsius when the target fan speed should be set. | |
default: 45 | |
selector: | |
number: | |
min: 1 | |
max: 100 | |
unit_of_measurement: "°C" | |
mode: slider | |
below_temperature: | |
name: Below Temperature | |
description: Set the upper temperature boundary in degrees celsius when the target fan speed should be set. Needs to be higher than lower temperature. | |
default: 55 | |
selector: | |
number: | |
min: 0 | |
max: 99 | |
unit_of_measurement: "°C" | |
mode: slider | |
duration: | |
name: Duration (Optional) | |
description: Reaction time, for how long the temperature above the value specified. | |
default: 5 | |
selector: | |
number: | |
min: 0 | |
max: 60 | |
unit_of_measurement: seconds | |
mode: box | |
trigger: | |
platform: numeric_state | |
entity_id: !input cpu_temperature | |
for: | |
seconds: !input duration | |
below: !input below_temperature | |
above: !input above_temperature | |
action: | |
- service: argon40.set_fan_speed | |
data: | |
speed: !input fan_speed_in_pct | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment