This commit is contained in:
2024-10-13 22:59:09 +02:00
parent 63fb7f8f73
commit e426efb80f
107 changed files with 20616 additions and 5533 deletions

View File

@@ -12,10 +12,12 @@ substitutions:
subnet: !secret ip_subnet
ip: !secret badkamerradfan_ip
pin_temp: GPIO3
pin_pwm: GPIO4
pin_tach: GPIO2
pin_pwm: GPIO2
pin_tach1: GPIO6
pin_tach2: GPIO7
pin_tach3: GPIO9
pin_status: GPIO8
ledc_freq: "16000"
ledc_freq: "1000"
packages:
board: !include boards/esp32-C3.yaml
@@ -23,6 +25,7 @@ packages:
connection: !include common/wifi.yaml
status: !include templates/status.yaml
logger: !include templates/logger.yaml
bt_proxy: !include common/bluetooth.yaml
output:
- platform: ledc
@@ -35,7 +38,7 @@ fan:
output: pwm1
name: "Badkamer radiator Fan"
id: badkamerfan
restore_mode: RESTORE_DEFAULT_ON
restore_mode: RESTORE_DEFAULT_OFF
# Example configuration entry
one_wire:
@@ -45,7 +48,7 @@ one_wire:
# Individual sensors
sensor:
- platform: dallas_temp
address: 0x59800000081fd028
address: 0xb1800000081e5a28
name: "Radiataor Temperature"
id: radtemperature
on_value_range:
@@ -56,6 +59,52 @@ sensor:
then:
- fan.turn_off: badkamerfan
- platform: pulse_counter
pin:
number: ${pin_tach1}
mode:
input: true
pullup: true
name: fan1 PWM
id: fan_pulse1
unit_of_measurement: 'RPM'
filters:
- multiply: 0.5
count_mode:
rising_edge: INCREMENT
falling_edge: DISABLE
update_interval: 3s
- platform: pulse_counter
pin:
number: ${pin_tach2}
mode:
input: true
pullup: true
name: fan2 PWM
id: fan_pulse2
unit_of_measurement: 'RPM'
filters:
- multiply: 0.5
count_mode:
rising_edge: INCREMENT
falling_edge: DISABLE
update_interval: 3s
- platform: pulse_counter
pin:
number: ${pin_tach3}
mode:
input: true
pullup: true
name: fan3 PWM
id: fan_pulse3
unit_of_measurement: 'RPM'
filters:
- multiply: 0.5
count_mode:
rising_edge: INCREMENT
falling_edge: DISABLE
update_interval: 3s
number:
- platform: template
name: "Fan on temp"
@@ -75,4 +124,4 @@ number:
max_value: 65
restore_value: True
initial_value: 24
step: 1
step: 1