How to get LocalTuya working with LedVance
Since I keep forgetting: a blog post to guide my future self
My ledvance is linked / configured in their app, so I did that first
Get LocalTuya with HACS

Reboot, add integration

Check ‘Do not configure a Cloud API account’ and click submit

Click the cog & add a new device

Run the key retriever in a quick little temporary docker
docker run -it --rm python:3.10-slim bash -c 'apt-get update -qq && apt-get install -y -qq wget > /dev/null 2>&1 && wget -qO /tmp/repo.zip https://github.com/FlagX/ha-ledvance-tuya-resync-localkey/archive/refs/heads/main.zip && python -m zipfile -e /tmp/repo.zip /app && cd /app/ha-ledvance-tuya-resync-localkey-main && pip install -r requirements.txt && python print-local-keys.py'

Throw in your credentials and it will spit out the info you need


