Kód: Vybrat vše
sensor:
- platform: command_line
name: Teplota CPU
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
scan_interval: 10
- platform: systemmonitor
resources:
- type: last_boot
- type: load_1m
- type: load_5m
- type: memory_use_percent
- type: processor_use
- type: disk_use_percent
arg: /
switch:
- platform: rpi_gpio
ports:
18: RPI Cooling Fan
climate:
- platform: generic_thermostat
name: RPI Cooling Fan Controller
heater: switch.rpi_cooling_fan
target_sensor: sensor.teplota_cpu
min_temp: 55
max_temp: 80
ac_mode: true
target_temp: 55
cold_tolerance: 0.1
hot_tolerance: 0.1
min_cycle_duration:
seconds: 30
keep_alive:
minutes: 5
initial_hvac_mode: "cool"