home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.15k stars 29.83k forks source link

(Wiz) Bulbs not showing power consumption (always 0) #98342

Open IIV-NATHAN-VII opened 1 year ago

IIV-NATHAN-VII commented 1 year ago

The problem

See title.

What version of Home Assistant Core has the issue?

core-2023.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

wiz

Link to integration documentation on our website

(https://www.home-assistant.io/integrations/wiz)

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @sbidy, mind taking a look at this issue as it has been labeled with an integration (wiz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wiz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign wiz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


wiz documentation wiz source (message by IssueLinks)

Anto79-ops commented 1 year ago

Mine do the same, but my hardware is ESP24 01 and not listed on the integration as a power monitoring so one so I figured that is why. Do you have the ESP24?

IIV-NATHAN-VII commented 1 year ago

Says ESP 1401 but shows power usage in app and has sensor just always 0 in home assistant

Anto79-ops commented 1 year ago

Yeah, does not look like it's a power monitoring one either. Shows zero for me too.

https://www.home-assistant.io/integrations/wiz#power-monitoring-sensors

issue-triage-workflows[bot] commented 10 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

steveothesane commented 10 months ago

Any chance we can get this data from the API? I think I remember a post a while back before the official integration that @sbidy was having issues from the developer getting the API call but maybe that has changed. Can someone who knows API calls better than me (I have no idea how to do it) look into this? Many thanks. 🖖

L81ker commented 10 months ago

These missing entities for WIZ (3 of 4) are causing my log file to pile up with errors that I can't clear as it's in the integration. There are 3 entities found that are 'unavailable' to HA.

image

Here some logfile entry that might help @sbidy (all I'm doing is calling a scene with either red/green/blue or yellow).

Logger: homeassistant.components.automation.glass_cabinet_lights_change_depending_on_soc Source: helpers/script.py:468 Integration: Automation (documentation, issues) First occurred: 17:03:13 (36 occurrences) Last logged: 18:31:12

Glass-Cabinet-Lights-Change-depending-on-SOC: If at step 1: If at step 1: If at step 1: Error executing script. Unexpected error for call_service at pos 1: Glass-Cabinet-Lights-Change-depending-on-SOC: If at step 1: If at step 1: Error executing script. Unexpected error for if at pos 1: Glass-Cabinet-Lights-Change-depending-on-SOC: If at step 1: Error executing script. Unexpected error for if at pos 1: Glass-Cabinet-Lights-Change-depending-on-SOC: Error executing script. Unexpected error for if at pos 1: Traceback (most recent call last): File "/usr/local/lib/python3.11/asyncio/tasks.py", line 500, in wait_for return fut.result() ^^^^^^^^^^^^ asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 758, in send resp = await asyncio.wait_for( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/tasks.py", line 502, in wait_for raise exceptions.TimeoutError() from exc TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step response_data = await self._async_run_long_action( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action return long_task.result() ^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/scene/init.py", line 114, in _async_activate await self.async_activate(kwargs) File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 334, in async_activate await async_reproduce_state( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 67, in async_reproduce_state await asyncio.gather( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 61, in worker await platform.async_reproduce_states( File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 193, in async_reproduce_states await asyncio.gather( File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 180, in _async_reproduce_state await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 580, in async_handle_light_on_service await light.async_turn_on(filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/wiz/light.py", line 127, in async_turn_on await self._device.turn_on(_async_pilot_builder(**kwargs)) File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 657, in turn_on await self.send(pilot_builder.set_pilot_message()) File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 762, in send raise WizLightConnectionError(str(ex)) from ex pywizlight.exceptions.WizLightConnectionError

sensei73 commented 8 months ago

Same here, it was working before. maybe something change in WIZ api?

image
av8rboi commented 6 months ago

I have a WIZ smart plug with Hardware "ESP25 01". Most of the the times, it is showing power 0.0 W even with a heavy load connected to it. Only sometimes it shows correct power in watts.

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

sensei73 commented 3 months ago

Do not close, still an issue, not a high priority one, but still an issue.

alucryd commented 3 months ago

Confirmed here too, just got a few wiz whites, energy, effect speed and signal strength are available in the wiz app, but not in Home Assistant. These are probably not exposed at all when using matter, would be awesome to get this fixed. Will have a look if the wiz API is publicly available.

Kappawaii commented 3 months ago

Same here, can get the energy consumption in the app but not in the Wiz integration

Sinfonia97 commented 2 months ago

I too am having the same issue. Energy shows up in the app in watts but it is not exposed to the addon. Mine is reporting hardware as ESP01 31. Find it odd that the app, both v1 and v2 report the usage, but can't see it in HA.

pctechnikch commented 3 weeks ago

The same here with SHRGBC GU10 Socket lamp from WiZ Firmware: 1.32.1 Hardware: ESP24 01 Energy shows up in the app in watts but it is not exposed to the addon.

JuhaKalevi commented 3 weeks ago

Same problem here. It's very buggy in the Wiz app too.

deezid commented 2 weeks ago

Definitely same problem here. Has never worked sadly.