stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

TS0121_plug does not display power #749

Closed Oleg-Sob closed 2 years ago

Oleg-Sob commented 2 years ago

Issue description

Power socket https://www.zigbee2mqtt.io/devices/TS0121_plug.html#tuya-ts0121-plug does not display power

33

MQTT-Explorer has it.

55

Is it possible to add power readings to the plugin?

Additional information Zigbee2MQTT version: v.1.22.1 Domoticz version: 2021.1.13947 2021-12-17 Plugin version: v.3.1.0-beta

sammyke007 commented 2 years ago

It's a bug in the plugin that tries to read the power_outage_memory value instead of the power value. Temp workaround is filtering the attribute power_outage_memory in the Z2M frontend (select device --> settings --> "Filter attributes from publish payload." --> click + --> type power_outage_memory

You'll have to do this for each device in the Z2M frontend.

stas-demydiuk commented 2 years ago

Does the issue still persist?

sammyke007 commented 2 years ago

I still have to filter "power_outage_memory", yes.

stas-demydiuk commented 2 years ago

Are you sure you are using the latest plugin version as I don't see such an issue with my TS0121 Plug

image
sammyke007 commented 2 years ago

I'll try to update to the latest commit ASAP

sammyke007 commented 2 years ago

I'm a little bit afraid to update to v3.1 as it removes the "_th" temp + hum devices and creates T + H + B devices which I don't need. I lost a complete days reconfiguring and debugging some months ago after an unssuccesful update. I only have a live setup running, no test environment...

sammyke007 commented 2 years ago

Updated to latest v3.1 plugin today and it's fixed indeed. No need to filter the attribute anymore. Tnx

stale[bot] commented 2 years ago

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.