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
Copy file name to clipboardExpand all lines: content/components/sml.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,47 @@ sensor:
212
212
state_class: measurement
213
213
```
214
214
215
+
## Reading multiple meters
216
+
217
+
If you are reading data from more meters than your controller has UARTs available (e.g. more than two for an ESP32), you can use multiplexing to switch between reading data from different meters.
218
+
219
+
In order to do this, after each SML update, the used UART can be set to listen to a different pin.
220
+
An example on how to do this is this:
221
+
222
+
```yaml
223
+
uart:
224
+
- baud_rate: 9600
225
+
data_bits: 8
226
+
rx_pin:
227
+
number: GPIO17 # Set to the first of the GPIO pins in multiplex_pins
0 commit comments