Kane610 / deconz

Python library wrapping deconz rest api for home-assistant
MIT License
46 stars 17 forks source link

deCONZ entities: current or voltage are not created in HA #646

Open aramcap opened 2 months ago

aramcap commented 2 months ago

Related to: https://github.com/home-assistant/core/issues/124427

I have many devices in deCONZ, some of these are plugs. I have checked the API request from deCONZ integration to my Phoscon device, and I've got this:

2024-08-22 15:51:00.348 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"57","r":"sensors","state":{"current":0,"lastupdated":"2024-08-22T13:51:26.088","power":0,"voltage":235},"t":"event","uniqueid":"XXXXXXXXXXXXX"}

The problem is the current and the voltage not shows like entities, else attributes of entity power. This occurs with all devices that have current and voltage.

I don't know if this is a bug or a missing code problem, but if the API request is correct, then the code implementation should exist.

Version of Home Assistant Core: core-2024.7.3

At the moment, like a workaround, I'm using template helper to add these sensors.

Thanks.