V-VarX support
-
Does Domoticz now support V-VarX variables? I know it didn't before, but I thought I saw some stuff recently that made me think it does now.
-
Could you please share where did you see that?
-
@gohan I don't know if I am reading it wrong, but here is what I found on a google search that I did.
https://www.domoticz.com/forum/viewtopic.php?f=42&t=9708&p=115515&hilit=mysensors+v_var1&sid=75248c566d3ae815df85ccd0fd07e549#p115515
-
I used it on the water meter sketch and it did work. I can't claim to understand the usage -- just used Var1 exactly as the example sketch showed.
-
Could it be that it is working only as a variable accessible from scripts and not from dashboard?
-
as seen here: https://www.mysensors.org/controller it does support V_Var1 but with some limitations. Im having a hard time to see what kind if limitations it is, but like gohan mentioned it can be script only.
-
Yes it does. Take a look at domoticz source code and you can see there is V_VAR and V_VAR_1-5 implemented:
https://github.com/domoticz/domoticz/blob/development/hardware/MySensorsBase.cppThere is little description how these are used with domoticz:
E.g. In Domoticz V_VAR is used to store and restore node variables. They are stored in the Domoticz database when send by the node. The node can retrieve a previous stored value from the database. There is no easy way to set the variables. So V_VAR kan be used as remote permanent memory.
-
@pjr That was one thing that made it hard for me on some nodes when I was using Domoticz. One of the big ones was my sprinkler node. The node passes zone names and run times using the V-VARx if you use the code on the build page. Because of the fact that at the time Domoticz didn't support those, I had to re-write code for the node to hackishly (if that's even a word) make the three values work.