kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
119 stars 10 forks source link

Automation not working #107

Open tcarr85 opened 6 months ago

tcarr85 commented 6 months ago

Describe The Bug:

I have an automation that turns "Eyes" on at night and turns "Eyes" off in the morning. I noticed that despite the automation turning the "Eyes" on correctly in the evening, when the automation runs in the morning to turn "Eyes" off, the logs show they turn off, then turn back on. To Reproduce:

Create an automation to turn privacy on at a certain time, and then create another automation to turn privacy off at a certain time. Expected behavior:

I am expecting that when the automation runs to turn on privacy mode, that it will not automatically turn back on despite the automation running Logs:

Show the Homebridge logs here, remove any sensitive information.

[12/15/2023, 8:00:02 AM] [homebridge-tapo-camera] Setting privacy to off [12/15/2023, 8:00:02 AM] [homebridge-tapo-camera] Setting privacy to off [12/15/2023, 8:00:02 AM] [homebridge-tapo-camera] Setting privacy to off [12/15/2023, 8:00:03 AM] [homebridge-tapo-camera] Setting privacy to on [12/15/2023, 8:00:03 AM] [homebridge-tapo-camera] Setting privacy to on

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.
        "cameras": [
            {
                "name": "Cam1",
                "ipAddress": "*****************",
                "password": "**************",
                "streamUser": "*************",
                "streamPassword": "************",
                "debug": false,
                "disableStreaming": true,
                "disableAlarmAccessory": true,
                "disableMotionAccessory": true,
                "privacyAccessoryName": "Cam 1 Privacy"
            },
            {
                "name": "Cam2",
                "ipAddress": "****************",
                "password": "****************",
                "streamUser": "*************",
                "streamPassword": "***********",
                "debug": false,
                "disableStreaming": true,
                "disablePrivacyAccessory": false,
                "disableAlarmAccessory": true,
                "disableMotionAccessory": true,
                "privacyAccessoryName": "Cam 2 Privacy"
            }
        ],
        "_bridge": {
            "username": "0E:7E:47:C7:34:12",
            "port": 43849
        },
        "platform": "tapo-camera"

Screenshots:

Environment: