-
Notifications
You must be signed in to change notification settings - Fork 92
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
Siren trigger not working #641
Comments
Could you please enable debug logs and post the log here? |
Hi! Thank you for a quick reply. _2024-07-23 20:30:09.265 DEBUG (SyncWorker_25) [custom_components.tapo_control] [pytapo] New request: |
Thank you, 2 more questions:
|
Hi! Sure! 2: Yes. But there is no "click here and trigger the siren". I played with the app and i believe the app requires two things to trigger a siren alert.
In my testing i turned the motion detection ON and then the alarm ON. After moving in front of the camera the siren rang. |
I checked the logs, there is nothing different about it that I can see that would help me determine whether the camera supports the trigger or not. Officially it is not supported on any cameras, but it does work on some. Please download https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/tree/5.6.1 manually, it should behave similarly, but now go to disabled state for a while once clicked and throw a nicer meaningful error message. @biopixen Please let me know if it works and I can release this. |
Hi @biopixen any luck testing this? |
HI @JurajNyiri back from an extended vacation. Unfortunately i had to return the camera and am not able to continue the testing and verification. Thank you again for your support and commitment to solving the issue. |
Issue still exists on C225 by TP-Link Firmware: 1.0.29 Build 240522 Rel.74568n Failed to perform the action siren/turn_on. argument of type 'bool' is not iterable |
@IzzIsHOr make sure to update to the latest version and post full error message please from logs |
I get the same error as @IzzIsHOr - "Failed to perform the action siren/turn_on. argument of type 'bool' is not iterable". On Version 5.6.1 Log shows:
Removing the line
gives me the error:
To make sure, I manually tested the alarm in the Tapo App and seems to work fine. Changing the Alarm Type in the App changes the Siren Type correctly in Home Assistant. I have a similar issue with my C120 (1.1.15 Build 240516 Rel.68711n). |
Same error here, all details below: Core 2024.8.3 Logs:
Siren enabled from Tap App working OK. Regards. |
Could you please confirm if for the affected cameras, there is a button in Tapo app that triggers the siren? Not sets the alarm or schedule etc (there are other entities for that), but actually when clicked, sounds the siren. We definitely need to fix the error to be nicer and fix is rather simple, but if there is a way to trigger it we should implement that as well. |
Should be fixed in https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.6.2 . |
Siren no longer works for my C210. It used to work perfectly fine. I have already tried downgrading the integration version but doesn't seem to work. |
That works as expected. Read #713 (comment) |
Description
When installed and configured in Home Assistant
Core 2024.7.3
Supervisor 2024.06.2
Operating System 12.4
Frontend 20240710.0
Running Tapo: Cameras Control version 5.5.4
Clicking the Siren Button generates the following errormessage: Failed to call service siren/turn_on. argument of type 'bool' is not iterable
No Siren noise is heard.
Reproduction Steps
1: Go to Settings
2: Click in Devices & services
3: Click on Tapo: Cameras Control
4: Click on the device
5: Click on the toggle button to the right of the Siren icon under Controls
Expected behavior
Expected the sirent to start from the camera.
If applicable, add error logs.
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 15:59:09 (8 occurrences)
Last logged: 16:30:27
[139916973195472] Unexpected exception
[139916777598992] Unexpected exception
[139916775776336] Unexpected exception
[139917640346800] Unexpected exception
[139916861052320] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/siren/init.py", line 121, in async_handle_turn_on_service
await siren.async_turn_on(
File "/config/custom_components/tapo_control/siren.py", line 115, in async_turn_on
if result_has_error(result) and result_has_error(result2):
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tapo_control/siren.py", line 174, in result_has_error
"result" in result
TypeError: argument of type 'bool' is not iterable
Device Firmware
1.0.4 Build 230901 Rel.66926n
Integration Version
5.5.4
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
Running on a Dedicated Linux Laptop
Search for similar issues
Yes
Additional information
Developer Tools
Tapo_C225_D8AB Siren | off | friendly_name: Tapo_C225_D8AB Siren supported_features: 19I have tried Reconfigured the device and enabled Webhooks but with same result and errormessage.
The text was updated successfully, but these errors were encountered: