PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

Some lights are not working #113

Closed marcotini closed 6 years ago

marcotini commented 7 years ago

I don't know why, even restarting Homebridge or Domoticz. Even deleting the folder persist and accesories nothing change (sometimes one light work, sometimes another one not working).

Here some screenshot: https://imgur.com/a/JKihf

PatchworkBoy commented 6 years ago

The screenshots tell us nothing. Please post your config.json, and output from json.htm?type=devices

marcotini commented 6 years ago

I know that’s sound odd but it’s happen randomly, so if I delete persist folfer and than re-add Homebridge to Home’s app, maybe that light turn avaliable and another are incompatibile.

PatchworkBoy commented 6 years ago

Please post your config.json, and output from json.htm?type=devices

marcotini commented 6 years ago
{
    "bridge": {
            "name": "Homebridge",
            "username": "AA:BB:11:22:33:44",
            "port": 1234,
            "pin": "123-45-678"
        },

    "description": "This is an example configuration file with one fake accessory and one fake platform.",

    "platforms": [{
        "platform": "eDomoticz",
        "name": "eDomoticz",
        "server": "127.0.0.1",
        "port": "8080",
        "ssl": 0,
                "roomid": 0,
        "mqtt": {
            "host": "127.0.0.1",
            "port": 1883,
            "topic": "domoticz/out",
            "username": "user",
            "password": "pass"
        }
    }]
}

And this is the dummy light that at the moment not work (but it should). The other times was one of the Yeelight and sometimes the Hue white.

{
   "ActTime" : 1517591502,
   "AstrTwilightEnd" : "19:18",
   "AstrTwilightStart" : "06:07",
   "CivTwilightEnd" : "18:09",
   "CivTwilightStart" : "07:16",
   "DayLength" : "09:51",
   "NautTwilightEnd" : "18:44",
   "NautTwilightStart" : "06:41",
   "ServerTime" : "2018-02-02 18:11:42",
   "SunAtSouth" : "12:42",
   "Sunrise" : "07:47",
   "Sunset" : "17:38",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 0,
         "Data" : "Off",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 20,
         "HardwareName" : "Dummy",
         "HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
         "HardwareTypeVal" : 15,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "00014143",
         "Image" : "Light",
         "IsSubDevice" : false,
         "LastUpdate" : "2017-12-23 20:02:07",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 100,
         "Name" : "TV",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "Off",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "Switch",
         "SwitchType" : "On/Off",
         "SwitchTypeVal" : 0,
         "Timers" : "false",
         "Type" : "Light/Switch",
         "TypeImg" : "lightbulb",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "243"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
marcotini commented 6 years ago

And if you want all json.htm?type=devices it's not possible, I have over 140 devices.

Edit I think that this is the problem:

Issues pairing to Homebridge when you have a lot of Domoticz sensors...

If you have more than 100 devices in Domoticz, you need to limit the number of devices exposed to HomeKit (HomeKit only supports 100 Accessories on a single bridge - whilst we could combine multiple sensors into a single homekit accessory within the plugin, the possible combinations out there are endless, so we won't).

But it's strange that at random some light are not working, now I try to select every device that I need on HomeKit.

PatchworkBoy commented 6 years ago

Yes that IS the problem. 100 devices max per instance of homebridge as per documentation.

marcotini commented 6 years ago

Ok it's not for the 100 device because now I have 50 and some lights are not working.

PatchworkBoy commented 6 years ago

Mosquitto installed & MQTT client hardware added in Domoticz?