Supereg / homebridge-http-switch

Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
ISC License
218 stars 36 forks source link

[homebridge-http-switch] This plugin slows down Homebridge #91

Closed fire1ce closed 3 years ago

fire1ce commented 3 years ago

Describe the bug [homebridge-http-switch] This plugin slows down Homebridge. The read handler for the characteristic 'On' was slow to respond! See https://git.io/JtMGR for more info.

To Reproduce Steps to reproduce the behavior: Use the latest Plugin

Version (output of npm list -g homebridge homebridge-http-switch) homebridge@1.3.4 homebridge-http-switch@0.5.34

Configuration

{
    "bridge": {
        "name": "Homebridge",
        "username": "--",
        "port": 51674,
        "pin": "--"
    },
    "accessories": [
        {
            "accessory": "HTTP-SWITCH",
            "name": "MagicMirror",
            "pullInterval": 60000,
            "switchType": "stateful",
            "onUrl": "http://mmm.3os.re:55888/on",
            "offUrl": "http://mmm.3os.re:55888/off",
            "statusUrl": "http://mmm.3os.re:55888/status"
        },
        {
            "accessory": "HTTP-SWITCH",
            "name": "officeStation",
            "pullInterval": 15000,
            "switchType": "stateful",
            "onUrl": "http://port.3os.re:55888/on",
            "offUrl": "http://port.3os.re:55888/off",
            "statusUrl": "http://port.3os.re:55888/status"
        },
        {
            "name": "Hank",
            "ip": "192.168.100.180",
            "token": "--",
            "waterBox": false,
            "silent": true,
            "pause": false,
            "pauseWord": "pause",
            "findMe": true,
            "findMeWord": "where are you",
            "dock": true,
            "cleanword": "cleaning",
            "roomTimeout": 0,
            "autoroom": true,
            "accessory": "XiaomiRoborockVacuum"
        },
        {
            "name": "goodNight_virtialSwitch",
            "stateful": false,
            "reverse": false,
            "time": 5000,
            "resettable": false,
            "accessory": "DummySwitch"
        },
        {
            "accessory": "DummySwitch",
            "name": "turnOff__virtialSwitch",
            "time": 5000
        },
        {
            "accessory": "DummySwitch",
            "name": "turnOn__virtialSwitch",
            "time": 5000
        },
        {
            "name": "Motion",
            "stateful": false,
            "reverse": false,
            "time": 120000,
            "resettable": true,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 7002,
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "c",
            "platform": "config"
        },
        {
            "name": "Google Smart Home",
            "token": "--",
            "platform": "google-smarthome"
        },
        {
            "accessories": [
                {
                    "name": "Nvidia Shield",
                    "ip": "192.168.100.72",
                    "interval": 3000,
                    "backbutton": "KEYCODE_BACK",
                    "playpausebutton": "KEYCODE_MEDIA_PLAY_PAUSE",
                    "infobutton": "KEYCODE_HOME"
                }
            ],
            "platform": "HomebridgeADB"
        },
        {
            "name": "Switcher Platform",
            "debug": false,
            "secondsToRemove": 0,
            "platform": "SwitcherPlatform"
        }
    ]
}
fire1ce commented 3 years ago

duplicate sorry