bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
1.03k stars 265 forks source link

WiZ Bulb A67 E27 SHRGBW #1578

Closed SkyDev125 closed 1 year ago

SkyDev125 commented 1 year ago

System Health details

System Information

version core-2023.3.5
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 5.15.84-v8+
arch aarch64
timezone Europe/Lisbon
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.31.0 Stage | running Available Repositories | 1249 Downloaded Repositories | 4
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Debian GNU/Linux 11 (bullseye) -- | -- update_channel | stable supervisor_version | supervisor-2023.03.1 agent_version | 1.4.1 docker_version | 23.0.1 disk_total | 116.9 GB disk_used | 19.1 GB healthy | failed to load: Unhealthy supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.5.4), Terminal & SSH (9.6.1), Mosquitto broker (6.1.3), Vaultwarden (Bitwarden) (0.19.0), Home Assistant Google Drive Backup (0.110.1)
Dashboards dashboards | 1 -- | -- resources | 0 mode | auto-gen
Recorder oldest_recorder_run | March 9, 2023 at 6:09 PM -- | -- current_recorder_run | March 19, 2023 at 7:56 AM estimated_db_size | 105.89 MiB database_engine | sqlite database_version | 3.38.5

Checklist

Describe the issue

I have 3 Wiz bulbs. All of them are being captured properly, except this one specific bulbs which has a slightly different model. WiZ Bulb A67 E27 SHRGBW

Everytime that I turn the bulb on, the power estimate just goes to unavailable. When I turn it back off, it then starts recording its "sleep power consumption".

So I think probably something is either wrong on my installation/bulb. or something is wrong with the power estimate calculations for the SHRGBW bulb

Reproduction steps

  1. Install Powercalc
  2. Automatic discover of the bulbs
  3. Turn on this one bulb
  4. Notice how the power estimate doesnt exist after bulb is turned on
  5. ...

Debug logs

