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

BLE Lights not functioning correctly #1578

Closed
Krispkiwi opened this issue Jan 30, 2024 · 1 comment
Closed

BLE Lights not functioning correctly #1578

Krispkiwi opened this issue Jan 30, 2024 · 1 comment

Comments

@Krispkiwi
Copy link

Krispkiwi commented Jan 30, 2024

Describe the bug
The BLE Solar lights have stopped working, the toggle button automatically shifts back to what it was before you pressed the toggle although the device itself doesn't go back to that state resulting in the device staying on or staying off depending on the state changed it to.

To Reproduce
Adding the BLE device then toggling

Expected behavior
The toggle should turn the device on and off correction

Additional context
This is a new problem, it seems to pick up the correct state after a reload but then the problem persists.

If the bug involves a device, then please include device diagnostics from
Settings / Devices & Services / Tuya Local (your device) / "1 device"
config_entry-tuya_local-de3531e93dc2fe7547d7de798da4607d.json.txt

Please check if there are messages from Tuya Local in the Home
Assistant log (Settings / System / Logs), and include those too.

A few errors/warning exist in the logs:

Error 1:

Solar Light 1 receive loop terminated by exception 'dict' object is not callable
Traceback (most recent call last):
File "/config/custom_components/tuya_local/device.py", line 212, in receive_loop
entity.on_receive(poll)
File "/config/custom_components/tuya_local/event.py", line 63, in on_receive
self.extra_state_attributes(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'dict' object is not callable

Logger: custom_components.tuya_local.helpers.config
Source: custom_components/tuya_local/helpers/config.py:46
Integration: Tuya Local (documentation, issues)
First occurred: 5:13:14 PM (4 occurrences)
Last logged: 6:59:51 PM

The use of binary_sensor for Solar garden light is deprecated and should be replaced by event_motion.

If applicable, add screenshots to help explain your problem.
https://youtu.be/eBOWIVZSuFU

@Krispkiwi Krispkiwi added the bug Something isn't working label Jan 30, 2024
make-all added a commit that referenced this issue Jan 30, 2024
extra_state_attributes is a cached_property, not a function call.

Issue #1578
@make-all
Copy link
Owner

Thanks for the report, it is a bug in the new event entity.

@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Jan 30, 2024
@make-all make-all removed bug Something isn't working awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Feb 9, 2024
@make-all make-all closed this as completed Feb 9, 2024
timlaing pushed a commit to timlaing/tuya-local that referenced this issue Aug 8, 2024
extra_state_attributes is a cached_property, not a function call.

Issue make-all#1578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants