Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 0.5.1 caused disassociation of all Insteon devices #274

Closed
ctgreybeard opened this issue Jul 20, 2022 · 3 comments
Closed

Upgrade to 0.5.1 caused disassociation of all Insteon devices #274

ctgreybeard opened this issue Jul 20, 2022 · 3 comments
Labels

Comments

@ctgreybeard
Copy link

Describe The Bug:
When I upgraded to 0.5.1 all of the associations (Rooms, Scenes, Automations) of the Insteon devices were lost. Luckily I had gathered that info prior to the upgrade and was able to rebuild it.

To Reproduce:
Upgrade to 0.5.1

Expected behavior:
All scenes, rooms, and automations should remain the same.

Logs:

N/A?

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 1581",
        "username": "xx:xx:xx",
        "port": 51036,
        "pin": "xxx-xx-xxxx",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "platform": "AutomationSwitches",
            "name": "AutomationSwitches",
            "switches": [
                {
                    "type": "switch",
                    "name": "isSummer",
                    "stored": true,
                    "default": false
                },
                {
                    "type": "switch",
                    "name": "isChristmas",
                    "stored": true,
                    "default": false
                },
                {
                    "type": "switch",
                    "name": "onVacation",
                    "stored": true,
                    "default": false
                }
            ]
        },
        {
            "name": "CameraUI",
            "port": 8081,
            "atHomeSwitch": false,
            "logLevel": "info",
            "mqtt": {
                "active": false,
                "tls": false,
                "port": 1883
            },
            "http": {
                "active": false,
                "port": 7272,
                "localhttp": false
            },
            "smtp": {
                "active": false,
                "port": 2727,
                "space_replace": "+"
            },
            "ftp": {
                "active": false,
                "useFile": false,
                "port": 5050
            },
            "ssl": {
                "active": false
            },
            "options": {
                "videoProcessor": "/var/lib/homebridge/node_modules/homebridge-camera-ui/node_modules/ffmpeg-for-homebridge/ffmpeg"
            },
            "cameras": [
                {
                    "name": "Driveway",
                    "manufacturer": "Wyze",
                    "model": "Wyz Pan Cam",
                    "serialNumber": "WW44",
                    "motion": false,
                    "motionTimeout": 15,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": false,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://xxx/live",
                        "rtspTransport": "tcp",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 1080,
                        "maxFPS": 15,
                        "maxBitrate": 16,
                        "forceMax": true,
                        "vcodec": "copy",
                        "acodec": "libfdk_aac",
                        "audio": false,
                        "subSource": "-i rtsp://xxx/live",
                        "stillImageSource": "-i rtsp://xxx/live"
                    },
                    "smtp": {
                        "email": "Driveway"
                    },
                    "videoanalysis": {
                        "active": false
                    },
                    "mqtt": {}
                },
                {
                    "name": "Front Camera",
                    "manufacturer": "AMCREST",
                    "model": "IP4M",
                    "serialNumber": "zzz",
                    "motion": false,
                    "motionTimeout": 15,
                    "unbridge": true,
                    "hsv": true,
                    "prebuffering": false,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://xxx/cam/realmonitor?channel=1&subtype=0",
                        "subSource": "-i rtsp://xxx/cam/realmonitor?channel=1&subtype=1",
                        "stillImageSource": "-i http://xxx/cgi-bin/snapshot.cgi?chn=1",
                        "rtspTransport": "tcp",
                        "maxStreams": 2,
                        "maxWidth": 2688,
                        "maxHeight": 1520,
                        "maxFPS": 30,
                        "maxBitrate": 2048,
                        "vcodec": "copy",
                        "acodec": "libfdk_aac",
                        "packetSize": 1316,
                        "audio": false,
                        "debug": false
                    },
                    "smtp": {
                        "email": "Front Camera"
                    },
                    "videoanalysis": {
                        "active": false
                    },
                    "mqtt": {}
                },
                {
                    "disable": true,
                    "name": "ESP-Roamer",
                    "manufacturer": "ESP32",
                    "model": "Esp32-cam",
                    "serialNumber": "44",
                    "motion": false,
                    "motionTimeout": 15,
                    "unbridge": true,
                    "hsv": false,
                    "prebuffering": false,
                    "prebufferLength": 4,
                    "videoConfig": {
                        "source": "-i rtsp://xxx/mjpeg/1",
                        "subSource": "-i rtsp://xxx/mjpeg/1",
                        "stillImageSource": "-i rtsp://xxx/mjpeg/1",
                        "maxStreams": 2,
                        "vcodec": "copy",
                        "acodec": "libfdk_aac",
                        "audio": false
                    },
                    "smtp": {
                        "email": "ESP-Roamer"
                    },
                    "videoanalysis": {
                        "active": true
                    },
                    "mqtt": {}
                }
            ],
            "platform": "CameraUI"
        },
        {
            "name": "InsteonLocal",
            "host": "/dev/ttyUSB0",
            "port": "25105",
            "model": "2413",
            "refresh": "3600",
            "server_port": "3000",
            "keepAlive": "3600",
            "devices": [
                {
                    "name": "Dining Room Light",
                    "deviceID": "0D2AFC",
                    "dimmable": "yes",
                    "deviceType": "dimmer",
                    "controllers": [
                        "0B6799",
                        "0B5DFA"
                    ]
                },
                {
                    "name": "Entryway Light",
                    "deviceID": "4116AA",
                    "dimmable": "yes",
                    "deviceType": "lightbulb"
                },
                {
                    "name": "Driveway Pole",
                    "deviceID": "4FE554",
                    "dimmable": "no",
                    "deviceType": "switch"
                },
                {
                    "name": "Deck Main",
                    "deviceID": "0B5DC6",
                    "dimmable": "yes",
                    "deviceType": "dimmer"
                },
                {
                    "name": "Family Room Bath",
                    "deviceID": "0D16C4",
                    "dimmable": "yes",
                    "deviceType": "dimmer"
                },
                {
                    "name": "Family Room Main",
                    "deviceID": "0D2E89",
                    "dimmable": "yes",
                    "deviceType": "dimmer"
                },
                {
                    "name": "Master Bedroom Main",
                    "deviceID": "301035",
                    "dimmable": "no",
                    "deviceType": "switch"
                },
                {
                    "name": "Front Door",
                    "deviceID": "0C8222",
                    "dimmable": "no",
                    "deviceType": "switch"
                },
                {
                    "name": "Upstairs Hall",
                    "deviceID": "0B737B",
                    "dimmable": "yes",
                    "deviceType": "dimmer"
                },
                {
                    "name": "Living Room Main",
                    "deviceID": "0C80F7",
                    "dimmable": "no",
                    "deviceType": "switch",
                    "controllers": [
                        "0C8382"
                    ]
                },
                {
                    "name": "Main Bath",
                    "deviceID": "0D3158",
                    "dimmable": "yes",
                    "deviceType": "dimmer",
                    "ontrollers": [
                        "0D1005"
                    ]
                }
            ],
            "platform": "InsteonLocal"
        },
        {
            "units": "us",
            "interval": 10,
            "stations": [
                {
                    "nameNow": "BethelWU",
                    "service": "weatherunderground",
                    "key": "zzz",
                    "stationId": "sss",
                    "language": "en",
                    "compatibility": "both",
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false
                },
                {
                    "nameNow": "BethelDS",
                    "service": "darksky",
                    "key": "zzz",
                    "language": "en",
                    "compatibility": "both",
                    "conditionCategory": "simple",
                    "now": true,
                    "extraHumidity": false,
                    "locationGeo": [
                        99.386611,
                        -99.389575
                    ]
                }
            ],
            "platform": "WeatherPlus"
        },
        {
            "email": "xx@xx.com",
            "password": "zzz",
            "platform": "myQ"
        }
    ]
}

Screenshots:
N/A

Environment:

  • Plugin Version:
  • Homebridge Version: 1.5.0
  • Node.js Version: 16.16.0
  • NPM Version: ?
  • Operating System: Raspbian
@zzack1
Copy link

zzack1 commented Jul 20, 2022

I too had this problem, is there anyway to automatticly fix it? I have spent several days on automations on apple home.

@kuestess
Copy link
Owner

@ctgreybeard @zzack1 This is an unfortunate side-effect of moving from the old 'static' platform to the more modern dynamic platform. I've dealt with this quite a lot while refactoring the platform, so I'd kinda become used to it. Apologies, I should have warned people in advance (its a one-time only thing). I'll add a note to the readme.

@ctgreybeard
Copy link
Author

I thought that might be the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants