Closed tglanfield closed 4 months ago
As an attempt to work around this lack of updates, I've introduced rules that modify the thing's Polling Interval on a regular interval. This forces the channel to the device to be closed and a refresh obtained from the device that includes all of the DP IDs.
This works up to a point and I'm getting the information but after a while I'm getting these sort of errors:
[WARN ] [nding.tuya.internal.local.TuyaDevice] - bfc952e2bb967bf1ednhqz: Refreshing status failed. Device is not connected.
Here is a trace showing this happening: https://pastebin.com/tvaYPVhc
After a little while longer I'm seeing my Tuya things go offline requiring a restart to get them back again.
The devices requiring a restart is probably a bug in the device firmware. A lot of Tuya devices are really crappy.
What functionality is "add_ele"? Some are not refreshed on a regular basis (and no one knows why...).
I'm not restarting the device, just reconnecting to it, which, as I understand it, is a byproduct of changing the Polling Interval.
add_ele is the electricity used in the last period, since this counter was last reset, which appears to be every half hour or so. This DP is being updated on the Tuya IoT site and I have no reason to doubt that the information is available in the device. It's just a matter of getting hold of it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm not receiving regular DP 17 add_ele from my Tuya devices. I can see the updates on Tuya IoT site so know the device is working. I'm receiving the other DP IDs on a regular basis.
Log file deleting and reconfiguring one of my devices. https://pastebin.com/2AiGZWr3
I can provoke an update of all DPs by changing the interval: https://pastebin.com/Fg10W6jg
I'm running OpenHAB 4.0.4.