question

wolfgang-huse avatar image
wolfgang-huse asked

Remove entries from DBus Settings

Hello! I have created some devices via python when playing with dbus.

Now these devices seems to appear in VRM „last updated a month ago“.

I cannot delete them in VRM so I guess that I need to remove them from Cerbo Settings.

What is the easiest way to do this?

vrm advanced
2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

gone-sailing avatar image gone-sailing commented ·
Have you checked the Device List tab in VRM. Usually there is a big “Delete device” button on devices that have not been updated in a while.
0 Likes 0 ·
Show more comments
2 Answers
Kevin Windrem avatar image
Kevin Windrem answered ·

Generally, things will show up in the device list when Venus OS finds a dbus service that matches one if it's know device types. These will disappear from dbus when you reboot if you remove whatever created them.

Settings are persistent and live in com.victronenergy.settings. These should not generate devices. You can remove settings with a command line call:

dbus -y com.victronenergy.settings / RemoveSettings "%[ /settingsPath ]"

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

goups avatar image
goups answered ·

Is there a way to remove multiple entries at the same time ?

Like all the following:

dbus -y com.victronenergy.settings /Settings/Devices/serialbattery_Volthium98Ah4cells2113_97_6Ah GetValue
{'AllowMaxVoltage': 1,
 'ClassAndVrmInstance': 'battery:2',
 'LastSeen': 1709417316,
 'MaxVoltageStartTime': '',
 'SocCalc': '99',
 'SocResetLastReached': 0}

Currently, I need to remove each entry one by one like:

dbus -y com.victronenergy.settings /Settings/Devices RemoveSettings '%["/serialbattery_Volthium98Ah4cells2113_97_6Ah/LastSeen"]'
dbus -y com.victronenergy.settings /Settings/Devices RemoveSettings '%["/serialbattery_Volthium98Ah4cells2113_97_6Ah/SocCalc"

I didn't find the right way to write the command



2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Additional resources still need to be added for this topic