ioBroker.tuya icon indicating copy to clipboard operation
ioBroker.tuya copied to clipboard

Power Socket values not updating (works with another socket)

Open Bobmorton-TX opened this issue 2 years ago • 4 comments

Thanks for your great tool! I have successfully paired a power socket and get the data updates in iobroker now i have added another power socket of a different brand. It is also correctly paired and shows the data in the object tree. But the values like cur_voltage cur_power only get updated once after pairing. If i turn off the power socket off (via iobroker) it reports a cur_power of 0 and if I turn it on it reports a correct value for cur_power but his does not update ever again (unless turned on/off)

tuya log from iobroker.txt

Bobmorton-TX avatar Aug 31 '22 09:08 Bobmorton-TX

Ywes there are such devices that do not report power locally sometimes ... therefor the polling interval can be used to actively reasd values from devices. Does it work when it is polling?

Apollon77 avatar Aug 31 '22 18:08 Apollon77

I tried different polling times (5,10,20,60) it does not update values.

I have installed a VM: Home Assisitant with HACS and the local tuya plugin and set the polling for the device there to 10 seconds. It updates the power and voltage values in HACS Iobroker running at the same time now gets these values as well and updates correctly.

Bobmorton-TX avatar Aug 31 '22 19:08 Bobmorton-TX

It would be great to see a tuya adapter debug log (without running hass in parallel!) with a polling in it because first do not have this.And in general please include full debug log since beginning and tell menthe affected device Id.

Apollon77 avatar Aug 31 '22 19:08 Apollon77

PS:And if hass provides a debug log would be great to see what thy maybe do different

Apollon77 avatar Aug 31 '22 19:08 Apollon77

Morning.

I restarted Iobroker today and now the polling from seems to work now. i see this line now in the log: **

tuya.0 2022-09-01 10:08:51.371 debug bfd3892ea2f066641brpkk request data via get ...
**

and the values are updating like they should.

thanks

Bobmorton-TX avatar Sep 01 '22 08:09 Bobmorton-TX

great to hear

Apollon77 avatar Sep 01 '22 18:09 Apollon77