Skip to content

omBratteng/ha-ledvance-tuya-resync-localkey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ha-ledvance-tuya-resync-localkey

Python script and Pyscript module for Home Assistant to resync local keys from the private Tuya API (works for Ledvance and Sylvania devices).

Features

Requirements

  • Python 3.12 or newer (3.12 confirmed as working)
  • Dependencies listed in pyproject.toml (install with pip, see below)

Setup & Usage

1. Print out your local keys

  1. Create a Python 3 environment

  2. Install dependencies:

    uv sync
  3. Run the script:

    uv run main.py

    You will be prompted for your Ledvance/Tuya username and password.

    • To run non-interactively, set the environment variables LEDVANCE_USERNAME and LEDVANCE_PASSWORD to your account credentials.

2. Use with Home Assistant

License

MIT License. See LICENSE for details.

Credits

Credits to FlagX for the initial script.

About

pyscript for homeassistant to resync local keys from private tuya api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%