hoobs-org / HOOBS

Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
https://hoobs.org
GNU General Public License v3.0
551 stars 51 forks source link

3.3.4 update broken homekit rooms/automation accessories #1149

Closed themick4u closed 3 years ago

themick4u commented 3 years ago

Description A clear and concise description of what the bug is.

After upgrade, restart, all accessories dump into Homekit room "Living Room" and every accessory is removed from all automations (the accessories and automations that are served thru HOOBs )

Version Please include the version of HOOBS you are using. 3.3.4

Did you upgrade Please let us know if you upgraded from a previous version.

Pervious version If you upgraded, please let us know your previous version. 3.3.3

Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1? Did you perform an upgrade from HOOBS 2.1.1? Some things are different.

What device are you using? Please let us know the device you are running HOOBS on.

If this is a custom install, what's your operating system? Please let us know what operating system and version you are using. Ex. Fedora 30 or macOS Catalina.

List your plugins Please include a list of the plugins you are using. We need to be able to find it on NPM. If the plugin is no published, please include a link to the repository.

Post your config This can be found in the interface, Configuration -> Advanced or you can get it via SSH cat ~/.hoobs/etc/config.json

{
    "server": {
        "port": 8080,
        "autostart": 0,
        "home_setup_id": "xxx",
        "polling_seconds": 2,
        "origin": "*"
    },
    "client": {
        "default_route": "status",
        "inactive_logoff": 60,
        "theme": "hoobs-dark",
        "locale": "en",
        "temp_units": "fahrenheit",
        "country_code": "US",
        "postal_code": "xxxxx"
    },
    "bridge": {
        "name": "HOOBS",
        "username": "xxx",
        "port": 51826,
        "pin": "xxx"
    },
    "description": "This file is used for plugin configuration.",
    "ports": {},
    "accessories": [
        {
            "accessory": "DummySwitch",
            "plugin_map": {
                "plugin_name": "homebridge-dummy",
                "index": 0
            },
            "stateful": false,
            "reverse": false,
            "time": 250,
            "name": "UNLOCK Trigger",
            "resettable": false
        },
        {
            "accessory": "DummySwitch",
            "plugin_map": {
                "plugin_name": "homebridge-dummy",
                "index": 0
            },
            "stateful": false,
            "reverse": false,
            "time": 250,
            "name": "LOCK Trigger",
            "resettable": false
        }
    ],
    "platforms": [
        {
            "platform": "Hubitat-MakerAPI",
            "name": "Hubitat",
            "app_url": "http://10.0.0.2/apps/api/33",
            "access_token": "xxx",
            "local_ip": "10.0.0.3",
            "local_port": 20010,
            "polling_seconds": 300,
            "temperature_unit": "F",
            "mode_switches": false,
            "hsm": true,
            "debug": false,
            "logFile": {
                "enabled": true,
                "compress": true,
                "keep": 5,
                "size": "10m"
            },
            "plugin_map": {
                "plugin_name": "homebridge-hubitat-makerapi"
            }
        },
        {
            "platform": "Camera-ffmpeg",
            "plugin_map": {
                "plugin_name": "homebridge-camera-ffmpeg"
            },
            "name": "Camera FFmpeg",
            "cameras": [
                {
                    "name": "Logitech Web-cam",
                    "motion": true,
                    "manufacturer": "Logitech",
                    "model": "USB Webcam",
                    "serialNumber": "1234567890",
                    "videoConfig": {
                        "source": "-re -f v4l2 -input_format yuyv422 -i /dev/video0",
                        "stillImageSource": "-re -f v4l2 -ss 0.9 -i /dev/video0 -vframes 1",
                        "maxStreams": 2,
                        "maxWidth": 640,
                        "maxHeight": 360,
                        "maxFPS": 30,
                        "vcodec": "h264_omx",
                        "debug": false
                    }
                },
                {
                    "name": "WyzeCam Garage",
                    "motion": true,
                    "manufacturer": "Wyze-Cam",
                    "model": "V2",
                    "serialNumber": "xxx",
                    "firmwareRevision": "4.28.4.41",
                    "videoConfig": {
                        "source": "-i rtsp://xxx:Homebridge@10.0.0.7/live",
                        "stillImageSource": "-i rtsp://xxx:Homebridge@10.0.0.7/live -vframes 1 -r 1",
                        "vcodec": "copy",
                        "audio": true,
                        "debug": false
                    }
                }
            ]
        },
        {
            "platform": "TuyaWebPlatform",
            "plugin_map": {
                "plugin_name": "homebridge-tuya-web"
            },
            "name": "TuyaWebPlatform",
            "scenes": false,
            "options": {
                "platform": "tuya",
                "username": "xxx",
                "password": "xxx",
                "countryCode": "1",
                "pollingInterval": 300
            }
        },
        {
            "platform": "Alexa",
            "plugin_map": {
                "plugin_name": "homebridge-alexa"
            },
            "name": "Alexa",
            "routines": true,
            "blind": false,
            "door": true,
            "debug": false,
            "deviceListHandling": "allow",
            "username": "xxx",
            "password": "xxxx",
            "pin": "035-25-125"
        },
        {
            "platform": "myQ",
            "plugin_map": {
                "plugin_name": "homebridge-myq"
            },
            "password": "xxxL",
            "email": "xxxxx",
            "name": "myQ",
            "activeRefreshInterval": 3
        }
    ]
}

Post your log You can get the log from the interface. This is in the Log section.

POST LOG HERE

Additional context Add any other context about the problem here.

LS73 commented 3 years ago

I am having the same issue. Ever time I reboot since upgrading to 3.3.4, everything reverts to settings before I configured them in HomeKit.

e1l52 commented 3 years ago

Same here. Absolute chaos in my HomeKit installation. Device names got lost, lots were assigned to "living room", automations were broken. Took me over 1h to fix all issues. Haven't done a reboot until now.

nrosa2002 commented 3 years ago

Same hear. Chaos

mkellsy commented 3 years ago

V3.3.4 caused corruption in the accessory cache. V3.3.5 fixes this. You may have to delete the accessory cache after upgrading.

rm -fR ~/.hoobs/etc/accessories

Sorry for the inconvenience.

LS73 commented 3 years ago

@mkellsy Is there any other step required after deleting the accessory cache? Or will that do the trick?

mkellsy commented 3 years ago

Restart. That's it.

If that doesn't work, go to Help and reset connection. You will have to re-pair with homekit.

themick4u commented 3 years ago

Thanks Mike! 3.3.5 over my 3.3.3 seems to have done well! I’m trying to remove and reinstall the camera-ffmpeg as I lost access to a couple cameras in my rollback to 3.3.3

Sent from my iPhone

On Mar 15, 2021, at 6:46 PM, Michael Kellsy @.***> wrote:

 V3.3.4 caused corruption in the accessory cache. V3.3.5 fixes this. You may have to delete the accessory cache after upgrading.

rm -fR ~/.hoobs/etc/accessories Sorry for the inconvenience.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mkellsy commented 3 years ago

If you skip 3.3.4, your OK.

themick4u commented 3 years ago

Yep, that's the trick. Thanks again. I'll close this ticket