Open Zen3515 opened 2 years ago
Hi,
Same problem (I think) with my Wifi Smart Plug. Only the on/of function is discovered. But no powerusage details.
The information is available in the API:
But not in the HA Integration:
Hope this can be fixed easily
Hi,
Same problem (I think) with my Wifi Smart Plug. Only the on/of function is discovered. But no powerusage details.
The information is available in the API:
But not in the HA Integration:
Hope this can be fixed easily
Would be nice to see your log too.
Hi, Same problem (I think) with my Wifi Smart Plug. Only the on/of function is discovered. But no powerusage details. The information is available in the API:
But not in the HA Integration:
Hope this can be fixed easily
Would be nice to see your log too.
Sorry for the late reply. I use the new Tuya integration and had to figure out how to debug this. I also think this debug is not worth anything. But here it is:
2021-10-20 19:47:10 DEBUG (MainThread) [homeassistant.components.tuya] init support type->['climate', 'fan', 'light', 'scene', 'switch'] 2021-10-20 19:47:10 DEBUG (MainThread) [homeassistant.components.tuya.light] light init 2021-10-20 19:47:10 DEBUG (MainThread) [homeassistant.components.tuya.light] light add-> [] 2021-10-20 19:47:10 DEBUG (MainThread) [homeassistant.components.tuya.switch] switch init 2021-10-20 19:47:10 DEBUG (MainThread) [homeassistant.components.tuya.switch] switch add-> ['device1', 'device2'] 2021-10-20 19:47:12 DEBUG (MainThread) [homeassistant.components.tuya.fan] fan init 2021-10-20 19:47:12 DEBUG (MainThread) [homeassistant.components.tuya.fan] fan add-> [] 2021-10-20 19:47:12 DEBUG (MainThread) [homeassistant.components.tuya.climate] climate init 2021-10-20 19:47:12 DEBUG (MainThread) [homeassistant.components.tuya.climate] climate add-> []
Both devices are Smart Plugs with power meter (I recently added another one so this one is not in the screenshot)
Describe the bug I bought a MCB that can report power energy in the app, but when use tuyav1 or tuyav2 with homeassistant there is no such energy sensor.
Expected behavior I expected the device to create entity for energy or has
cur_current
,cur_power
,cur_voltage
keys in the logs.Screenshots![Screenshot_2021-10-06-21-27-40-027_com tuya smart](https://user-images.githubusercontent.com/7106408/136227214-45e925fb-f7d8-4a24-9627-884f6a5daabe.jpg)
Home Assistant Version
Device info (please complete the following information, which can be found in log): like this:
Device specifications (please complete the following information, which can be found in log): Same device's id, like this:
Additional context I'm sure that my device can report such information, is it bug with wrong specification or what. It's also possible to set threshold for
over voltage
,under voltage
,leakage current
. I'm willing to implement this but can someone guide me to the right direction.Which case is it?