Skip to content

Fix KL42x/KL43x light strips: use lightStrip module for light state - #117

Merged
piekstra merged 1 commit into
mainfrom
fix/kl-light-strip-module
Aug 13, 2026
Merged

Fix KL42x/KL43x light strips: use lightStrip module for light state#117
piekstra merged 1 commit into
mainfrom
fix/kl-light-strip-module

Conversation

@piekstra

Copy link
Copy Markdown
Owner

Summary

KL420L5/KL430 light-state commands were sent to smartlife.iot.smartbulb.lightingservice / transition_light_state, which these devices reject with err_code -2001 ("module not support"). They respond to smartlife.iot.lightStrip / set_light_state.

Affects power_on/power_off/toggle, get_light_state/set_light_state, set_brightness/set_color/set_color_temp on both classes.

Verification

  • Verified against a live KL420L5(US): get_light_state and set_light_state (on_off 0/1) succeed through the lightStrip module; the smartbulb module returns -2001. KL430 is inferred from the shared hardware family (its tests were wiremock-only before this change too).
  • 16 device-type tests updated and passing.

Suggest releasing as v5.2.1 — downstream, tplinkcloud-service's bulb toggle depends on it.

The smartbulb lightingservice module returns err_code -2001 ('module not
support') on these devices; they respond to smartlife.iot.lightStrip with
set_light_state. Verified against a live KL420L5(US): get_light_state and
set_light_state (on_off 0/1) both succeed, transition_light_state via the
smartbulb module does not.

@piekstra-dev piekstra-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated PR Review

Reviewed commit: d0770420452c
Profile: reviewer - Posting as: piekstra-dev

Summary

Reviewer Findings
python:implementation 0

Reviewer Coverage

  • python:implementation — complete (broad); skipped: none; constraints: git diff against the base SHA was blocked by tool approval; review is based on the full current file contents of the three assigned files rather than a line-level diff.
Inspected files (3)
  • tests/test_device_types.py
  • tplinkcloud/kl420l5.py
  • tplinkcloud/kl430.py

0 PR discussion threads considered. 0 summarized; 0 resolved.


Completed in 1m 25s | $0.59 | claude-sonnet-5 | cr 0.10.286
Field Value
Model claude-sonnet-5
Reviewers python:implementation
Engine claude_cli · claude-sonnet-5
Reviewed by cr · piekstra-dev
Duration 1m 25s wall · 1m 21s compute
Cost $0.59
Tokens 38 in / 5.3k out

Per-workstream usage

  • orchestrator-selection — claude-sonnet-5
    • In: 6
    • Out: 891
    • Cache read: 66.0k
    • Cache create: 15.3k
    • Cost: $0.13
    • Duration: 15s
  • python:implementation — claude-sonnet-5
    • In: 26
    • Out: 4.1k
    • Cache read: 432.8k
    • Cache create: 22.7k
    • Cost: $0.33
    • Duration: 55s
  • orchestrator-rollup — claude-sonnet-5
    • In: 6
    • Out: 357
    • Cache read: 80.3k
    • Cache create: 17.5k
    • Cost: $0.13
    • Duration: 9s

@piekstra
piekstra merged commit e2e15cc into main Aug 13, 2026
5 checks passed
@piekstra
piekstra deleted the fix/kl-light-strip-module branch August 13, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants