ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
248 stars 36 forks source link

Nello One - WiFi Upgarde for your Intercom #79

Closed ramizh closed 5 years ago

ramizh commented 5 years ago

Nello One - macht deine vorhandene Gegensprechanlage WLAN-fähig

Hello all,

Recently I got Nello One which basically connects to most Intercoms brands and types and makes them smart, it is a great device to use for people living in apartment buildings, so you can open the main building door using your phone wherever you are.

Unfortunately, this is not my area of expertise and therefore I cannot develop an adapter on my own but here are some information available online and maybe someone else has this device and has the knowledge and time to make an adapter.

Nello Website (de/en): https://www.nello.io/ Public API: https://nellopublicapi.docs.apiary.io/

Apollon77 commented 5 years ago

On npm homebridge-nello and homebridge-nelloio are available.

Apollon77 commented 5 years ago

Was just a Note dir a Potential Developer where to find some example code for an integration ;-)

ramizh commented 5 years ago

yep, confirms my great knowledge in this! Im gonna go ahead and delete that comment!

Apollon77 commented 5 years ago

No problem ;-))

Apollon77 commented 5 years ago

Homebridge modules exist: homebridge-nello as example.

Please check if the new ioBroker.ham Adapter can help here: see https://forum.iobroker.net/viewtopic.php?f=36&t=14972

ramizh commented 5 years ago

Thanks for your efforts.. I wanted to check it now but after installing the adapter, adding the instance and opening it i get this in the window "File index.html not found". Using Admin 2.0.9

Apollon77 commented 5 years ago

Homebridge Adapter only supports Admin3 (sorry) ... is available in latest repository and will become stable quite soon

ramizh commented 5 years ago

well then time to upgrade, I was afraid to upgrade before but ill backup, upgrade and try it out! Ill let you know how itll work with nello, thanks again!

ramizh commented 5 years ago

Okay so with admin 3 all is good, now im looking at this plugin "https://www.npmjs.com/package/homebridge-nello" So i should simply add a module names "homebridge-nello" adn then replace from"platform" in the code the code on the npm page?

Apollon77 commented 5 years ago

Correct, this should it be.

Important: After entering the module name press enter or tab to get it really in the field :-)

And "code to the code on plugin-npm-page" ... with your changes for sure ...

ramizh commented 5 years ago

I update to version 0.2.3, unfortunately doing what I mentioned above does not create objects. I made sure that the module name is saved as you said. here are the logs. Accessories and platforms are separate correct?

ham.0 2018-06-18 09:11:47.383 info terminating
ham.0 2018-06-18 09:11:47.369 warn Exception: Error: The requested accessory 'Wemo' was not registered by any plugin.
ham.0 2018-06-18 09:11:47.355 info cleaned everything up...
ham.0 2018-06-18 09:11:47.353 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:236:12)
ham.0 2018-06-18 09:11:47.353 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:312:9)
ham.0 2018-06-18 09:11:47.353 error at Socket. (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2249:25)
ham.0 2018-06-18 09:11:47.353 error at adapter.getDevices (/opt/iobroker/node_modules/iobroker.ham/main.js:175:23)
ham.0 2018-06-18 09:11:47.353 error at loadExistingAccessories (/opt/iobroker/node_modules/iobroker.ham/main.js:211:57)
ham.0 2018-06-18 09:11:47.353 error at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:90:23)
ham.0 2018-06-18 09:11:47.353 error at HomebridgeWrapper.init (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper/index.js:176:17)
ham.0 2018-06-18 09:11:47.353 error at Server.run (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper/homebridge/server.js:86:38)
ham.0 2018-06-18 09:11:47.353 error at Server._loadAccessories (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper/homebridge/server.js:284:42)
ham.0 2018-06-18 09:11:47.353 error at API.accessory (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper/homebridge/api.js:64:13)
ham.0 2018-06-18 09:11:47.353 error Error: The requested accessory 'Wemo' was not registered by any plugin.
ham.0 2018-06-18 09:11:47.352 error uncaught exception: The requested accessory 'Wemo' was not registered by any plugin.
ham.0 2018-06-18 09:11:47.300 debug Homebridge Wrapper Bridge constructor
ham.0 2018-06-18 09:11:47.297 debug Homebridge Wrapper Bridge create
ham.0 2018-06-18 09:11:42.799 info starting. Version 0.2.3 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.1
Apollon77 commented 5 years ago

You have configured in the settings a accessory called "wemo" but no plugin was provided. So a) Accessory is wrong b) you did not entered the correct home-bridge plugin name in the config

ramizh commented 5 years ago

aah i left that from the example that was provided. But if I have in my config homebridge-nello and the platform part is correct, it should even though create the nello object, correct? Just to clarify things since im not an expert, accessory and platforms are 2 different things?

ramizh commented 5 years ago

Current Log, still no objects.

ham.0 2018-06-18 09:33:22.174 info Homebridge Wrapper Bridge publish {"username":"FF:FF:FF:FF:FF:FF","port":0,"pincode":"0","category":2}
ham.0 2018-06-18 09:33:22.137 debug Homebridge Wrapper Bridge constructor
ham.0 2018-06-18 09:33:22.134 debug Homebridge Wrapper Bridge create
ham.0 2018-06-18 09:33:17.136 info starting. Version 0.2.3 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.1
Apollon77 commented 5 years ago

Log is too short. Interesting.

So please add screenshots from adapter-konfig, also add how the json-config is looking.

To the question above: Mostly for homebridge-plugins you have either a platform OR an accessory configuration. You should leave the other one empty.

ramizh commented 5 years ago

thank you for taking the time!

ham_1 ham_2

Apollon77 commented 5 years ago

Seems to be correct, but then the Log is incomplete somehow. Please check if at Instances -> Expertmode -> Column Loglevel really "debug" is set for this instance. Then stop adapter, and start again.

Maybe also look into the logfile at /opt/iobroker/logs/ instead of admin :-)

Apollon77 commented 5 years ago

PS: Please update to 0.2.4 of Adapter before sending logs!

ramizh commented 5 years ago

So now logs show more on admin, i compared them with the log file in /opt/iobroker/logs/ and they are identical. Should I open an issue directly on the ham github or keep posting here?

ham.0 2018-06-18 11:49:22.349 info Homebridge Wrapper Bridge publish {"username":"FF:FF:FF:FF:FF:FF","port":0,"pincode":"0","category":2}
ham.0 2018-06-18 11:49:22.313 debug Homebridge Wrapper Bridge constructor
ham.0 2018-06-18 11:49:22.310 debug Homebridge Wrapper Bridge create
ham.0 2018-06-18 11:49:20.641 info └── q@1.1.2
ham.0 2018-06-18 11:49:20.641 info │ └── minimist@0.0.8
ham.0 2018-06-18 11:49:20.641 info ├─┬ mkdirp@0.5.1
ham.0 2018-06-18 11:49:20.641 info └─┬ node-persist@0.0.11
ham.0 2018-06-18 11:49:20.641 info │ └── remove-trailing-separator@1.1.0
ham.0 2018-06-18 11:49:20.641 info │ └─┬ normalize-path@2.1.1
ham.0 2018-06-18 11:49:20.641 info │ ├── get-caller-file@1.0.2
ham.0 2018-06-18 11:49:20.641 info ├─┬ mock-require@3.0.2
ham.0 2018-06-18 11:49:20.641 info ├── decimal.js@7.5.1
ham.0 2018-06-18 11:49:20.641 info │ └── ms@2.0.0
ham.0 2018-06-18 11:49:20.641 info ├─┬ debug@2.6.9
ham.0 2018-06-18 11:49:20.641 info ├── buffer-shims@1.0.0
ham.0 2018-06-18 11:49:20.641 info └─┬ homebridge-plugin-wrapper@0.4.6
ham.0 2018-06-18 11:49:20.641 info │ └── to-array@0.1.4
ham.0 2018-06-18 11:49:20.641 info │ ├── socket.io-parser@3.2.0
ham.0 2018-06-18 11:49:20.641 info │ ├── parseuri@0.0.5
ham.0 2018-06-18 11:49:20.641 info │ │ └── callsite@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ └─┬ better-assert@1.0.2
ham.0 2018-06-18 11:49:20.641 info │ ├─┬ parseqs@0.0.5
ham.0 2018-06-18 11:49:20.641 info │ ├── object-component@0.0.3
ham.0 2018-06-18 11:49:20.641 info │ ├── indexof@0.0.1
ham.0 2018-06-18 11:49:20.641 info │ ├── has-cors@1.1.0
ham.0 2018-06-18 11:49:20.641 info │ │ └── isarray@2.0.1
ham.0 2018-06-18 11:49:20.641 info │ ├─┬ has-binary2@1.0.3
ham.0 2018-06-18 11:49:20.641 info │ │ └── yeast@0.1.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── xmlhttprequest-ssl@1.5.5
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── ultron@1.1.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── async-limiter@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ ws@3.3.3
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── blob@0.0.4
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── arraybuffer.slice@0.0.7
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── after@0.8.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ engine.io-parser@2.1.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── component-inherit@0.0.3
ham.0 2018-06-18 11:49:20.641 info │ ├─┬ engine.io-client@3.2.1
ham.0 2018-06-18 11:49:20.641 info │ ├── debug@3.1.0
ham.0 2018-06-18 11:49:20.641 info │ ├── component-emitter@1.2.1
ham.0 2018-06-18 11:49:20.641 info │ ├── component-bind@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ ├── base64-arraybuffer@0.1.5
ham.0 2018-06-18 11:49:20.641 info │ ├── backo2@1.0.2
ham.0 2018-06-18 11:49:20.641 info │ └─┬ socket.io-client@2.1.1
ham.0 2018-06-18 11:49:20.641 info │ │ └── uuid@3.2.1
ham.0 2018-06-18 11:49:20.641 info │ │ ├── tunnel-agent@0.6.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── punycode@1.4.1
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ tough-cookie@2.3.4
ham.0 2018-06-18 11:49:20.641 info │ │ ├── safe-buffer@5.1.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── qs@6.5.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── performance-now@2.1.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├── oauth-sign@0.8.2
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── mime-db@1.33.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ mime-types@2.1.18
ham.0 2018-06-18 11:49:20.641 info │ │ ├── json-stringify-safe@5.0.1
ham.0 2018-06-18 11:49:20.641 info │ │ ├── isstream@0.1.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── is-typedarray@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── tweetnacl@0.14.5
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── safer-buffer@2.1.2
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── jsbn@0.1.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── getpass@0.1.7
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── ecc-jsbn@0.1.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── dashdash@1.14.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── bcrypt-pbkdf@1.0.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── asn1@0.2.3
ham.0 2018-06-18 11:49:20.641 info │ │ │ └─┬ sshpk@1.14.2
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ └── core-util-is@1.0.2
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ └─┬ verror@1.10.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ ├── json-schema@0.2.3
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ ├── extsprintf@1.3.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├─┬ jsprim@1.4.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├── assert-plus@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ http-signature@1.2.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── har-schema@2.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ └── json-schema-traverse@0.3.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ ├── fast-json-stable-stringify@2.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ ├── fast-deep-equal@1.1.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ │ ├── co@4.6.0
ham.0 2018-06-18 11:49:20.641 info │ │ │ ├─┬ ajv@5.5.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ har-validator@5.0.3
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── asynckit@0.4.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ form-data@2.3.2
ham.0 2018-06-18 11:49:20.641 info │ │ ├── forever-agent@0.6.1
ham.0 2018-06-18 11:49:20.641 info │ │ ├── extend@3.0.1
ham.0 2018-06-18 11:49:20.641 info │ │ │ └── delayed-stream@1.0.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├─┬ combined-stream@1.0.6
ham.0 2018-06-18 11:49:20.641 info │ │ ├── caseless@0.12.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├── aws4@1.7.0
ham.0 2018-06-18 11:49:20.641 info │ │ ├── aws-sign2@0.7.0
ham.0 2018-06-18 11:49:20.641 info │ ├─┬ request@2.87.0
ham.0 2018-06-18 11:49:20.641 info ├─┬ homebridge-nello@0.3.4
ham.0 2018-06-18 11:49:20.641 info iobroker.ham@0.2.4 /opt/iobroker/node_modules/iobroker.ham
ham.0 2018-06-18 11:48:57.481 info npm install homebridge-nello --production --prefix "/opt/iobroker/node_modules/iobroker.ham" (System call)
ham.0 2018-06-18 11:48:54.007 info starting. Version 0.2.4 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.1
ham.0 2018-06-18 11:48:53.917 debug statesDB connected
ham.0 2018-06-18 11:48:53.832 debug objectDB connected
ham.0 2018-06-18 11:48:49.787 info terminating
ham.0 2018-06-18 11:48:49.773 info cleaned everything up...
ham.0 2018-06-18 11:48:45.057 info npm install homebridge-nello --production --prefix "/opt/iobroker/node_modules/iobroker.ham" (System call)
ham.0 2018-06-18 11:48:42.068 info starting. Version 0.2.4 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.1
Apollon77 commented 5 years ago

