I haven’t understood everything yet but I have just resolved the problem of memorizing the temperature in the device. I just noticed that I had added a call to the ‘onSynchronizeDevices’ function in the ‘onConnect’ function following my previous remark. By deleting this call I recover the temperature placed in the device
Data = 22.3
device.Temperature = 22.3
On the other hand, the problem persists regarding the plugin settings (PollingInterval, port, …).
I forgot to tell you that the ‘device’ variable initialization doesn’t seem right.
I replaced
var device = plugin.Devices[deviceId];
with
var device = plugin.Devices[“1”];
because ‘deviceId’ = 227 and there is only one VeraUI5 device in the project.
With all this I finally managed to display the temperature in my label
I can finally go get some sleep…