2023-03-19 08:26:58.634 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration govee_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-03-19 08:26:58.637 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration powercalc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-03-19 08:26:58.639 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-03-19 08:26:58.640 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hass_agent which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-03-19 08:27:16.791 DEBUG (MainThread) [custom_components.powercalc.discovery] Start auto discovering entities
2023-03-19 08:27:16.792 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.bathroom_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Nest Mini)
2023-03-19 08:27:16.795 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.bathroom_speaker: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.795 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.sky_s_room_display: Auto discovered model (manufacturer=Google Inc., model=Google Nest Hub)
2023-03-19 08:27:16.796 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.sky_s_room_display: Model not found in library, skipping discovery
2023-03-19 08:27:16.796 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.alexa_s_room_clock: Auto discovered model (manufacturer=LENOVO, model=Lenovo Smart Clock)
2023-03-19 08:27:16.799 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.alexa_s_room_clock: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.799 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.home: Auto discovered model (manufacturer=Google Inc., model=Google Cast Group)
2023-03-19 08:27:16.799 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.home: Model not found in library, skipping discovery
2023-03-19 08:27:16.800 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display: Auto discovered model (manufacturer=Google Inc., model=Google Nest Hub)
2023-03-19 08:27:16.800 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.kitchen_display: Model not found in library, skipping discovery
2023-03-19 08:27:16.800 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_925969: Auto discovered model (manufacturer=WiZ, model=SHRGB)
2023-03-19 08:27:16.808 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_925969: Model not found in library, skipping discovery
2023-03-19 08:27:16.808 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d65485: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.809 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d65485: Model not found in library, skipping discovery
2023-03-19 08:27:16.809 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d68b49: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.809 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d68b49: Model not found in library, skipping discovery
2023-03-19 08:27:16.809 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d6629d: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.809 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_d6629d: Model not found in library, skipping discovery
2023-03-19 08:27:16.810 DEBUG (MainThread) [custom_components.powercalc.discovery] light.counter: Auto discovered model (manufacturer=Govee, model=H61A0)
2023-03-19 08:27:16.813 DEBUG (MainThread) [custom_components.powercalc.discovery] light.counter: Model not found in library, skipping discovery
2023-03-19 08:27:16.813 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.skypc: Cannot autodiscover model, manufacturer or model unknown from device registry
2023-03-19 08:27:16.813 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.sky_pc: Auto discovered model (manufacturer=LAB02 Research, model=Microsoft Windows NT 10.0.22621.0)
2023-03-19 08:27:16.813 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.sky_pc: Model not found in library, skipping discovery
2023-03-19 08:27:16.814 DEBUG (MainThread) [custom_components.powercalc.discovery] light.yeelight_bslamp3_0x1c53de59: Auto discovered model (manufacturer=Yeelight, model=bslamp3)
2023-03-19 08:27:16.822 DEBUG (MainThread) [custom_components.powercalc.discovery] light.yeelight_bslamp3_0x1c53de59: Model not found in library, skipping discovery
2023-03-19 08:27:16.822 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_f36281: Auto discovered model (manufacturer=WiZ, model=SHRGBW)
2023-03-19 08:27:16.822 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_f36281: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.822 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_c82ef1: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_c82ef1: Model not found in library, skipping discovery
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_cac493: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_cac493: Model not found in library, skipping discovery
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.wiz_socket_a0cb12: Auto discovered model (manufacturer=WiZ, model=SOCKET)
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.wiz_socket_a0cb12: Model not found in library, skipping discovery
2023-03-19 08:27:16.823 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_tv_2: Cannot autodiscover model, manufacturer or model unknown from device registry
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.alexa_s_room_tv: Auto discovered model (manufacturer=Google Inc., model=Chromecast)
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.alexa_s_room_tv: Model not found in library, skipping discovery
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Nest Mini)
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_speaker: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] light.main_bulb: Auto discovered model (manufacturer=WiZ, model=SHRGBW)
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] light.main_bulb: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.824 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.meo_tv_box_4k: Auto discovered model (manufacturer=SDMC, model=MEO TV Box 4K)
2023-03-19 08:27:16.825 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.meo_tv_box_4k: Model not found in library, skipping discovery
2023-03-19 08:27:16.825 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_tv: Auto discovered model (manufacturer=Samsung Electronics, model=UE50AU7175UXXC)
2023-03-19 08:27:16.826 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_tv: Model not found in library, skipping discovery
2023-03-19 08:27:16.826 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_f2cb09: Auto discovered model (manufacturer=WiZ, model=SHRGBC)
2023-03-19 08:27:16.826 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbw_tunable_f2cb09: Model not found in library, skipping discovery
2023-03-19 08:27:16.826 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_fc62c6: Auto discovered model (manufacturer=WiZ, model=SHRGB1W)
2023-03-19 08:27:16.827 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_fc62c6: Already setup with discovery, skipping new discovery
2023-03-19 08:27:16.827 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.wiz_socket_aa0992: Auto discovered model (manufacturer=WiZ, model=SOCKET)
2023-03-19 08:27:16.827 DEBUG (MainThread) [custom_components.powercalc.discovery] switch.wiz_socket_aa0992: Model not found in library, skipping discovery
2023-03-19 08:27:16.827 DEBUG (MainThread) [custom_components.powercalc.discovery] Done auto discovering entities
2023-03-19 08:27:16.945 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.bathroom_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Nest Mini)
2023-03-19 08:27:16.945 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=media_player.bathroom_speaker entity_category=None, sensor_name=bathroom_speaker power strategy=LinearStrategy manufacturer=google model=Nest Mini (H2C) standby_power=1.65 unique_id=pc_39345214-0ef5-cf18-f505-229673065ccd)
2023-03-19 08:27:16.945 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: bathroom_speaker energy
2023-03-19 08:27:16.946 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.alexa_s_room_clock: Auto discovered model (manufacturer=LENOVO, model=Lenovo Smart Clock)
2023-03-19 08:27:16.946 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=media_player.alexa_s_room_clock entity_category=None, sensor_name=alexa_s_room_clock power strategy=LinearStrategy manufacturer=lenovo model=Smart Clock with Google Assistant standby_power=2.51 unique_id=pc_f96f9075-2504-0422-a1d6-aac13a8d2c86)
2023-03-19 08:27:16.947 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: alexa_s_room_clock energy
2023-03-19 08:27:16.947 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_f36281: Auto discovered model (manufacturer=WiZ, model=SHRGBW)
2023-03-19 08:27:16.947 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/wiz/SHRGBW/color_temp.csv.gz
2023-03-19 08:27:16.960 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1664 lines
2023-03-19 08:27:16.962 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wiz_rgbww_tunable_f36281 entity_category=None, sensor_name=wiz_rgbww_tunable_f36281 power strategy=LutStrategy manufacturer=wiz model=SHRGBW standby_power=0.33 unique_id=pc_d8a011f36281)
2023-03-19 08:27:16.962 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wiz_rgbww_tunable_f36281 energy
2023-03-19 08:27:16.963 DEBUG (MainThread) [custom_components.powercalc.discovery] media_player.living_room_speaker: Auto discovered model (manufacturer=Google Inc., model=Google Nest Mini)
2023-03-19 08:27:16.963 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=media_player.living_room_speaker entity_category=None, sensor_name=living_room_speaker power strategy=LinearStrategy manufacturer=google model=Nest Mini (H2C) standby_power=1.65 unique_id=pc_02d50bff-2497-73ec-1ec7-54d19b21aa99)
2023-03-19 08:27:16.964 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: living_room_speaker energy
2023-03-19 08:27:16.964 DEBUG (MainThread) [custom_components.powercalc.discovery] light.main_bulb: Auto discovered model (manufacturer=WiZ, model=SHRGBW)
2023-03-19 08:27:16.965 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.main_bulb entity_category=None, sensor_name=main_bulb power strategy=LutStrategy manufacturer=wiz model=SHRGBW standby_power=0.33 unique_id=pc_d8a011f04845)
2023-03-19 08:27:16.965 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: main_bulb energy
2023-03-19 08:27:16.966 DEBUG (MainThread) [custom_components.powercalc.discovery] light.wiz_rgbww_tunable_fc62c6: Auto discovered model (manufacturer=WiZ, model=SHRGB1W)
2023-03-19 08:27:16.966 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] Loading LUT data file: /config/custom_components/powercalc/power_profile/../data/wiz/SHRGB1W/color_temp.csv.gz
2023-03-19 08:27:16.978 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] LUT file loaded: 1664 lines
2023-03-19 08:27:16.978 DEBUG (MainThread) [custom_components.powercalc.sensors.power] Creating power sensor (entity_id=light.wiz_rgbww_tunable_fc62c6 entity_category=None, sensor_name=wiz_rgbww_tunable_fc62c6 power strategy=LutStrategy manufacturer=wiz model=SHRGB1W standby_power=0.26 unique_id=pc_6c2990fc62c6)
2023-03-19 08:27:16.978 DEBUG (MainThread) [custom_components.powercalc.sensors.energy] Creating energy sensor: wiz_rgbww_tunable_fc62c6 energy
2023-03-19 08:27:17.000 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bathroom_speaker_power to device 761d262f8b590f782a27dd584ff637fb
2023-03-19 08:27:17.005 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.alexa_s_room_clock_power to device 8c9dfe14bbd101349babf126578eb029
2023-03-19 08:27:17.009 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wiz_rgbww_tunable_f36281_power to device d4aa78dec06d13bb0f9888cc5dc2fbc9
2023-03-19 08:27:17.012 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.living_room_speaker_power to device 7ddd54fc805a7b572a50988530140563
2023-03-19 08:27:17.015 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.main_bulb_power to device 223fd8884d865b07dd9f8def858f9e6c
2023-03-19 08:27:17.018 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wiz_rgbww_tunable_fc62c6_power to device af6c454da82ebdcbb7ddbfb5d1385735
2023-03-19 08:27:17.093 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.bathroom_speaker_energy to device 761d262f8b590f782a27dd584ff637fb
2023-03-19 08:27:17.096 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.alexa_s_room_clock_energy to device 8c9dfe14bbd101349babf126578eb029
2023-03-19 08:27:17.097 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wiz_rgbww_tunable_f36281_energy to device d4aa78dec06d13bb0f9888cc5dc2fbc9
2023-03-19 08:27:17.098 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.living_room_speaker_energy to device 7ddd54fc805a7b572a50988530140563
2023-03-19 08:27:17.102 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.main_bulb_energy to device 223fd8884d865b07dd9f8def858f9e6c
2023-03-19 08:27:17.105 DEBUG (MainThread) [custom_components.powercalc.sensors.abstract] Binding sensor.wiz_rgbww_tunable_fc62c6_energy to device af6c454da82ebdcbb7ddbfb5d1385735
2023-03-19 08:27:17.542 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wiz_rgbww_tunable_fc62c6: State changed to "off". Power:0.26
2023-03-19 08:27:17.695 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.alexa_s_room_clock: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.729 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.alexa_s_room_clock: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.733 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.living_room_speaker: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.764 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.living_room_speaker: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.817 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.alexa_s_room_clock: State changed to "off". Power:2.51
2023-03-19 08:27:17.833 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.living_room_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:17.854 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.bathroom_speaker: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.863 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.alexa_s_room_clock: State changed to "off". Power:2.51
2023-03-19 08:27:17.881 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.bathroom_speaker: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:17.901 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.living_room_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:17.930 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.bathroom_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:17.999 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.bathroom_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:18.050 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform dlna_dmr is taking over 10 seconds.
2023-03-19 08:27:18.790 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wiz_rgbww_tunable_f36281: State changed to "off". Power:0.33
2023-03-19 08:27:27.579 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Mirror' for wiz integration not ready yet: 192.168.1.65: The request to the bulb timed out; Retrying in background
2023-03-19 08:27:27.582 WARNING (MainThread) [homeassistant.config_entries] Config entry 'WiZ Socket A1732F' for wiz integration not ready yet: 192.168.1.87: The request to the bulb timed out; Retrying in background
2023-03-19 08:27:27.584 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Main Bulb' for wiz integration not ready yet: 192.168.1.93: The request to the bulb timed out; Retrying in background
2023-03-19 08:27:27.586 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Heater' for wiz integration not ready yet: 192.168.1.88: The request to the bulb timed out; Retrying in background
2023-03-19 08:27:27.588 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Right Bedside' for wiz integration not ready yet: 192.168.1.98: The request to the bulb timed out; Retrying in background
2023-03-19 08:27:28.298 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.bathroom_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:28.311 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.alexa_s_room_clock: State changed to "off". Power:2.51
2023-03-19 08:27:28.312 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wiz_rgbww_tunable_f36281: State changed to "off". Power:0.33
2023-03-19 08:27:28.318 DEBUG (MainThread) [custom_components.powercalc.sensors.power] media_player.living_room_speaker: State changed to "off". Power:1.65
2023-03-19 08:27:28.319 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.main_bulb: Source entity has an invalid state, setting power sensor to unavailable
2023-03-19 08:27:28.319 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wiz_rgbww_tunable_fc62c6: State changed to "off". Power:0.26
2023-03-19 08:27:28.321 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.main_bulb: Source entity has an invalid state, setting power sensor to unavailable

