Action - set device.attribute

Why this is not working?

If I press a button want to set the device attribute to a value - but value is after this still the same.
What is wrong?

Thanks!

DataActions are requests. The source that owns the object may be rejecting or ignoring the value request. Is this for a plugin of yours? Is the plugin handling this request? Make sure it forwards the value to the actual device object.

Yes, it is my plugin.
A JSON request update the temperature value. This is working as expected.
I’m updating in the plugin the min/max values every 30 seconds, if needed - this is working (from script).

With the reset button in Details tile want to reset the min/max values - but this does not work.

Any idea?

Is your “onChangeRequest” method forwarding the value into the “device”?

Your code should look exactly like this:

1 Like

Ahhh… this I didn’t know (until now :wink: ).
I thought adding the DataAction is enough.

Thanks - now it is working!