-
Notifications
You must be signed in to change notification settings - Fork 0
/
as_standalone_example.yaml
122 lines (94 loc) · 2.84 KB
/
as_standalone_example.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
114
115
116
117
118
119
120
121
122
substitutions:
#general settings
host_name: as-standalone-example
device_name: as_standalone_example
device_name_upper: as.standalone.example
status_led_interval_ok: 10s
status_led_interval_booting: 3s
settings_log_level: DEBUG
settings_flash_write_interval: 1min
# MQTT Settings
mqtt_discovery: "false"
#I2C Bus
i2c_bus_a_name: i2c_bus_a
i2c_bus_a_sda: GPIO23
i2c_bus_a_scl: GPIO22
# webserver
web_server_ota_active: "true"
# EZO settings
max_retry_attempts: "4"
default_temp_comp_value: "25"
# EZO Enable Pins
enable_rtd_pin: GPIO33
enable_ec_pin: GPIO12
enable_ph_pin: GPIO13
# EZO sample intervals
min_sample_interval_ec: "2000" # 1s
max_sample_interval_ec: "10000" # 60min
min_sample_interval_ph: "2000" # 1s
max_sample_interval_ph: "10000" # 60min
min_sample_interval_rtd: "1000" # 1s
max_sample_interval_rtd: "10000" # 60min
min_sample_interval_ec_tempcomp: "10000"
max_sample_interval_ec_tempcomp: "60000"
min_sample_interval_ph_tempcomp: "10000"
max_sample_interval_ph_tempcomp: "60000"
min_mqtt_interval_ec: "1000"
max_mqtt_interval_ec: "3600000"
min_mqtt_interval_ph: "1000"
max_mqtt_interval_ph: "3600000"
min_mqtt_interval_rtd: "1000"
max_mqtt_interval_rtd: "3600000"
entities_internal: "false"
mqtt_rtd_enabled: "true"
mqtt_ec_enabled: "true"
mqtt_ph_enabled: "true"
mqtt_entities_internal: "false"
# MQTT Broker Settings
mqtt:
id: ${device_name}_mqtt_client
broker: !secret mqtt_broker_ip
username: !secret mqtt_usr
password: !secret mqtt_pw
discovery: ${mqtt_discovery}
port: !secret mqtt_port
# enable ota updates
ota:
password: !secret esphome_ota_pw
# Wifi Settings
wifi:
networks:
- ssid: !secret wifi_ap_ssid
password: !secret wifi_ap_pw
priority: 3
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "$device_name_upper AP"
password: !secret esphome_fallback_ap_pw
#fast_connect: true
captive_portal:
# Web server
web_server:
port: !secret web_server_port
auth:
username: !secret web_server_user
password: !secret web_server_password
ota: ${web_server_ota_active}
sensor:
- platform: wifi_signal
name: "${device_name_upper}.wifi_signal"
id: ${device_name}_wifi_signal
update_interval: 60s
esphome:
name: ${host_name}
platform: ESP32
board: esp32dev
packages:
common_time_sntp: !include common/time_sntp.yaml
common_logger: !include common/logger.yaml
common_preferences: !include common/preferences.yaml
common_status: !include common/status.yaml
common_restart: !include common/restart.yaml
common_i2c_bus_a: !include common/i2c_bus_a.yaml
as_hydroponics_kit_as_ezo: !include as_hydroponics_kit/as_ezo.yaml
as_hydroponics_kit_as_ezo_mqtt_sender: !include as_hydroponics_kit/as_ezo_mqtt_sender.yaml