You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 380320a
Browse filesBrowse the repository at this point in the historyBrowse files
Maksym Shtembuliak
committed
Release 0.1.7: separate STATUS and COM LEDs, com noise-gate
- Add com_led_pin for a dedicated inverter-communication activity LED alongside
status_led_pin. Two pins -> each drives one LED; only status_led_pin (single-LED
dev boards) shows both (solid when connected+idle, flicker on inverter traffic);
only com_led_pin -> a pure activity light. Per-pin inverted: is supported.
- The COM indicator flickers (toggles ~10 Hz) instead of holding lit and reflects
real inverter transactions only: armed by a forward and the reply while it is
awaiting a response, never by HA<->bridge TCP chatter.
- Idle-line RX noise no longer lights the COM LED: bytes arriving with no forward
pending (electrical noise on a floating/unwired RX, or an idle bus) are ignored,
so a bridge connected to HA before its inverter is wired stays solid instead of
flickering constantly.
- Bump BRIDGE_VERSION to 0.1.7; update FLASHING (en+uk), README (en+uk), the
examples (commented com_led_pin) and the changelog.
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The bridge stays on your LAN and does not connect to SmartESS cloud.
29
29
- ESPHome features: OTA updates, logs, captive portal, and optional ESPHome entities.
30
30
- Wi-Fi management from EyeBond Local where supported.
31
31
- Optional runtime UART baud-rate select on ESP8266/ESP32 when you add the board through the ESPHome integration.
32
-
- Built-in status LED indication on the release presets.
32
+
- Built-in status LED indication on the release presets, with an optional `com_led_pin` for a separate inverter-communication LED.
33
33
34
34
What you do **not** get:
35
35
@@ -152,6 +152,8 @@ Release presets use one pinout for all physical links:
152
152
153
153
For TTL and RS232, use TX/RX/GND and leave the DE/RE pin unconnected. For RS485, connect DE and RE together to the listed DE/RE pin.
154
154
155
+
The onboard LED in the table is `status_led_pin`; on a single LED it shows both connection state and an inverter-communication flicker. Add an optional `com_led_pin` for a dedicated communication LED — see [Status and COM LEDs](docs/FLASHING.md#status-and-com-leds).
Copy file name to clipboardExpand all lines: README.uk.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
- Можливості ESPHome: OTA-оновлення, журнали, сторінка налаштування Wi-Fi і додаткові сутності ESPHome.
30
30
- Керування Wi-Fi з EyeBond Local там, де це підтримується.
31
31
- Необов'язковий перемикач швидкості UART на ESP8266/ESP32, якщо додати плату через інтеграцію ESPHome.
32
-
- Індикацію стану через вбудований світлодіод плати.
32
+
- Індикацію стану через вбудований світлодіод плати, з необов'язковим `com_led_pin` для окремого світлодіода зв'язку з інвертором.
33
33
34
34
Чого тут **немає**:
35
35
@@ -152,6 +152,8 @@ select:
152
152
153
153
Для TTL і RS232 використовуйте TX/RX/GND і не підключайте DE/RE. Для RS485 з'єднайте DE та RE разом і підключіть до вказаного DE/RE-піна.
154
154
155
+
Світлодіод у таблиці — це `status_led_pin`; на одному світлодіоді він показує і стан підключення, і мерехтіння зв'язку з інвертором. Додайте необов'язковий `com_led_pin` для окремого світлодіода зв'язку — див. [Світлодіоди стану (STATUS) і зв'язку (COM)](docs/FLASHING.uk.md#світлодіоди-стану-status-і-звязку-com).
Copy file name to clipboardExpand all lines: docs/FLASHING.md
+32-7Lines changed: 32 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ Open the YAML and check:
103
103
- `board:`matches your ESP board;
104
104
- `tx_pin`and `rx_pin` match your wiring;
105
105
- `flow_control_pin`is set when you use a classic RS485 module with DE/RE;
106
-
- `status_led_pin`matches the board's built-in LED if you want status indication;
106
+
- `status_led_pin`/ `com_led_pin` drive the status and communication LEDs (see below);
107
107
- `baud_rate`matches the inverter family.
108
108
109
109
The ready-made browser firmware starts at `9600`. Typical baud rates:
@@ -204,24 +204,49 @@ On BK72xx / LibreTiny, runtime baud-rate switching is not available. Change `bau
204
204
205
205
The ESP32 BLE profile is YAML-only in the first release. BLE + Wi-Fi is large, so to fit the default 4 MB app partition the profile omits `api:`, `captive_portal:` and the baud `select:` (BLE provisioning replaces the captive portal; the EyeBond Local integration uses its own protocol, not the ESPHome API). OTA still works. To add those back, use a board with more flash and a larger app-partition layout — otherwise the image silently overflows and the board boot-loops.
206
206
207
-
## Status LED
207
+
## Status and COM LEDs
208
208
209
-
The release presets use the board's built-in LED:
209
+
The bridge drives two logical indicators, like a factory collector's **STATUS** and
210
+
**COM** LEDs — configured with `status_led_pin` and `com_led_pin` (either or both):
211
+
212
+
- **STATUS** — connection state.
213
+
- **COM** — inverter communication activity.
214
+
215
+
The release presets wire a single built-in LED to `status_led_pin`:
210
216
211
217
- Wemos D1 mini: GPIO2 / D4, inverted.
212
218
- ESP-WROOM-32 DevKit: GPIO2.
213
219
214
220
On ESP32, GPIO2 is a boot strapping pin. The built-in LED is fine on typical DevKit boards, but do not add external pull-up/down resistors or heavy loads to GPIO2.
215
221
216
-
Indication:
222
+
How the configured pins map to behaviour:
223
+
224
+
| Configured pins | Behaviour |
225
+
|---|---|
226
+
| `status_led_pin` only (single-LED dev boards) | One LED shows **both**: the connection state, plus a com flicker overlaid whenever the inverter is talked to. |
227
+
| `status_led_pin` + `com_led_pin` | STATUS and COM each drive their own LED. |
228
+
| `com_led_pin` only | A pure activity light: dark when idle, flickers on inverter traffic. |
229
+
230
+
STATUS indication:
217
231
218
-
| LED | State |
232
+
| STATUS LED | State |
219
233
|---|---|
220
234
| Fast blink | The board is not connected to Wi-Fi yet. |
221
235
| Slow blink | Wi-Fi is connected, but EyeBond Local has not connected to the bridge yet. |
222
-
| Dark, flickers on traffic | The bridge is connected: the LED stays off when idle and flickers in time with data moving between Home Assistant, the bridge, and the inverter. |
236
+
| Solid on | The bridge is connected and idle. |
237
+
238
+
COM indication:
239
+
240
+
| COM LED | State |
241
+
|---|---|
242
+
| Dark | No inverter traffic. |
243
+
| Flicker | Data is flowing to/from the inverter (a forward and its reply). The LED *toggles* rather than holding lit, so heavy load reads as a fast flicker and never a solid glow. |
244
+
245
+
In the single-LED combined mode, the "solid on" connected state is briefly interrupted
246
+
by the com flicker whenever the inverter is polled.
223
247
224
-
If your board uses another LED pin or inverted logic, adjust `status_led_pin` in YAML.
248
+
Each pin takes the full pin schema, so per-pin inversion is available, e.g.
0 commit comments