Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt changes from more maintained fork #1928

Open
wants to merge 705 commits into
base: master
Choose a base branch
from

Conversation

CloCkWeRX
Copy link

@CloCkWeRX CloCkWeRX commented Feb 5, 2025

Fix #1854
Fix #781

It took about an hour to merge, the only areas that need to be resolved as conflicts are versions, README and some translations.

Most relevant commits are the last 30.

This is @xZetsubou's branch plus a handful of other PRs for this repo.
Running locally for the past few days, a few devices going offline without logs; so TUYA protocol changes probably need to be double checked for merge conflicts.

1x failing test that is a merge conflict most likely.

xZetsubou and others added 30 commits May 27, 2024 00:52
* Loggers prefix will contains the name of the device if has.
* Add warning if sub-device disconnected!.
* Update config_flow.py

* Update cloud_api.py
* Each device object has not it own reconnect task.
* The reconnect task is now awaitable so no duplicates should happen.
* Sub-devices won't reconnect if the device it self isn't connected.
* Each device object has not it own reconnect task.
* The reconnect task is now awaitable so no duplicates should happen.
* Sub-devices won't reconnect if the device it self isn't connected.
…#275

* Fix  socket.send() raised exception.
* Fix the update_interval create multi tasks.
* Adjust the logs to for sub-device and low-power devices.
* Add msg for disconnected function.
* Workaround to fix heartbeat not being. send because update_interval less then 5 secs.
* Handle the fail connection expectations.
* Add device ID and Name in logger when add new device.
* Fix brightness mapping

The minimum brightness value does not create a "range": it is only a limitation, e.g. by device capabilities. The range to be mapped is still (0, maximum). This also maps percentages to equal values between ranges.

* Round Tuya brightness to 10th
* White/color/scene mode switch from Light HA object UI

* Handling extended Effects list in Light UI

* Long string formatting

* Renamed color modes

* Correct name of a scene in Smart Life

* Add color modes to effects dynamically

* black code formatter

---------

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
* Excess warning for low power devices

* black reformat

---------

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
xZetsubou and others added 30 commits February 9, 2025 01:23
* add head and key parser and refactor some codes

* add docstrings

* feat: add remote services to handle manual adding of codes

* Remove the extra zero at start of the key
* Fix typos and improve some sentences in README

* Update README.md

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Update README.md

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Update README.md

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Update README.md

---------

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
* Adjust the sleep time for true periodic events

* Avoid empty offline/online state parsing

* Increased timeout for connect. Named timeout values.

* Named timeout values.

* Apply suggestions from code review

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Black codestyle complain

* Monotonic timers for intervals

* Redundant task

* Faster is_sleep

* tabs -> spaces :(

* Apply suggestions from code review

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>

* Eliminated now useless on_connected

---------

Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
Due to the logic of "_update_handler" if new status updated from device but the status aren't changed from cached one entity "status_updated" won't be called, this adds workaround to override the old cached status.
* fix links

* update events.

* add remote services

* danger -> warning
* add vertical and horizontal swings
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.

Bring on more devs Explore ways to decrease maintenance burden