Skip to content

Commit 6bcf3f0

Browse files
committed
Add support for remote (TCP/IP) DSMR sensors (i.e. via ser2net)
1 parent 2d6a719 commit 6bcf3f0

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

source/_components/sensor.dsmr.markdown

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ sensor:
4646
4747
Configuration variables:
4848
49-
- **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).
49+
- **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).
50+
- **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).
51+
- **dsmr_version** string (*Optional*): Version of DSMR used by meter, choices: 2.2, 4 (default: 2.2).
5152
52-
A full configuration example can be found below:
53+
Full configuration examples can be found below:
5354
5455
```yaml
55-
# Example configuration.yaml entry
56+
# Example configuration.yaml entry for USB connected Smartmeter
5657
sensor:
5758
- platform: dsmr
5859
port: /dev/ttyUSB1
@@ -69,6 +70,25 @@ group:
6970
- sensor.gas_consumption
7071
```
7172
73+
```yaml
74+
# Example configuration.yaml entry for remote (TCP/IP, i.e. via ser2net) connection to host which is connected to Smartmeter
75+
sensor:
76+
- platform: dsmr
77+
host: 192.168.1.13
78+
port: 2001
79+
dsmr_version: 4
80+
81+
group:
82+
meter_readings:
83+
name: Meter readings
84+
entities:
85+
- sensor.power_consumption_low
86+
- sensor.power_consumption_normal
87+
- sensor.power_production_low
88+
- sensor.power_production_normal
89+
- sensor.gas_consumption
90+
```
91+
7292
[HASSbian](/getting-started/installation-raspberry-pi-image/) users have to give dialout permission to the user `homeassistant`:
7393

7494
```

0 commit comments

Comments
 (0)