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
- **port** string (*Optional*): Serial port to which Smartmeter is connected (default: /dev/ttyUSB0).
50
-
- **dsmr_version_** string (*Optional*): Version of DSMR used by meter, choices: 2.2, 4 (default: 2.2).
54
+
- **port** string (*Optional*): Serial port to which Smartmeter is connected (default: /dev/ttyUSB0 (connected to USB port)). For remote (i.e. ser2net) connections, use TCP port number to connect to (i.e. 2001).
55
+
- **host** string (*Optional*): Host to which Smartmeter is connected (default: '' (connected via serial or USB, see **port**)). For remote connections, use IP address of host to connect to (i.e. 192.168.1.13).
56
+
- **dsmr_version** string (*Optional*): Version of DSMR used by meter, choices: 2.2, 4 (default: 2.2).
51
57
52
-
A full configuration example can be found below:
58
+
Full configuration examples can be found below:
53
59
54
60
```yaml
55
-
# Example configuration.yaml entry
61
+
# Example configuration.yaml entry for USB/serial connected Smartmeter
56
62
sensor:
57
63
- platform: dsmr
58
64
port: /dev/ttyUSB1
@@ -69,6 +75,31 @@ group:
69
75
- sensor.gas_consumption
70
76
```
71
77
78
+
```yaml
79
+
# Example configuration.yaml entry for remote (TCP/IP, i.e. via ser2net) connection to host which is connected to Smartmeter
80
+
sensor:
81
+
- platform: dsmr
82
+
host: 192.168.1.13
83
+
port: 2001
84
+
dsmr_version: 4
85
+
86
+
group:
87
+
meter_readings:
88
+
name: Meter readings
89
+
entities:
90
+
- sensor.power_consumption_low
91
+
- sensor.power_consumption_normal
92
+
- sensor.power_production_low
93
+
- sensor.power_production_normal
94
+
- sensor.gas_consumption
95
+
```
96
+
97
+
Optional configuration example for ser2net:
98
+
```sh
99
+
# Example /etc/ser2net.conf for proxying USB/serial connections to DSMRv4 smart meters
100
+
2001:raw:600:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
101
+
```
102
+
72
103
[HASSbian](/getting-started/installation-raspberry-pi-image/) users have to give dialout permission to the user `homeassistant`:
0 commit comments