node-openzwave-shared icon indicating copy to clipboard operation
node-openzwave-shared copied to clipboard

Send COMMAND_CLASS_TIME_PARAMETERS/TIME_PARAMETERS_SET?

Open JonSilver opened this issue 8 years ago • 2 comments

The TIME_PARAMETERS_SET command requires a 7-octet payload to be sent to the device. Does openzwave-shared support this? Is there any sample code anywhere demonstrating how this might be achieved?

JonSilver avatar Oct 10 '17 15:10 JonSilver

there's a custom TimeParameters class defined in ozw which the 7-byte payload is defined: https://github.com/OpenZWave/open-zwave/blob/master/cpp/src/command_classes/TimeParameters.cpp#L196-L208

Judging by this line however: https://github.com/OpenZWave/open-zwave/blob/master/cpp/src/command_classes/TimeParameters.cpp#L217

seems that the valueType for TIME_PARAMETERS_SET is a...ValueType_Button (I'd expect this to be a ValueType_Raw).

This feature needs some work...

ekarak avatar Oct 14 '17 15:10 ekarak

Apropos of nothing, I found this, but nothing else: https://github.com/OpenZWave/open-zwave/issues/606

Seems nobody else is wanting to send the date & time over to locks, thermostats or anything. Or maybe they've found a way that's eluded me.

So in the meantime is there any way of getting the date & time over to these devices? :(

JonSilver avatar Oct 26 '17 13:10 JonSilver