forked from gazoodle/CenturyVSPump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_century_vs_pump.yaml
113 lines (113 loc) · 2.42 KB
/
example_century_vs_pump.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
107
108
109
110
111
112
113
esphome:
platform: esp32
name: century-vs-pump-controller
board: pico32
on_boot:
then:
light.turn_on:
id: id_light_1
blue: 1.0
brightness: 0.3
green: 1.0
red: 1.0
wifi:
ap:
password: !secret ap_PWD
ssid: century-vs-pump-controller
password: !secret wifi_PWD
ssid: !secret wifi_SSID
captive_portal:
logger:
api:
password: !secret api_PWD
ota:
password: !secret ota_PWD
time:
- platform: homeassistant
id: homeassistant_time
external_components:
# Needed to implement latest modbus user-defined function handling
# prior to 2022.8.0
#- source:
# type: git
# url: https://github.com/gazoodle/esphome
# ref: bug-fix-modbus-user-defined-function-handling
# components: [modbus]
# Location of CenturyVSPump component implementation
- source:
type: git
url: https://github.com/gazoodle/CenturyVSPump
ref: main
binary_sensor:
- platform: gpio
name: Pool Pump Controller button
pin:
inverted: True
number: GPIO39
button:
- platform: template
name: Pool Pump Controller Demand 600RPM
id: id_button_7
on_press:
then:
- number.set:
id: id_number_rpm
value: 600
- platform: template
name: Pool Pump Controller Demand 2600RPM
id: id_button_6
on_press:
then:
- number.set:
id: id_number_rpm
value: 2600
- platform: template
name: Pool Pump Controller Demand 3450RPM
id: id_button_8
on_press:
then:
- number.set:
id: id_number_rpm
value: 3450
centuryvspump:
light:
- platform: neopixelbus
name: Pool Pump Controller LED
id: id_light_1
num_leds: 1
pin: GPIO27
variant: SK6812
modbus:
id: id_modbus_3
number:
- platform: centuryvspump
name: Pool Pump Controller Demand
id: id_number_rpm
sensor:
- platform: wifi_signal
name: Pool Pump Controller Wifi Signal
update_interval: 60min
- platform: centuryvspump
name: Pool Pump Controller RPM
type: rpm
unit_of_measurement: RPM
- platform: centuryvspump
name: Pool Pump Controller Demand
address: 3
page: 0
scale: 4
type: custom
unit_of_measurement: RPM
switch:
- platform: centuryvspump
name: Pool Pump Controller Run
id: id_switch_4
uart:
id: id_uart_2
baud_rate: 9600
debug:
rx_pin: GPIO22
tx_pin: GPIO19
web_server:
local: True
port: 80