[custom driver] ZEN-17 setParameter from RM question

@jtp10181

I am using your custom driver for the ZEN-17 Device.
The RM rule sets/modifies a Parameter-6 (Relay-1 Auto Turn Off Time).
The modified parameter is not displayed correctly on the Device Page.
This is by design (but makes no sense) and you already explained this driver behavior.
When rule is running it sets a Parameter-6 to 3 (auto turn off after 3 sec) and the Relay goes Off after 3 sec as it should. However if the Relay manually turned On from the Device Page it does not turn Off after expected 3 sec.
It looks like the modified by RM parameter is not memorized by the device.
Now couple of questions:

  • Is this how it should work?
  • And if "yes" what is a life time for the modified parameter?

It should remember it indefinitely.

However, since the setting shown on the device page stays how it was the driver will show there are "Pending Changes". If you then run a configure or click Save Prefs at the bottom, the driver will sync up the displayed settings to the device.

I am working on this driver right now, and I am considering changing it so the displayed setting would also be changed. This has confused some other people in the past as well.

My original intention was using the Set Parameter would be a temporary change, and then you could easily go back to your desired preferences with a Save or Configure, but I guess that only makes sense to me :slight_smile:

2 Likes

Thank You very much for the explanation.
And Thank You very much for the updating driver.

Yes, there is "1 Pending Change" on the Parent Device Page, I missed this.
BTW, should I send a "configure" command from the rule after "setParameter" command or the updated driver will do the job?

No, that would sync your normal setting back to the device, the opposite of what you want.

The updated driver will probably take care of this.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.