issue on ham please ... but I still do not understand it ... needs to be way more logs!!!

Please try the following (results then on ham). Stop adapter.

Post logs then that you get on commandline

ramizh commented 5 years ago

well seems that it gave out more different things, here is text file of the rest. should have done this to the above, sorry ham_logs_rh.txt

Apollon77 commented 5 years ago

hui ... can you try DEBUG=homebridge instead of DEBUG=* in front ... it is less then?

Apollon77 commented 5 years ago

And when you check log output with nello you can see:

[6/18/2018, 12:03:46 PM] [nello.io] Error while signing in. Status Code: 401
[6/18/2018, 12:03:46 PM] [nello.io] Error while signing in. Could not get access

Lines seems cutted, maybe you see more in your window directly.

ramizh commented 5 years ago

DEBUG=homebridge instead of DEBUG=* writes nothing out.

the end of the second line after could not get access is: token from response: {"error_description":"Invalid credentials given.","error": "invalid_grant"}

Apollon77 commented 5 years ago

Then you know what to fix :-) credentials are wrong

ramizh commented 5 years ago

but they are not xD also tried with a different account to make sure, this line is not there but still no object created.... on a side note: aside from correct credentials, shouldnt at least the object be created but without being able to control anything?

Apollon77 commented 5 years ago

Hm ... Just to make sure ... you removed the < and > in the username/password field ... ?! so only your username and password in double-quotes (or you owe me some sweets) ...

As long as this error is returned the Plugin do not initialize the Accessouries and so they are empty, so nothing is created.

ramizh commented 5 years ago

Sorry for the late reply, I totally got busy with something else and didnt have the time to test further. On a scale of 10 I might be 11 blind... I totally ignored the " " and though the things go in between the <>. All good! I got the objects and I am testing it now. I will keep you posted. I owe you sweets I guess!!

Apollon77 commented 5 years ago

;)) most important that it works. So an info if it is sufficient that way would be great!

ramizh commented 5 years ago

EDIT: Actually if someone rings, I wont be able to see any notification on ioBroker, so no object reacts to that, and you cannot see who opened the door (as admin). Maybe those features can be implemented if someone develops a dedicated ioBroker adapter.

Okay, well it works somehow, after a while i realised lock_target_state object is supposed to open the door only when you set it to 0, so it doesnt work as a buton. No problem, but when I open it using that I get a notification on my Nello App that "Name of the homebridge-nello" API has opened the door (creepy xD) even though I have set a my own account. All in all, I find it not optimal or maybe a bit weird, but it does the job I guess. Thank you verrrryyyy much for the solution!

Are we also able to add those devices as accessories on Apple Home through ham?

Apollon77 commented 5 years ago

The feedback with the creepy message I would send as feedback to the plugin developer. Maybe he can do something :-)

Ham is some kind of "temporary solution" so that it is possible at all ... optimized is only a own Adapter :-)

Are we also able to add those devices as accessories on Apple Home through ham? Yes. For this you need to install homebridge in global mode and configure it (basically same config but just in a file) and then switch adapter to global mode ... Then the adapter starts that gloabl homebridge (which is punlished as bridge and works with your iOS devices) and ioBroker also gets all the infos

