hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.39k stars 84 forks source link

Sensors not publishing stats to mqtt #1054

Closed tablatronix closed 3 months ago

tablatronix commented 3 months ago

Homebridge UniFi Protect Version

v6.20.0

Homebridge Platform and OS

docker debian rpi 4

Homebridge Version

v1.7.0

Node Version

v18.16.0

UniFi OS Version

v3.2.12

UniFi Protect Controller Version

v3.0.26

Describe the problem

So I am following back up, I removed any sensor get requests, and I was right sensor data is never published. Oddly there is no logging of updates, but I see the updates in homekit and accessories.

1052

Homebridge HBUP JSON configuration

{
    "controllers": [
        {
            "address": "192.168.100.1",
            "mqttTopic": "unifi/protect",
            "mqttUrl": "mqtt://192.168.100.17",
            "overrideAddress": "192.168.100.1",
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Enable.Doorbell.Trigger.74ACB9550C85",
        "Enable.Nvr.SystemInfo.74ACB9550C85",
        "Enable.Nvr.Service.Playlist.74ACB9550C85.10110",
        "Enable.Log.Motion",
        "Enable.Motion.Duration.10",
        "Enable.Motion.OccupancySensor",
        "Enable.Nvr.SystemInfo",
        "Enable.Device.SyncName.F4E2C6F60564",
        "Enable.Device.SyncName.9C05D63EF008",
        "Enable.Device.SyncName.9C05D63EF095"
    ],
    "verboseFfmpeg": false,
    "platform": "UniFi Protect"
}

Relevant log output

homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Turdnet [UDM-PRO]: Discovered camera: Front Yard [G3 Flex] (address: 192.168.100.213 mac: 7483C23F72B6).
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Turdnet [UDM-PRO]: Discovered sensor: Protect Sensor:0564 [UP Sense] (mac: F4E2C6F60564).
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Turdnet [UDM-PRO]: Discovered sensor: Protect Sensor:F095 [UP Sense] (mac: 9C05D63EF095).
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Turdnet [UDM-PRO]: Discovered sensor: Protect Sensor:F008 [UP Sense] (mac: 9C05D63EF008).
hom

homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] G3 Mini B [G3 Instant]: Enabling occupancy sensor.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Front Yard [G3 Flex]: Enabling occupancy sensor.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:0564 [UP Sense]: Syncing Protect device name to HomeKit.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:0564 [UP Sense]: Alarm no longer detected.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:0564 [UP Sense]: Enabling occupancy sensor.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:0564 [UP Sense]: Enabled sensors: alarm sound, ambient light, humidity, motion sensor, temperature.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:F095 [UP Sense]: Syncing Protect device name to HomeKit.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:F095 [UP Sense]: Enabled sensors: ambient light, humidity, temperature.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:F008 [UP Sense]: Syncing Protect device name to HomeKit.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:F008 [UP Sense]: Enabling occupancy sensor.
homebridge          | [4/2/2024, 7:11:31 PM] [UniFi Protect] Protect Sensor:F008 [UP Sense]: Enabled sensors: ambient light, humidity, motion sensor, temperature.


### Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

- [X] I acknowledge that I am not running any early access / beta firmwares or operating systems from either Ubiquiti or Apple.
tablatronix commented 3 months ago

3.0.26 is RC, please keep open, I would like to help debug what is going on here. I am also a developer.

tablatronix commented 3 months ago

Screenshot 2024-04-02 at 8 42 13 PM

Running for over an hour, no auto updates to stats, motion and occupancy do seem to trigger

accessories ARE receiving updates Screenshot 2024-04-02 at 7 39 31 PM

hjdhjd commented 3 months ago

Sorry - I don’t support non-production releases., as stated. Closing this. I’ll look into this in the current production firmware as well. You are welcome to downgrade to the prior version of HBUP as well and see if it helps.

hjdhjd commented 3 months ago

This will be addressed in the next release. I’ve been able to recreate the issue. Thanks for the report.

github-actions[bot] commented 3 months ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.