]> git.basschouten.com Git - openhab-addons.git/commitdiff
[sunspec modbus] fix thing example (#11380)
authorMarkus Storm <markus.storm@gmx.net>
Fri, 15 Oct 2021 16:00:40 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Oct 2021 16:00:40 +0000 (18:00 +0200)
The Thing definition in () in l193 references the *name* that was assigned in l192, correct? So they should match.
Or do I misunderstand the mapping here ?

Signed-off-by: Markus Storm <markus.storm@gmx.net>
bundles/org.openhab.binding.modbus.sunspec/README.md

index 18f44668f1773d923cd116931bf1001d742e7365..df9c9e5d00c778b5ed1bbd56faffeeb75dc4b340 100644 (file)
@@ -35,7 +35,7 @@ You can set the `enableDiscovery=true` parameter in your bridge.
 A typical bridge configuration would look like this:
 
 ```
-Bridge modbus:tcp:bridge [ host="10.0.0.2", port=502, id=1, enableDiscovery=true ]
+Bridge modbus:tcp:modbusBridgeName [ host="10.0.0.2", port=502, id=1, enableDiscovery=true ]
 ```
 
 ## Thing Configuration
@@ -189,8 +189,8 @@ Supported by: all inverter things
 ### Thing Configuration
 
 ```
-Bridge modbus:tcp:bridge [ host="hostname|ip", port=502, id=1, enableDiscovery=true ]
-Thing modbus:inverter-single-phase:bridge:se4000h "SE4000h" (modbus:tcp:modbusbridge) [ address=40069, length=52, refresh=15 ]
+Bridge modbus:tcp:modbusBridgeName [ host="hostname|ip", port=502, id=1, enableDiscovery=true ]
+Thing modbus:inverter-single-phase:bridge:myInverter "SE4000h" (modbus:tcp:modbusBridgeName) [ address=40069, length=52, refresh=15 ]
 ```
 
 Note: Make sure that refresh, port and id values are numerical, without quotes.