ramizh commented 5 years ago

I am gonna test that as well and let you know!

ramizh commented 5 years ago

Do I have to create those directories on my own? (/usr/local/lib/node_modules/homebridge/ and /home/pi/.homebridge/) and then my config in a text file and put it in the .homebridge?

Or i misunderstood the whole concept (AS USUAL, sorry)

Apollon77 commented 5 years ago

First directory no, automatically there.

You install homebridget globally (npm install -g homebridge), same for the plugins. (just follow https://github.com/nfarina/homebridge#quick-overview)

Then with "npm root -g" you get as output the directory to enter there. And the second directory is the one whewre you placed the config.json in

Vaitage commented 5 years ago

@Apollon77 Ich hätte mal ne Frage.

Ich habe aufgrund der Anleitung (https://www.npmjs.com/package/homebridge-nello) installiert. Kommando per SSH eingegeben für die Homebridge und die config.json entsprechend bespielt.


{
"bridge": {
"name": "Homebridge Pi",
"username": "CC:22:3D:E3:CE:30",
"port": xxx,
"pin": "xxx"
},

"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

"platforms": [{
"platform": "HomeMatic",
"name": "HomeMatic CCU2",
"ccu_ip": "XXX",
"filter_device": [],
"filter_channel": [],
"outlets": [],
"doors": [],
"variables": ["Heizung","Garage1"],
"programs": [],
"accessories": [],
"subsection": "Homekit"
}]
{
    "platforms": [
        {
            "platform" : "NelloPlatform",
            "name" : "nello.io",
            "username": "XXX",
            "password": "XXX",
            "lockTimeout": 5000,
            "locationUpdateInterval": 3600000,
            "exposeReachability": true,
            "doorbell": false,
            "videoDoorbell": false,
            "video": {
                "stream": "-re -i <your-url>",
                "snapshotImage": "http://via.placeholder.com/1280x720",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 30
            },
            "homekitUser": "Home Kit"
        }
    ]
}
}

sobald ich dann das per ./homebridge starte kommt folgender Fehler:

root@ioBroker-RasPi:~# homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[2018-06-27 15:12:31] Loaded plugin: homebridge-homematic
[2018-06-27 15:12:31] Registering platform 'homebridge-homematic.HomeMatic'
[2018-06-27 15:12:31] ---
[2018-06-27 15:12:32] ====================
[2018-06-27 15:12:32] ERROR LOADING PLUGIN homebridge-nello:
[2018-06-27 15:12:32] SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-nello/index.js:131:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[2018-06-27 15:12:32] ====================
[2018-06-27 15:12:32] There was a problem reading your config.json file.
[2018-06-27 15:12:32] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2018-06-27 15:12:32]
/usr/lib/node_modules/homebridge/lib/server.js:197
    throw err;
    ^

SyntaxError: Unexpected token {
    at Object.parse (native)
    at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:191:19)
    at new Server (/usr/lib/node_modules/homebridge/lib/server.js:52:38)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

Habe ich da irgendwo ein Fehler gemacht? Ich bitte um Hilfe :) :+1:

Apollon77 commented 5 years ago

Ja, deine Konfig ist kein valied JSON ...

Das muss bei mehreren Platformen so aussehen:

"platforms": [
{ ...},
{ ...}
]

unter https://jsonlint.com/ kannst du prüfen ob das json valide ist

Vaitage commented 5 years ago

ah super danke, ich probier das mal aus

Vaitage commented 5 years ago

@Apollon77 Eventuell kannst du mir nochmal helfen! mmh, irgendwo liegt noch ein Fehler...


