ozw-admin icon indicating copy to clipboard operation
ozw-admin copied to clipboard

Setting Decimal/Raw ValueIDs - Need to create a new ValueDelegate

Open mew1033 opened this issue 5 years ago • 5 comments

It's possible I'm just not doing this right, but I can't update User Values that aren't dropdowns. This is what I'm talking about: Can't change value I double click on the value, type in my new value, hit enter, and nothing happens. I don't get anything in the log either. But if I change a value that is a dropdown, the change works.

Am I just doing it wrong, or is that not working? Thanks!

mew1033 avatar Jun 04 '20 23:06 mew1033

I can confirm the same with my thermostat. My light switch does not have this behavior though. I notice there is a difference between the controls. The light switch Level shows up and down buttons to increment/decrement the value, and the value applies correct. The setpoint Values have Min and Max values of 0, while the light level is 0-255. According to this comment, ozwadmin respects the range, so maybe this is the problem?

kpine avatar Jun 05 '20 18:06 kpine

Light level value which works fine:

{
    "Label": "Level",
    "Value": 0,
    "Units": "",
    "ValueSet": false,
    "ValuePolled": false,
    "ChangeVerified": false,
    "Min": 0,
    "Max": 255,
    "Type": "Byte",
    "Instance": 1,
    "CommandClass": "COMMAND_CLASS_SWITCH_MULTILEVEL",
    "Index": 0,
    "Node": 15,
    "Genre": "User",
    "Help": "The Current Level of the Device",
    "ValueIDKey": 256475153,
    "ReadOnly": false,
    "WriteOnly": false,
    "Event": "valueChanged",
    "TimeStamp": 1591380548
}

Setpoint value which does not work:

{
    "Label": "Cooling 1",
    "Value": 78.0,
    "Units": "F",
    "ValueSet": false,
    "ValuePolled": false,
    "ChangeVerified": false,
    "Min": 0,
    "Max": 0,
    "Type": "Decimal",
    "Instance": 1,
    "CommandClass": "COMMAND_CLASS_THERMOSTAT_SETPOINT",
    "Index": 2,
    "Node": 20,
    "Genre": "User",
    "Help": "Set the Thermostat Setpoint Cooling 1",
    "ValueIDKey": 562950294257682,
    "ReadOnly": false,
    "WriteOnly": false,
    "Event": "valueAdded",
    "TimeStamp": 1591372977
}

kpine avatar Jun 05 '20 18:06 kpine

Ahhh - Decimal Values are not supported in the GUI yet.

Fishwaldo avatar Jun 05 '20 18:06 Fishwaldo

Is there a workaround for that (maybe setting the config value manually somehow)?

matejdro avatar Sep 24 '20 17:09 matejdro

@matejdro You can use MQTT to set the value.

Publish OpenZWave/1/command/setvalue/ Data:

{
  "ValueIDKey": key,
  "Value": value,
}

But as I mentioned in #68 your problem is that the config value you are trying to set has the type Decimal, which is not valid. So your fix is to update the device XML instead.

kpine avatar Sep 24 '20 18:09 kpine