Tongou TOQCB2 Poll issue #3041
-
DescriptionHi! The Tongou TOQCB2 WiFi Circuit Breaker device reports the current, power and voltage values every 10 minutes or so. This sampling period is not fast enough for the automations I want to create, so I have enabled the When I do this, the current, power and voltage values are no longer valid, they appear as 'unknown',although values like temperature are still updated correctly every 30s. The following warnings appear in the Homeassistant log:
and
I would need the power to update every 30s or so, just like the temperature does. I would appreciate any help I can get from the community to debug and fix this problem. I don't have a lot of experience with Homeassistant, but I am good with anything computer related. Steps to reproduceConfigure Local Tuya device Tongou TOQCB2 WiFi Circuit Breaker as Expected behaviourThe device sends current, power and voltage information every 30s. Additional contextNo response Confirmation
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
I put my findings here:
So it seems to me that sending 0x08 to dps 6 (or something like that) could solve my problems, I tried to do it with a script like this:
But, unfortunately, I did not achieve the desired effect. I have also tried to use the Tuya interface for sending messages such as
Any ideas? any help would be welcome P.S. I keep an old phone with the app open and with activity using an auto clik app so the power is updated every 10s automatically |
Beta Was this translation helpful? Give feedback.
-
There is a "Live updates" switch in the config. Does that not work? I think it self-resets after some timeout, so you need to periodically switch it back on to continuously get frequent updates. Keep in mind that there may be some internal technical reason the manufacturer designed it not to always send frequent updates, so if there is some other criteria you can use in an automation to turn on high frequency monitoring, then it may be better to do that than to keep it on all the time. |
Beta Was this translation helpful? Give feedback.
-
Hi Jason Thanks for your reply, could you tell me what exactly do you mean by “Live updates” switch? I have searched both in the repository and in the device configuration in HA and in the Cloud Tuya interface and I have not found reference to that switch, but it looks promising. As for what you tell me about controlling when the device is sending data at high frequency and avoid abusing it, that is my intention, just increase the sample rate at certain times that I need fine monitoring of consumption. Regards |
Beta Was this translation helpful? Give feedback.
-
I mean the switch that is defined here |
Beta Was this translation helpful? Give feedback.
-
According to the device characteristics consulted in the cloud, the pd 109 corresponds to the connection status with the server:
The device is
but I am not able to replicate the message to force high frequency updates. |
Beta Was this translation helpful? Give feedback.
-
Well you were right, doing an off/on cycle makes the device read at a high frequency, thank you very much for your help Jason! If you change it to a button I think that would be good. |
Beta Was this translation helpful? Give feedback.
They just seem to have converted it to human readable values by capitalising and changing the underscore to a space. It is the same signal. It might help if I change the switch to a button, so that a press just sends "online" regardless of the current state.