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
73.71k stars 30.84k forks source link

Missing my PTZ feature in RLC-1224A cameras (Reolink integration) #99082

Closed marcomsousa closed 1 year ago

marcomsousa commented 1 year ago

The problem

I have installed the Reolink integration with my RLC-1224A camera. I was expected to have the PTZ feature available in HA, but I don't have them.

RLC-1224A Reolink Firmware: v3.1.0.2174_23050816

Home Assistant 2023.8.4 Supervisor 2023.08.1 Operating System 10.5 Frontend 20230802.1 - latest

What version of Home Assistant Core has the issue?

core-2023.8.4

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

023-08-26 11:41:20.780 INFO (MainThread) [homeassistant.setup] Setting up reolink 2023-08-26 11:41:20.781 INFO (MainThread) [homeassistant.setup] Setup of domain reolink took 0.0 seconds 2023-08-26 11:41:23.921 DEBUG (MainThread) [homeassistant.components.reolink.host] Registered webhook: reolink_ec71db701178_ONVIF 2023-08-26 11:41:24.517 DEBUG (MainThread) [homeassistant.components.reolink.host] Host 192.168.15.152: subscribed successfully to webhook http://192.168.15.115:8123/api/webhook/reolink_ec71db701178_ONVIF 2023-08-26 11:41:24.518 DEBUG (MainThread) [homeassistant.components.reolink.host] Waiting for initial ONVIF state on webhook 'http://192.168.15.115:8123/api/webhook/reolink_ec71db701178_ONVIF' 2023-08-26 11:41:25.033 DEBUG (MainThread) [homeassistant.components.reolink.host] Webhook 'reolink_ec71db701178_ONVIF' called 2023-08-26 11:41:25.050 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, Motion: False 2023-08-26 11:41:25.051 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, FaceDetect: False 2023-08-26 11:41:25.051 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, PeopleDetect: False 2023-08-26 11:41:25.051 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, VehicleDetect: False 2023-08-26 11:41:25.051 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, DogCatDetect: False 2023-08-26 11:41:25.052 INFO (MainThread) [reolink_aio.api] Reolink Camera1 ONVIF event channel 0, MotionAlarm: False 2023-08-26 11:41:25.074 DEBUG (MainThread) [homeassistant.components.reolink.host] Host 192.168.15.152:443 should renew push subscription in: 898 seconds 2023-08-26 11:41:25.074 DEBUG (MainThread) [homeassistant.components.reolink] Finished fetching reolink.Camera1 data in 0.548 seconds (success: True) 2023-08-26 11:41:29.160 DEBUG (MainThread) [homeassistant.components.reolink] Finished fetching reolink.Camera1.firmware data in 4.632 seconds (success: True) 2023-08-26 11:41:29.178 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.reolink 2023-08-26 11:41:29.189 INFO (MainThread) [homeassistant.components.button] Setting up button.reolink 2023-08-26 11:41:29.192 INFO (MainThread) [homeassistant.components.camera] Setting up camera.reolink 2023-08-26 11:41:29.199 INFO (MainThread) [homeassistant.components.light] Setting up light.reolink 2023-08-26 11:41:29.208 INFO (MainThread) [homeassistant.components.number] Setting up number.reolink 2023-08-26 11:41:29.215 INFO (MainThread) [homeassistant.components.select] Setting up select.reolink 2023-08-26 11:41:29.232 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.reolink 2023-08-26 11:41:29.237 INFO (MainThread) [homeassistant.components.siren] Setting up siren.reolink 2023-08-26 11:41:29.249 INFO (MainThread) [homeassistant.components.switch] Setting up switch.reolink 2023-08-26 11:41:29.252 INFO (MainThread) [homeassistant.components.update] Setting up update.reolink

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 1 year 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.

(message by CodeOwnersMention)


reolink documentation reolink source (message by IssueLinks)

starkillerOG commented 1 year ago

Please turn on debug logging, restart the reolink integration, wait 3 minutes and turn off debug logging and post the .txt log file here.

I can then see why the PTZ buttons are not beeing added.

marcomsousa commented 1 year ago

Hi I already attach the debug logs for reolink integration, isn't enough?

Do you need the whole HA debug logs?

El sáb, 26 ago 2023, 15:15, starkillerOG @.***> escribió:

Please turn on debug logging, restart the reolink integration, wait 3 minutes and turn off debug logging and post the .txt log file here.

I can then see why the PTZ buttons are not beeing added.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/99082#issuecomment-1694350455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIPG2L46IVQ23BBN2JFH23XXIAI5ANCNFSM6AAAAAA37OIYBU . You are receiving this because you authored the thread.Message ID: @.***>

starkillerOG commented 1 year ago

It does not include the reolink_aio debug. Please go to settings->devices->reolink and click the enable debug logging button

starkillerOG commented 1 year ago

Once you stop the debuging from the uI it will automatically download the .txt file I need.

marcomsousa commented 1 year ago

Debug file

starkillerOG commented 1 year ago

Still the reolink_aio logs are missing. You are probably using yaml configuration to enable debug logging: don't. Do it through the UI. Please read this https://www.home-assistant.io/docs/configuration/troubleshooting/#enabling-debug-logging

I am looking for the GetAbility response from your camera.

marcomsousa commented 1 year ago

That's true.

I was using

logger:
   default: info
   logs:
     # log level for reolink integration
     homeassistant.components.reolink: debug 

Getting debug info through the integration feature

marcomsousa commented 1 year ago

I see private information in the logs. I am sending the GetAbility from the logs. Please take a look if it's enough. Thanks! GetAbility.txt

marcomsousa commented 1 year ago
{
      "cmd" : "GetDevInfo",
      "code" : 0,
      "value" : {
         "DevInfo" : {
            "B485" : 0,
            "IOInputNum" : 0,
            "IOOutputNum" : 0,
            "audioNum" : 1,
            "buildDay" : "build 23050816",
            "cfgVer" : "v3.1.0.0",
            "channelNum" : 1,
            "detail" : "IPC_523D8128M12MPS18E1W01100000",
            "diskNum" : 1,
            "exactType" : "IPC",
            "firmVer" : "v3.1.0.2174_23050816",
            "frameworkVer" : 1,
            "hardVer" : "IPC_523D8128M12MP",
            "model" : "RLC-1224A",
            "name" : "Camera1",
            "pakSuffix" : "pak,paks",
            "serial" : "1107XXXXXXX",
            "type" : "IPC",
            "wifi" : 0
         }
      }
   }
marcomsousa commented 1 year ago

I just found out that this camera doesn't have PTZ motor, only can be moved by hand.

marcomsousa commented 1 year ago

close it

starkillerOG commented 1 year ago
                  "ptzType" : {
                     "permit" : 0,
                     "ver" : 0
                  },

and

                  "ptzCtrl" : {
                     "permit" : 0,
                     "ver" : 0
                  },

Indeed seem to indicate PTZ control is not supported through the API (no motors). That was what I was looking for.

Good you already figured out the camera indeed does not have PTZ motors. Hope the rest of the integration is working well for you!

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.