{
    "bridge": {
        "name": "Homebridge Pi",
        "username": "CC:22:3D:E3:CE:30",
        "port": xxx,
        "pin": "xxx"
    },
    "platforms": [{
            "platform": "HomeMatic",
            "name": "HomeMatic CCU2",
            "ccu_ip": "xxx",
            "filter_device": [],
            "filter_channel": [],
            "outlets": [],
            "doors": [],
            "variables": ["Heizung", "Garage1"],
            "programs": [],
            "accessories": [],
            "subsection": "Homekit"
        },
        {
            "platform": "NelloPlatform",
            "name": "nello.io",
            "username": "XXX",
            "password": "XXX",
            "lockTimeout": 5000,
            "locationUpdateInterval": 3600000,
            "exposeReachability": true,
            "doorbell": false,
            "videoDoorbell": false,
            "video": {
                "stream": "-re -i <your-url>",
                "snapshotImage": "http://via.placeholder.com/1280x720",
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 30
            },
            "homekitUser": "Home Kit"
        }
    ]
}

da sagt er Valid JSON Aber wenn ich dann die homebridge starte kommt folgendes:

root@ioBroker-RasPi:~# homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>
[2018-06-27 18:39:36] Loaded plugin: homebridge-homematic
[2018-06-27 18:39:36] Registering platform 'homebridge-homematic.HomeMatic'
[2018-06-27 18:39:36] ---
[2018-06-27 18:39:36] ====================
[2018-06-27 18:39:36] ERROR LOADING PLUGIN homebridge-nello:
[2018-06-27 18:39:36] SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-nello/index.js:131:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[2018-06-27 18:39:36] ====================
[2018-06-27 18:39:36] Loaded config.json with 0 accessories and 2 platforms.
[2018-06-27 18:39:36] ---
[2018-06-27 18:39:36] Loading 2 platforms...
[2018-06-27 18:39:36] [HomeMatic CCU2] Initializing HomeMatic platform...
[2018-06-27 18:39:36] [HomeMatic CCU2] Homematic Plugin Version 0.0.109
[2018-06-27 18:39:36] [HomeMatic CCU2] Plugin by thkl  https://github.com/thkl
[2018-06-27 18:39:36] [HomeMatic CCU2] Homematic is a registered trademark of the EQ-3 AG
[2018-06-27 18:39:36] [HomeMatic CCU2] Please report any issues to https://github.com/thkl/homebridge-homematic/issues
[2018-06-27 18:39:36] [HomeMatic CCU2] running in production mode
[2018-06-27 18:39:36] [HomeMatic CCU2] will connect to your ccu at 192.168.178.99
[2018-06-27 18:39:36] [HomeMatic CCU2] using binrpc for communication with BidCos-RF
[2018-06-27 18:39:36] [HomeMatic CCU2] init RPC for BidCos-RF.
[2018-06-27 18:39:36] [HomeMatic CCU2] local ip used : 192.168.178.33. you may change that with local_ip parameter in config
/usr/lib/node_modules/homebridge/lib/api.js:122
      throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
      ^

Error: The requested platform 'NelloPlatform' was not registered by any plugin.
    at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:122:13)
    at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:284:45)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:80:36)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

Ist das weil in der Config 2 mal "name" steht?

viele grüße Vait

Apollon77 commented 5 years ago

Hast du homebridge-Nello sauber global installiert? Er kann da irgendwas nicht finden/laden oder ein file ist kaputt -nicht unbedingt die konfig

Vaitage commented 5 years ago

@Apollon77 Im grunde habe ich nur den Befehl eingeben als Root Benutzer:

npm install homebridge-nello -g Das ist durchgelaufen und das wars.

root@ioBroker-RasPi:~# npm install homebridge-nello -g
homebridge-nello@0.3.4 /usr/lib/node_modules/homebridge-nello
├── socket.io-client@2.1.1 (to-array@0.1.4, component-emitter@1.2.1, indexof@0.0.1, base64-arraybuffer@0.1.5, component-bind@1.0.0, has-cors@1.1.0, backo2@1.0.2, object-component@0.0.3, has-binary2@1.0.3, socket.io-parser@3.2.0, debug@3.1.0, parseuri@0.0.5, parseqs@0.0.5, engine.io-client@3.2.1)
└── request@2.87.0 (aws-sign2@0.7.0, oauth-sign@0.8.2, tunnel-agent@0.6.0, forever-agent@0.6.1, caseless@0.12.0, is-typedarray@1.0.0, safe-buffer@5.1.2, aws4@1.7.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.1, performance-now@2.1.0, qs@6.5.2, uuid@3.3.0, combined-stream@1.0.6, mime-types@2.1.18, tough-cookie@2.3.4, form-data@2.3.2, http-signature@1.2.0, har-validator@5.0.3)
Apollon77 commented 5 years ago

