Skip to content

Commit

Permalink
Turn off light initially before measuring. Some light don't support s…
Browse files Browse the repository at this point in the history
…etting at brightness 1 (#1754)
  • Loading branch information
bramstroker committed Jul 16, 2023
1 parent 1355c18 commit 371b393
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utils/measure/runner/light.py
Expand Up @@ -106,11 +106,7 @@ def run(
csv_writer = CsvWriter(csv_file, self.color_mode, write_header_row)

if resume_at is None:
self.light_controller.change_light_state(
ColorMode.BRIGHTNESS,
on=True,
bri=1,
)
self.light_controller.change_light_state(ColorMode.BRIGHTNESS, on=False)

# Initially wait longer so the smartplug can settle
_LOGGER.info(f"Start taking measurements for color mode: {self.color_mode}")
Expand Down

0 comments on commit 371b393

Please sign in to comment.