-
Notifications
You must be signed in to change notification settings - Fork 0
/
smart-fan.yaml
106 lines (87 loc) · 2.35 KB
/
smart-fan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# These substitutions allow the end user to override certain values
substitutions:
name: "heizungslufter"
friendly_name: "Heizungs Lüfter"
esphome:
name: "${name}"
# Friendly names are used where appropriate in Home Assistant
friendly_name: "${friendly_name}"
# Automatically add the mac address to the name
# so you can use a single firmware for all devices
name_add_mac_suffix: true
# This will allow for (future) project identification,
# configuration and updates.
project:
name: cedric.olleluefter
version: "1.0"
# To be able to get logs from the device via serial and api.
logger:
# API is a requirement of the dashboard import.
api:
# OTA is required for Over-the-Air updating
ota:
# This should point to the public location of this yaml file.
dashboard_import:
package_import_url: github://cedric-kany/oll-e-luefter/smart-fan.yaml
import_full_config: false # or true
wifi:
# Set up a wifi access point
ap:
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device.
captive_portal:
# Sets up Bluetooth LE (Only on ESP32) to allow the user
# to provision wifi credentials to the device.
#esp32_improv:
#authorizer: none
# Sets up the improv via serial client for Wi-Fi provisioning
#improv_serial:
# next_url: https://example.com/project-template/manual?ip={{ip_address}}&name={{device_name}}&version={{esphome_version}}
esp32:
board: adafruit_qtpy_esp32c3
framework:
type: arduino
i2c:
sda: GPIO5
scl: GPIO6
scan: true
sensor:
- platform: shtcx
temperature:
name: Temperatur
humidity:
name: Luftfeuchtigkeit
address: 0x70
update_interval: 60s
- platform: ntc
sensor: resistance_sensor
calibration:
b_constant: 3950
reference_temperature: 25°C
reference_resistance: 10kOhm
name: Heizkörper Temperatur
- platform: resistance
id: resistance_sensor
sensor: source_sensor
configuration: DOWNSTREAM
resistor: 10kOhm
- platform: adc
id: source_sensor
pin: GPIO4
update_interval: 15s
- platform: pulse_counter
pin: GPIO10
unit_of_measurement: "RPM"
name: "Lüfter Drehzahl"
update_interval: 15s
filters:
- multiply: 0.5
fan:
- platform: speed
output: fan_pwm
name: Lüfter
output:
- platform: ledc
pin: GPIO1
frequency: 25000Hz
id: fan_pwm