Keine Ahnung. Versuch doch mal ob es tut wenn due Homematic mal aus der Konfig rausnimmst.

Ansonsten ist es ein Fehler beim Initialisieren vom nello-plugin ... also im zweifel da ein Issue aufmachen

Pantoffelknilch commented 5 years ago

Hallo, ich schließe mich mal an, offenbar scheint ja Deutsch jetzt die Sprache der Wahl zu sein - wenn ich was auf Englisch schreiben soll, bitte melden ;-)

Ich habe den Adapter jetzt so installiert wie hier beschrieben. Es scheint grundsätzlich auch funktioniert zu haben, die hier beschriebenen Fehlermeldungen tauchen nicht auf. Aber es tauchen keine Objekte auf, die ich irgendwie steuern kann. Der Eintrag unter "Objekte" bei ioBroker sieht (komplett ausgeklappt) so aus:

2018-07-21_20h14_29

Der Eintrag, den ich unscharf gemacht habe, ist mein Straßenname. Also das, was bei Nello als Location eingetragen ist. Das Plugin muss sich also erfolgreich zu Nello verbunden haben und irgendwelche Daten abgerufen haben.

Aber müsste an der Stelle bei ioBroker jetzt nicht irgendein Eintrag da sein, den ich steuern kann bzw. dessen Status ich abfragen kann? So weiß ich nicht, was ich damit anfangen sollte. Oder habe ich da irgendwo einen Denkfehler? Wie sieht dieser Eintrag denn bei @ramizh aus?

Apollon77 commented 5 years ago

Dann mal Adapter in loglevel debug schalten und log schicken. (Aber log aus logfile unter /opt/iobroker/log!)

Pantoffelknilch commented 5 years ago

Hi, vielen Dank für die schnelle Reaktion! Bevor ich irgendwas ausprobieren konnte, habe ich den Server aus anderen Gründen neu gestartet. Danach waren plötzlich jede Menge Einträge da. Ich weiß nicht warum, aber im Moment scheint es zu funktionieren. Ich kann jetzt den Nello mit der Homematic-Fernbedienung öffnen. Falls also noch jemand diesen Thread findet und sich dafür interessiert: Ja, es funktioniert :-)

Jens1809 commented 5 years ago

Hi,

da ich seit kurzem auch Nello Besitzer bin würde ich mich anbieten einen Adapter dafür zu erstellen. Vielleicht kann ja jeder der Interesse an dem Adapter hätte mal kurz eine Wunschliste mit Features erstellen. Man denkt ja selbst auch nicht immer an alles :-)

Apollon77 commented 5 years ago

Mach doch im ioBroker Forum ein Thread auf um die Wünsche zu sammeln ?!

Vardaaran commented 5 years ago

Hi,

da ich seit kurzem auch Nello Besitzer bin würde ich mich anbieten einen Adapter dafür zu erstellen. Vielleicht kann ja jeder der Interesse an dem Adapter hätte mal kurz eine Wunschliste mit Features erstellen. Man denkt ja selbst auch nicht immer an alles :-)

Kann ich hier irgendwie helfen? Als Tester o.Ä.? Habe im ioBroker-Forum leider keinen entsprechenden Thread gefunden um mein Angebot zu unterbreiten...

Jens1809 commented 5 years ago

Im Moment gibt es noch nichts zu testen. Ich warte noch darauf dass der ioBroker Cloud Dienst neugestartet wird damit dieser PUT Requests zulässt. Erst danach kann der Adapter funktionieren.

GermanBluefox commented 5 years ago

Tomorrow the cloud should support PUT requests

Vardaaran commented 5 years ago

Im Moment gibt es noch nichts zu testen. Ich warte noch darauf dass der ioBroker Cloud Dienst neugestartet wird damit dieser PUT Requests zulässt. Erst danach kann der Adapter funktionieren.

ok, in diesem Fall bitte gerne bei mir bescheid geben!