home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.05k stars 30.18k forks source link

Siren stop to work at Reolink RLC-811A #121259

Closed grfernandes54 closed 2 months ago

grfernandes54 commented 3 months ago

The problem

@starkillerOG I have 7 reolink RLC-811A for some reason at only 2 I'm not able to activate the siren using Home Assistant, at others 5 it works well.

I don't know how to collect the logs showing that in one camera is work and what the error present in the other camera, I glad to collect if you give me instructions

What version of Home Assistant Core has the issue?

core-2024.7.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Reolink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/reolink

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @starkillerog, mind taking a look at this issue as it has been labeled with an integration (reolink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `reolink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign reolink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


reolink documentation reolink source (message by IssueLinks)

grfernandes54 commented 3 months ago

home-assistant_reolink_2024-07-04T22-14-43.870Z.log

This is the file that I generate using integration debug mode. The camara that did not working is named Garagem

starkillerOG commented 2 months ago

This seems to be related to https://github.com/home-assistant/core/issues/118185.

Did you try power cycling the RLC811A?

Could you provide the diagnostic info of the Garagem that does not work and also a diagnostic info of one of your other RLC811A cams that does work?

See https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics for instructions.

grfernandes54 commented 2 months ago

Hello

I've power off the POE swich whee the cameras are connected and power using POE

I attached the diagonostic files.

Garagem and Churrasqueira are the cameras that siren is not working

Portao Interno is the camera that siren is working

config_entry-reolink-ec257cec93fc63f83210b45c10ad0084.json config_entry-reolink-12ca680984298ac4b1d78927f2fc2c38.json config_entry-reolink-8693f5acdb5212fda783718f92ff2cd2.json home-assistant_reolink_2024-07-12T17-57-16.954Z.log

please, let me know if you need any addtional information

Regar

grfernandes54 commented 2 months ago

Something that I noted is

the hardware version of the cameras that having problem is IPC_560B158MP, all cameras that has the hardware version IPC_523128M8MP did not have issues with siren

starkillerOG commented 2 months ago

@grfernandes54 thank you for the diagnostics files. This confirms what I expected, the problem is with the RLC-811A cams with a diffrent hardware version that are running a diffrent new firmware version.

The problem seems identical to https://github.com/home-assistant/core/issues/118185, and indicates a firmware bug in the most recent Reolink firmware.

I will talk with my Reolink contact and see if I can have this firmware bug resolved and a new firmware version published.

Could you please also contact Reolink support, explain the issue and ask if they can fix the [{'cmd': 'AudioAlarmPlay', 'action': 0, 'param': {'alarm_mode': 'manul', 'manual_switch': 1, 'channel': 0}}] command? https://support.reolink.com/requests/

1 last thing you could try is remove the "channel": 0 from the command. Would you be able to run this python script:

import logging
import asyncio
from reolink_aio import api

_LOGGER = logging.getLogger(__name__)
logging.basicConfig(level="DEBUG")

IP = '192.168.1.FILL_THIS_IN'
username = 'FILL_THIS_IN'
password = 'FILL_THIS_IN'

async def asyncio_demo(loop):
    host = api.Host(host=IP, username=username, password=password)

    body = [
        {
            "cmd": "AudioAlarmPlay",
            "action": 0,
            "param": {
                "alarm_mode": "manul",
                "manual_switch": 1,
            },
        }
    ]

    print(await host.send(body))

    await host.logout()

if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    loop.run_until_complete(asyncio_demo(loop))
grfernandes54 commented 2 months ago

@starkillerOG , thanks for the explanation.

I've open a request at reolink support as requested

for running the script I got the following error

from reolink_aio import api Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'reolink_aio'

francescocarzaniga commented 2 months ago

@starkillerOG I can confirm the report, it's also started happening to me after upgrading to the firmware v3.1.0.3485_2405084342 (coming from v3.1.0.28xx if I remember correctly). It worked with the earlier firmware. If I set the duration then the siren sounds, but I cannot turn it off from either HA or the app.

starkillerOG commented 2 months ago

I discussed this issue with the Reolink firmware engineers and they have found (and solved) the bug in the firmware. The next firmware update of the camera will solve this issue. I myself have also confirmed this issue on my Reolink CX810 on latest firmware. It is a quite wide-spread issue accros all models in the latest firmware versions.

You can contact reolink support to get beta firmware for your camera model, the bug should be solved in the beta firmware.

Since this issue is a duplicate of https://github.com/home-assistant/core/issues/118185 and now confirmed to be caused by the same firmware bug, I will close this issue. Please respond with additional info in the linked issue (will keep that one open untill the new firmware versions are released and the issue is gone).

If you appreciate the reolink integration and want to support its development, please consider sponsering the upstream library or purchase Reolink products through this affiliate link.