Install
openclaw skills install fully-local-tuya-light-control-skill-lsc-connect-app-devicesControl local LSC/Tuya lamps and groups to turn on/off, set brightness, colors, white modes, query status, or onboard after repair or network changes.
openclaw skills install fully-local-tuya-light-control-skill-lsc-connect-app-devicesThis skill may be installed outside the Tuya project directory, so do not assume the project root is relative to this SKILL.md.
Use these default project locations first:
C:\Users\1111\.openclaw\workspace\tuya-lights%USERPROFILE%\.openclaw\workspace\tuya-lights~/src/tuya-lightsIf the local installation uses a different location, adjust this SKILL.md to match the actual project path.
Prefer the Go CLI variant:
lampctl.exelampctlUse Python only as fallback when the CLI binary is not available.
tuya_lamps.jsonlampctl.exe (Windows) or lampctl (Linux/Android)lamp_control.pytuya_test_lamp.pyKEY_EXTRACTION.mdONBOARDING.mdWindows PowerShell / CMD (ohne cd, direkt mit .):
.\lampctl.exe stehlampe on
.\lampctl.exe stehlampe brightness --value 50
.\lampctl.exe stehlampe color --value rot
.\lampctl.exe kitchen off
.\lampctl.exe all off
.\lampctl.exe vorzimmer on
# Linux / Android / Termux (mit cd)
cd ~/src/tuya-lights && lampctl stehlampe on
cd ~/src/tuya-lights && lampctl stehlampe brightness --value 50
cd ~/src/tuya-lights && lampctl stehlampe color --value red
cd ~/src/tuya-lights && lampctl küche off
cd ~/src/tuya-lights && lampctl all off
cd ~/src/tuya-lights && lampctl vorzimmer on
# Python fallback only if CLI is unavailable
python lamp_control.py stehlampe on
an -> onaus -> off50% -> brightness --value 50rot/blau/grün/... -> color --value <name>warmweiß -> warmwhitekaltweiß -> coldwhitealle Lampen -> group allVorzimmer -> group vorzimmerIf a lamp was repaired, re-paired, or moved to another network, assume the local_key may have changed. Read KEY_EXTRACTION.md and ONBOARDING.md, refresh the key, test with the preferred CLI first (lampctl <lamp> status), then use tuya_test_lamp.py --probe if Python fallback is needed, and finally update tuya_lamps.json.
This skill intentionally prefers explicit standard project paths so it can still work after being copied into a separate OpenClaw skills directory. If a local installation uses a different layout, update this SKILL.md so the binary and project paths match that environment.
kitchenlivingroom_floorvorzimmer1vorzimmer2vorzimmer3vorzimmer4allvorzimmerlampctl discover
C:\Users\1111\.openclaw\workspace\tuya-lights\lampctl.exe" stehlampe off