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
* Added: Device name can be changed in the config.ini
* Added: Device instance can be changed in the `config.ini`
* Added: How to create multiple instances in `README.md`
* Changed: Topic variable name in `config.ini`
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,26 @@ If the seconds are under 5 then the service crashes and gets restarted all the t
146
146
147
147
If the script stops with the message `dbus.exceptions.NameExistsException: Bus name already exists: com.victronenergy.grid.mqtt_grid"` it means that the service is still running or another service is using that bus name.
148
148
149
+
### Multiple instances
150
+
151
+
It's possible to have multiple instances, but it's not automated. Follow these steps to achieve this:
152
+
153
+
1. Save the new name to a variable `driverclone=dbus-mqtt-grid-2`
154
+
155
+
2. Copy current folder and add a number `cp -r /data/etc/dbus-mqtt-grid/ /data/etc/$driverclone/`
156
+
157
+
3. Rename the main script `mv /data/etc/$driverclone/dbus-mqtt-grid.py /data/etc/$driverclone/$driverclone.py`
158
+
159
+
4. Fix the script references for service and log
160
+
```
161
+
sed -i 's:dbus-mqtt-grid:'$driverclone':g' /data/etc/$driverclone/service/run
162
+
sed -i 's:dbus-mqtt-grid:'$driverclone':g' /data/etc/$driverclone/service/log/run
163
+
```
164
+
165
+
5. Change the `device_name` and increase the `device_instance` in the `config.ini`
166
+
167
+
Now you can install and run the cloned driver. Should you need another instance just increase the number in step 1 and repeat all steps.
168
+
149
169
### Compatibility
150
170
151
171
It was tested on Venus OS Large `v2.92` on the following devices:
0 commit comments