Closed baroldgene closed 2 months ago
I was attempting to test this fix myself but was unable to due to:
Thanks for reporting. I can reproduce it and it indeed needs a fix like the one you proposed. If you want to test it on your Cerbo before the fix will be part of Venus, you can do that as follows:
/
read-write: run /opt/victronenergy/swupdate-scripts/remount-rw.sh
/usr/lib/node_modules/@victronenergy/node-red-contrib-victron/src/services/dbus-listener.js
as you already figured out and adjust it like this.cd
-ing to /service
and running svc -d node-red-venus && svc -u node-red-venus
(or just rebooting the Cerbo)Anyway, I've prepared the patch and will make a new release early next week and make it part of the next Beta Venus release.
I'll leave this issue open until that has been done.
Thanks for the patch and for the help on how to test. I was able to test this on my Cerbo GX and it worked perfectly! Much appreciated!
Closing this issue; new release has been created and put on the queue for inclusion into the next Venus beta release.
Describe the bug If attempting to update DBus settings that are string values (e.g. TimeZone) the Custom Control Node rejects text input with the error "value is not of type number". I believe that this is DBus rejecting the attempt to save since the data sent and the type passed along with it don't match.
To Reproduce Steps to reproduce the behavior:
com.victron.settings
with the path "Settings/System/TimeZone"Expected behavior I would expect to be able to properly set this setting.
Screenshots
Flow If applicable, add a flow to help explain your problem.
Hardware (please complete the following information):
Software (please complete the following information):
Additional context As best I can tell the problem lies in this function. I believe adding the following code after line 302 would solve the issue:
if (typeof value == "string" && !isNaN(value)) { numType = 's' }