Skip to content

Fix local DPS command handling - #1

Open
Fips6888 wants to merge 1 commit into
buggedcom:mainfrom
Fips6888:fix/local-control-dps
Open

Fix local DPS command handling#1
Fips6888 wants to merge 1 commit into
buggedcom:mainfrom
Fips6888:fix/local-control-dps

Conversation

@Fips6888

@Fips6888 Fips6888 commented Aug 25, 2026

Copy link
Copy Markdown

Problem

Local control from Home Assistant did not actuate LEDVANCE/Tuya lights or plugs. The Home Assistant state changed optimistically, then reverted after refresh.

State updates from the LEDVANCE app were received correctly.

Cause

_send_local() passes a DPS dictionary such as {"1": false} to TinyTuya's set_status() method.

set_status() expects a boolean state, while set_multiple_values() is designed for DPS dictionaries.

Fix

Replace:

result = device.set_status(dps_dict, nowait=False)

with:

result = device.set_multiple_values(dps_dict, nowait=False)

Tested

Tested successfully with multiple LEDVANCE lights and smart plugs on Home Assistant 2026.8.3.

After restarting Home Assistant:

  • Lights and plugs can be switched from Home Assistant
  • Physical devices respond correctly
  • State changes are reflected in the LEDVANCE app

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.

1 participant