-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathexample-waveshare-rs485-can.yaml
More file actions
138 lines (115 loc) · 3.82 KB
/
Copy pathexample-waveshare-rs485-can.yaml
File metadata and controls
138 lines (115 loc) · 3.82 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Example Tigo Monitor Configuration using the Waveshare ESP32-S3-RS485-CAN
#
# This is the "industrial, full features" profile: web UI, REST API, on-flash
# history, and Home Assistant over the native API — on a DIN-rail board that can
# run off the same 7-36V supply as the rest of the cabinet.
#
# The hardware base (esp32s3-waveshare-rs485-can.yaml) provides:
# - the ESP32-S3 / 16MB flash / 8MB PSRAM setup and the tsdb history storage
# - the GPIO21 transceiver-enable switch, without which the board reads
# nothing off the bus (see the note at the top of that file)
# - the UART on GPIO17/18, the tigo_monitor hub, and tigo_server
# so this file only layers on credentials, sensors, and app config.
#
# Panel addresses come from the web UI once it is up (Nodes view), or from the
# "Generate YAML Config" button below if you would rather work from the logs.
packages:
board: !include esp32s3-waveshare-rs485-can.yaml
external_components:
- source:
type: git
url: https://github.com/RAR/esphome-tigomonitor
ref: main
components: [tigo_monitor, tigo_server]
logger:
level: INFO # Change to DEBUG if you need detailed logs for troubleshooting
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
api:
ota:
- platform: esphome
password: "YOUR_OTA_PASSWORD"
# Permits a later partition-table change over the air (ESPHome 2026.5.0+).
# It is only the permission: applying one still takes an explicit
# `esphome upload --partition-table`. A plain `esphome run` never sends a
# partition table, and succeeds without changing the layout.
allow_partition_access: true
# Timestamps for the history database. Any time source works; SNTP needs no
# Home Assistant connection.
time:
- platform: sntp
id: sntp_time
timezone: "America/New_York" # Adjust for your timezone
button:
- platform: tigo_monitor
name: "Generate YAML Config"
id: generate_yaml_button
tigo_monitor_id: tigo_hub
button_type: yaml_generator
- platform: tigo_monitor
name: "Print Device Mappings"
id: device_mappings_button
tigo_monitor_id: tigo_hub
button_type: device_mappings
- platform: tigo_monitor
name: "Reset Node Table"
id: reset_node_table_button
tigo_monitor_id: tigo_hub
button_type: reset_node_table
sensor:
# System-wide sensors — these need no addresses and work from first boot.
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Total System Power"
id: total_system_power
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Total System Energy"
id: total_system_energy
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Active Device Count"
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Missed Frame Count"
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Free Internal RAM"
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
name: "Free PSRAM"
- platform: uptime
name: "Tigo Server Uptime"
- platform: wifi_signal
name: "Tigo Server WiFi Signal"
update_interval: 60s
# Per-panel sensors go here. An entry needs `address:` AND at least one
# measurement sub-key — address and name alone create no entities:
#
# - platform: tigo_monitor
# tigo_monitor_id: tigo_hub
# address: "1234"
# name: "Panel A1"
# power: {}
# voltage_in: {}
# current_in: {}
# temperature: {}
text_sensor:
- platform: wifi_info
ip_address:
name: "Tigo Server IP Address"
entity_category: diagnostic
- platform: version
name: "Tigo Server ESPHome Version"
binary_sensor:
- platform: status
name: "Tigo Server Status"
- platform: tigo_monitor
tigo_monitor_id: tigo_hub
night_mode:
name: "Solar Night Mode"
switch:
- platform: restart
name: "Tigo Server Restart"