Schlauer-Hax / homebridge-iobroker

Apache License 2.0
6 stars 0 forks source link

Bad json created out of UI #2

Open elmocito opened 2 years ago

elmocito commented 2 years ago

Describe The Bug: When adding a new device through the UI the json gets messed up, see below. I am aware that the json should look differently 😉

To Reproduce:

Expected behavior: Receiving data from ioBroker

Logs: [3/16/2022, 8:52:56 AM] [homebridge-iobroker2] Error connecting to IoBroker: socket hang up [3/16/2022, 8:52:56 AM] [homebridge-iobroker2] Retrying in 5 seconds... Try: 2 [3/16/2022, 8:53:01 AM] [homebridge-iobroker2] Error connecting to IoBroker: socket hang up [3/16/2022, 8:53:01 AM] [homebridge-iobroker2] Retrying in 5 seconds... Try: 3 [3/16/2022, 8:53:06 AM] [homebridge-iobroker2] Error connecting to IoBroker: socket hang up [3/16/2022, 8:53:06 AM] [homebridge-iobroker2] Retrying in 5 seconds... Try: 4 [3/16/2022, 8:53:11 AM] [homebridge-iobroker2] Error connecting to IoBroker: socket hang up [3/16/2022, 8:53:11 AM] [homebridge-iobroker2] Retrying in 5 seconds... Try: 5 [3/16/2022, 8:53:16 AM] [homebridge-iobroker2] Error connecting to IoBroker: socket hang up [3/16/2022, 8:53:16 AM] [homebridge-iobroker2] Could not connect to IoBroker. Aborting.

Plugin Config: { "url": "192.168.99.9", "port": 8081, "devices": [ { "name": "helios.0.Betriebsart", "onstate": "0" } ], "platform": "IoBroker", "_bridge": { "username": "0E:00:2A:81:C3:43", "port": 50610 }

Screenshots:

image

Environment:

Schlauer-Hax commented 2 years ago

I don't really see a problem there. The device seems to be added correctly and the url and the port looks good. Could you please further describe the issue you have?

elmocito commented 2 years ago

It is really strange. As soon as I add the plugin the homebridge gets into a loop and it is not starting. (tried to add it as a child bridge)

image

When I am adding the plugin regularly it it not finding anything at all 🤷🏻‍♂️ Almost impossible to describe the bug 😩

Schlauer-Hax commented 2 years ago

Ohh, so its not really the config that is part of the problem it is the response the module gets from the iobroker api. Can you open your api url with /get/helios.0.Betriebsart at the end? I think the api returns no JSON