question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when measuring light

See original GitHub issue

I receive an error when measuring a bulb through HA.

light controller hass
powermeter hass
? Select the color mode?  brightness
? Do you want to generate model.json?  Yes
? Specify the full light model name  IKEA LED1837R5
? Which device (manufacturer, model) do you use to take the measurement?  Fibaro FGWP102
? Do you want to gzip CSV files?  Yes
? Specify the entity_id of your light in HA?  light.guest_room_spot_3
? What is the model_id of your light? for example LWA004  LED1837R5
? Specify the entity_id of your powermeter in HA?  sensor.node_17_power
Measuring standby usage. Waiting for 5 seconds...
Taking sample 0
Start taking measurements for color mode:  brightness
Waiting 10 seconds...
Changing light to:  {'bri': 1}
Taking sample 0
Measured power:  0.6

Changing light to:  {'bri': 2}
Taking sample 0
Taking sample 0
Taking sample 0
Taking sample 0
Taking sample 0
Taking sample 0
Traceback (most recent call last):
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 330, in <module>
    measure.start()
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 121, in start
    power = self.take_power_measurement(variation_start_time)
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 161, in take_power_measurement
    self.take_power_measurement(start_timestamp, retry_count)
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 161, in take_power_measurement
    self.take_power_measurement(start_timestamp, retry_count)
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 161, in take_power_measurement
    self.take_power_measurement(start_timestamp, retry_count)
  [Previous line repeated 2 more times]
  File "/home/magnus/homeassistant-powercalc/utils/measure_v2/measure.py", line 153, in take_power_measurement
    raise OutdatedMeasurementError(
powermeter.errors.OutdatedMeasurementError: Power measurement is outdated. Aborting after 5 retries

Not sure if there is a more dewtailed log I can provide?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
magnusoverlicommented, Sep 13, 2021

Sorted by waiting long enough for fresh measurements.

0reactions
SteffanHcommented, Jan 23, 2022

😆

You don’t happen to recall which parameter ? I’ve set the sleep time to 30 seconds, but it’s still failing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sources of Error in HDRI for Luminance Measurement
Given the errors associated with measuring the luminance of colored surfaces in HDR images, the reference target used to calibrate the final image...
Read more >
How to Correct for Spectral Errors of Popular Light Sources
Light Source Spectral Error SQ‑100X (Original) Correction Factor SQ‑100X... Agro Ceramic Metal Halide ‑0.9 1.01 Apache W LED Coming Soon Coming Soon Blue LED (448nm) 21.2...
Read more >
4 Reasons For Spectrophotometer Measurement Error | Drawell
If the wavelength error is large, the measured value will be inaccurate. The measurement of the spectrophotometer uses the light intensity of ...
Read more >
Typical Causes of Errors During Measuring Luminance ...
Typical Causes of Errors During Measuring Luminance Distributions in Relation to Glare Calculations. Abstract: The number of high luminance light sources ...
Read more >
[PDF] Typical Causes of Errors During Measuring Luminance ...
PDF | On Sep 1, 2018, Sebastian Slominski published Typical Causes of Errors During Measuring Luminance Distributions in Relation to Glare ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found