Diagnostics dump or YAML config

No response

bramstroker commented 1 year ago

Which entity (id) is the problematic one?

SkyDev125 commented 1 year ago

wiz_rgbww_tunable_f36281

bramstroker commented 1 year ago

You should check the logs for errors after switching the light. Looking at the logs this is only just after startup, I don't see any issues there.

2023-03-19 08:27:28.312 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.wiz_rgbww_tunable_f36281: State changed to "off". Power:0.33

This indicates the light was initially off after startup and powercalc set the power sensor to 0.33 Watt.

You should see a similar line after turning the light on / changing brightness.

SkyDev125 commented 1 year ago

Logger: custom_components.powercalc.strategy.lut Source: custom_components/powercalc/strategy/lut.py:124 Integration: Powercalc (documentation, issues) First occurred: 4:34:01 PM (1 occurrences) Last logged: 4:34:01 PM

light.wiz_rgbww_tunable_f36281: Lookup table not found (model: SHRGBW, color_mode: brightness

bramstroker commented 1 year ago

Could you check supported_color_modes attribute for your light in developer tools?

SkyDev125 commented 1 year ago
on | min_color_temp_kelvin: 2202 max_color_temp_kelvin: 6535 min_mireds: 153 max_mireds: 454 effect_list: Ocean, Romance, Sunset, Party, Fireplace, Cozy, Forest, Pastel Colors, Wake up, Bedtime, Warm White, Daylight, Cool white, Night light, Focus, Relax, True colors, TV time, Plantgrowth, Spring, Summer, Fall, Deepdive, Jungle, Mojito, Club, Christmas, Halloween, Candlelight, Golden white, Pulse, Steampunk, Rhythm supported_color_modes: color_temp, rgbww friendly_name: Main Bulb supported_features: 4 color_mode: brightness brightness: 255 effect: Daylight -- | --
SkyDev125 commented 1 year ago

well, I changed the light's colour, and now it reports a wattage. Then changed it back to daylight and it seems to be working now? this is very weird

bramstroker commented 1 year ago

Definitely a problem with the wiz integration. supported_color_modes: color_temp color_mode: brightness

It indicates that the only supported color_mode color_temp, but somehow it sets the light color_mode to brightness. Not much I can do in powercalc for this as the wiz integration messes things up.

Would be a good idea to report this at HA issues tracker when you are able to reproduce this again.

bramstroker commented 1 year ago

https://github.com/home-assistant/core/issues/84965

SkyDev125 commented 1 year ago

I'll keep an eye out, Thank you for helping me troubleshoot this.

bramstroker commented 1 year ago

Closing this issue. Hopefully for you the color mode stays at color_temp now and does not return to brightness each time.