bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
958 stars 252 forks source link

OFF consumption > min ON consumption with TRADFRI bulb E27 WS globe 1055lm (LED2201G8) #2276

Closed devildant closed 4 months ago

devildant commented 4 months ago

System Health details

System Information

version core-2024.5.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.28-haos-raspi
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1395 Downloaded Repositories | 11 HACS Data | ok
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 | Home Assistant OS 12.3 -- | -- update_channel | stable supervisor_version | supervisor-2024.05.1 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 234.0 GB disk_used | 17.9 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.14.0), File editor (5.8.0), Mosquitto broker (6.4.1), ArgonOne Active Cooling (30a), Zigbee2MQTT (1.38.0-1), ZigStar TI CC2652P/P7 FW Flasher (0.4.0), Samba Backup (5.2.0)
Dashboards dashboards | 6 -- | -- resources | 5 views | 16 mode | storage
Recorder oldest_recorder_run | 27 mai 2024 à 01:43 -- | -- current_recorder_run | 3 juin 2024 à 04:10 estimated_db_size | 457.00 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

Hello,

when my bulb is off, power calc tells me 0.19w, and when it is on at minimum power calc tells me 0.18w

Reproduction steps

1. 2. 3. ...

Debug logs

2024-06-03 05:21:07.804 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_2: State changed to "on". Power:0.18
2024-06-03 05:21:11.382 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_3: State changed to "off". Power:0.19
2024-06-03 05:21:11.392 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_1: State changed to "off". Power:0.19
2024-06-03 05:21:11.401 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_2: State changed to "off". Power:0.19
2024-06-03 05:21:11.416 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_4: State changed to "off". Power:0.19
2024-06-03 05:21:17.016 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_2: Looking up power usage for bri:255 mired:250
2024-06-03 05:21:17.016 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_2: Calculated power:7.0099999999999997868371792719699442386627197265625
2024-06-03 05:21:17.016 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_2: State changed to "on". Power:7.01
2024-06-03 05:21:17.032 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_4: Looking up power usage for bri:255 mired:250
2024-06-03 05:21:17.032 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_4: Calculated power:7.0099999999999997868371792719699442386627197265625
2024-06-03 05:21:17.033 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_4: State changed to "on". Power:7.01
2024-06-03 05:21:17.060 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_3: Looking up power usage for bri:255 mired:250
2024-06-03 05:21:17.060 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_3: Calculated power:7.0099999999999997868371792719699442386627197265625
2024-06-03 05:21:17.060 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_3: State changed to "on". Power:7.01
2024-06-03 05:21:17.070 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_1: Looking up power usage for bri:255 mired:250
2024-06-03 05:21:17.070 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_1: Calculated power:7.0099999999999997868371792719699442386627197265625
2024-06-03 05:21:17.070 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_1: State changed to "on". Power:7.01
2024-06-03 05:21:17.709 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_1: Looking up power usage for bri:1 mired:250
2024-06-03 05:21:17.709 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_1: Calculated power:0.179999999999999993338661852249060757458209991455078125
2024-06-03 05:21:17.709 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_1: State changed to "on". Power:0.18
2024-06-03 05:21:17.766 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_3: Looking up power usage for bri:1 mired:250
2024-06-03 05:21:17.766 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_3: Calculated power:0.179999999999999993338661852249060757458209991455078125
2024-06-03 05:21:17.766 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_3: State changed to "on". Power:0.18
2024-06-03 05:21:17.791 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_2: Looking up power usage for bri:1 mired:250
2024-06-03 05:21:17.792 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_2: Calculated power:0.179999999999999993338661852249060757458209991455078125
2024-06-03 05:21:17.792 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_2: State changed to "on". Power:0.18
2024-06-03 05:21:17.803 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_4: Looking up power usage for bri:1 mired:250
2024-06-03 05:21:17.803 DEBUG (MainThread) [custom_components.powercalc.strategy.lut] light.ampoule_salon_4: Calculated power:0.179999999999999993338661852249060757458209991455078125
2024-06-03 05:21:17.803 DEBUG (MainThread) [custom_components.powercalc.sensors.power] light.ampoule_salon_4: State changed to "on". Power:0.18

Diagnostics dump or YAML config

No response

bramstroker commented 4 months ago

This are minor measuring fluctuations and to be expected. Probably power at standby would be somewhere between 0.18 and 0.20 watt. Similar for lowest brightness level. When measurement session is redone, it could be that standby power would get 0.19 at that time or maybe 0.17.

Powercalc will give you a good indication of approximate power estimation, but it's no exact science. Energy calculated will be within max few % of real usage.