forked from klatremis/esphome-for-deye
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathesphome-config-common.yaml
69 lines (54 loc) · 2.91 KB
/
esphome-config-common.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
substitutions:
name: !secret host_name # Name in ESPhome
device_description: "Esphome component for Deye sun-12k-sg04lp3" # Description in ESPhome
modbus_controller_id: sg04lp3 # Just a random name for the modbus controler
# Until proper renaming of ID/Names prefixes can be performed, just use the entities_id_prefix variable
#device_type: !secret entities_id_prefix # All entities in Home Assistant will start with this text to help identify the entities
# To be implemented in all the YAML files
entities_id_prefix: !secret entities_id_prefix # All entities in Home Assistant will start with this text to help identify the entities
entities_name_prefix: !secret entities_name_prefix # All entities in Home Assistant will start with this text to help identify the entities
#external_components:
# - source: github://pr#5586
# components: [ ota_http ]
packages:
api: !include config/api.yaml
mdns: !include
file: config/mdns.yaml
vars:
mdns_disable: false # Enable auto-discovery in ESPHome Dashboard & Home Assistant
#mdns_disable: true # Disable auto-discovery in ESPHome Dashboard & Home Assistant
mqtt: !include
file: config/mqtt.yaml
vars:
mqtt_discovery: false # If "api" is included, turn off autodiscovery feature for Home Assistant
#mqtt_discovery: true # If "api" is NOT included, turn on MQTT autodiscovery feature for Home Assistant
wifi: !include config/wifi.yaml
# Include Safe Mode Configuration
safe_mode: !include config/safe_mode.yaml
# Core OTA (client UPLOADS Firmware to ESP32 Device)
ota: !include config/ota.yaml
# External component OTA (ESP32 Device DOWNLOADS Firmware from HTTP WebServer)
#ota_http: !include config/ota_http.yaml
restart: !include config/restart.yaml
#web_server: !include config/web_server.yaml
# Select the Board you plan to use
#core: !include boards/esp32-s3-wroom-1-n16r8.yaml
core: !include boards/esp32-s3_m5stack_atoms3.yaml
logger: !include config/logging.yaml
captive_portal: !include config/captive_portal.yaml
modbus: !include config/modbus.yaml
# Different modules for the different sections of the inverter
solar: !include modules/solar.yaml
battery: !include modules/battery.yaml
load: !include modules/load.yaml
generator: !include modules/generator.yaml # Generator, Micro Inverter or Smart Load
general: !include modules/general.yaml
status: !include modules/status.yaml
internal: !include modules/internal.yaml # Internal CTs Current/Power Measurement
inverter: !include modules/inverter.yaml
ups: !include modules/ups.yaml
out-of-grid: !include modules/out-of-grid.yaml
#
# Enable for grid-connected systems
#grid: !include modules/grid.yaml
#external: !include modules/external.yaml # External CTs Current/Power Measurement