Git Product home page Git Product logo

homebridge-nefit-easy's People

Contributors

nickmoone avatar robertklep avatar squarefrog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

homebridge-nefit-easy's Issues

werkt niet

ik kan geen temperatuur laden of instellen met de woning. app van apple en ik kon dit voor de update wel ik heb een junker thermostaat

Major issues in setup

Hi Robert,

Ever since the obligation to use child bridges was implemented I have major issues in setting up this plug-in.

After install I fill in the setup document. For some reason, even in my json it is called nefiteasy it is registered as a neiteasyoutdoortemp.
After a homebridge restart, i can toggle a switch to setup a child bridge, but not after a restart of my homebridge.

Then you can select 'brdige settings', and i get a qr-code to add the bridge. Of course after the device is added to my home i click Save, and yes again we need to restart homebridge.

And then, absolutely not earlier, i have to manually change my json config and delete the 'outdoortemp'. Save the json, and again restart homebridge.

When I'm lucky this works the first time. I needed 4 attempts today.

Unfortunately I'm getting better at it, because for some reason my homebridge crashes when /var is full. When is clear that issue and give homebridge a manual restart from command line I need to run the entire setup for all my plugins again. For the best part that's not the worst. Yes it's annoying, but your plug-in is a horror to setup. Why is it this complex?

Plug-in not working after upgrading to version 1.3.0 of homebridge

I have recently upgraded my homebridge to version 1.3.0, after the upgrade i find out that the nefit easy plugin give me some errors.
I have tried to downgrade my homebridge version to an earlier version but the issue remains.

The error logs reports me “This plugin slows down homebridge. The read handler for the characteristic ‘’ didn’t respond at all! Please check that you properly call the callback! See https://git.io/JtMGR for more info.
The ‘
’ is because of different characteristics.
BD97D55C-2825-4698-AD70-AF6EDEF20D79

Nefit easy does not respond

Hi Robert,

Since some time (also before ios12) my thermostat nefit easy gives "no reaction" in my homekit app.

It works before without any problems, i used siri to control the temperature in my home.

I try to reinstall it on my raspberry pi, but without any luck. I checked my config.json file, and there is still the right keys etc in it.

Also other non homekit devices works fine, like my LG tv and my harmony hub.

Do you have any idea what might be the problem?

Thanks
Wilko

help me...

hello, I'm trying to install plugin and when I run homebridge it tells me that I have to register accessory at http://jsonlint.com and validate config.json file.
pi@raspberrypi:~/.homebridge $ homebridge
*** WARNING *** The program 'node' 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=node
*** WARNING *** The program 'node' 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=node&f=DNSServiceRegister
[2017-11-4 19:00:34] Loaded plugin: homebridge-nefit-easy
[2017-11-4 19:00:34] Registering accessory 'homebridge-nefit-easy.NefitEasy'
[2017-11-4 19:00:34] ---
[2017-11-4 19:00:34] There was a problem reading your config.json file.
[2017-11-4 19:00:34] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-11-4 19:00:34]
/usr/lib/node_modules/homebridge/lib/server.js:206
throw err;
^

SyntaxError: Unexpected token . in JSON at position 259
at JSON.parse ()
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:200:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:57:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

Cannot set temperature below 10 degrees Celsius

If the temperature is ever set below 10 degrees Celsius then the console states:

[Nefit Easy Bridge 0122@Heating@Heating@Target Temperature] characteristic was supplied illegal value: number 7 exceeded minimum of 10

In our house, the temperature needs to be set below 10.

Error: POSSIBLE_INVALID_PASSWORD

Hi,

I got a strange thing, i reinstalled my homebridge completly in order to make use of the latest version with the Gui of homebridge.

Installed everything 2 weeks ago without any problems, but i used a sd card of 128GB, which does not make sense.

So today i installed it again using my old 32GB sd card with the latest build 22-02-2022 of the Homebridge image.

This time i did get the below error in the logs.

[homebridge-nefit-easy] This plugin slows down Homebridge. The read handler for the characteristic 'Target Temperature' was slow to respond! See https://git.io/JtMGR for more info.
Error: POSSIBLE_INVALID_PASSWORD
at /usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-core/lib/index.js:218:19
at tryCatcher (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:466:21)
at processImmediate (node:internal/timers:466:21)

And now it does not work anymore.

You would guess that the password in it is wrong. But i had a copy of the config.json file of the build wich worked before, and used the exact same entries.

I also edited the openssl.cnf file with the option to use the old ssl version (which was not set on the previous working build and did work without it)

Maybe i missed something?

Thanks in advance!
Wilko

Buderus KM100 can't connect

HI,

I have a Buderus KM100, as I understand Nefit would be the protocol that should work but what ever I try I can't seem to looking. I tried Variations for logging in.

I tried like this

"accessories": [
{
"accessory": "NefitEasy",
"name": "thermostaat",
"options": {
"serialNumber": "XXX XXX XXX",
"accessKey": "XXX-XXX-XXX-XXX",
"password": "Bosch ID PW also tried Device PW"
}
}
],

I tried like this

"accessories": [
{
"accessory": "NefitEasy",
"name": "thermostaat",
"options": {
"serialNumber": "XXXXXXXXX",
"accessKey": "XXXXXXXXXXXX",
"password": "Bosch ID PW also tried Device PW"
}
}
],

Would be great If somebody can give me some ideas what to do here

Error: MAX_RETRIES_REACHED

The Homebridge Nefit Easy plugin give me this error several times every day now.
All other Homebridge devices are also disconnected after this error. (not responding in Homekit)
Sometimes the devices are reachable again after some time, sometimes the server has to be restarted to solve this.

Can you pls look in to this?

_

Error: MAX_RETRIES_REACHED
at C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\nefit-easy-core\lib\index.js:179:51
at tryCatcher (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:725:18)
at _drainQueueStep (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Install\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:461:21)
Error: MAX_RETRIES_REACHED

_

Problem with json.config

Hi, I have a problem with the config.json file. I get an error that the file is incorrect when starting homebridge. I'm totally new to json programming. What am I doing wrong? Thanks in advance for your help!

image

''Geen reactie''

Hallo Robert!

Fijn dat er nog mensen actief zijn in het maken van scripts!

Ik heb jou script geïnstalleerd in homebridge, in mijn woning app zie ik de thermostaat er netjes bij staan, echter krijg ik de melding geen reactie. Wat ik ook probeer, niets werkt.

Zie onderstaand hoe ik hem ingevuld heb:

        "accessory": "NefitEasy",
        "name": "thermostaat",
        "options": {
            "serialNumber": "***-***-***",
            "accessKey": "****-****-****-****",
            "password": "Rozenburg"

Ik heb het geprobeerd met: _, /, -.

Doe ik nou nog iets fout of niet?

Ik hoop dat je mij kunt helpen.

Tony.

Dependencies fail

Hi,

When installing a lot of dependencies fail. Is it time to update?

fakegato-history support

Hi,

First of all I'm a happy user of your plugin! Thanks for that!

To make it all perfect for my I'd love to see fakegato-history support for this plugin so I can see a nice graph of my living room temperature evolution.

Maybe this can be implemented in a future release?

Thanks in advance!

Eve app refresh rate

Hi,

I have this strange issue that when I check my temperature via home-app it gives me the correct and actual room temperature but when I use my Eve-app (which I use instead of home-app) it doesn't seem to refresh the current temperature often enough to be reliable.

Also in homekit the current temperature is shown on the tile and I can check the requested temperature when pressing on it. In the Eve-app it's the other way around so I can only see my requested temperature while I have to long press the tile to check my current temperature (which obviously isn't current as explained above)

Any ideas on this?

A couple of months ago I also requested fakegato support so I can check a graph of my temperature data in the Eve-app. That would be another great addition to this plugin I really love to use.

Thanks in advance and keep up the great work!

Add tags for Worcester Wave

Hi,

nefit easy is called the Worcester Wave (Worcester Bosch brand) in the UK. It works well with this device, I've been using it in my parents house for a while.

Might be a nice idea to add worcester-wave tags to the repository so that people can find it.

Getting target temperature - undefined

I've setup the config.json file as instructed. The plugin is seemingly running. However, the Home app on my iPhone reports as 'not responding' despite being on the same wifi network and a firewall rule existing to allow all traffic. I'm able to ping from Homebridge server. I've also tried using another port and still no luck. Are you able to help?

I did see #11 but still no luck. Thank you

Output:

pi@raspberrypi:~/.homebridge $ homebridge
[30/12/2018, 18:05:46] Loaded config.json with 1 accessories and 0 platforms.
[30/12/2018, 18:05:46] ---
[30/12/2018, 18:05:46] Plugin /usr/local/lib/node_modules/homebridge-nefit-easy does not contain a package.json.
[30/12/2018, 18:05:47] Loaded plugin: homebridge-nefit-easy
[30/12/2018, 18:05:47] Registering accessory 'homebridge-nefit-easy.NefitEasy'
[30/12/2018, 18:05:47] ---
[30/12/2018, 18:05:48] Loaded plugin: homebridge-tuya
[30/12/2018, 18:05:48] Registering platform 'homebridge-tuya.TuyaPlatform'
[30/12/2018, 18:05:48] ---
[30/12/2018, 18:05:48] Loading 1 accessories...
[30/12/2018, 18:05:48] [thermostaat] Initializing NefitEasy accessory...
Load homebridge-tuya.TuyaPlatform
Setup Payload:
X-HM://XXXXXX
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ XXX-XX-XXX     
└────────────┘     

[30/12/2018, 18:05:48] Homebridge is running on port xxxx.
[30/12/2018, 18:06:18] [thermostaat] Getting target temperature...
[30/12/2018, 18:06:18] [thermostaat] Getting current temperature...
[30/12/2018, 18:06:18] [thermostaat] Getting current state..
undefined
undefined
undefined

HOOBS 9DB6@termostat@termostat@Current Heating Cooling State] The read handler for the characteristic 'Current Heating Cooling State' was slow to respond!

Hi,

I have a Junkers Easy Control CT100 working well with my junkers boiler and connected to Junkers Control App.

Now I am trying to link with HomeKit by using Homebridge and I get the follopiwng messages:

[HOOBS 9DB6@termostat@termostat@Current Heating Cooling State] The read handler for the characteristic 'Current Heating Cooling State' was slow to respond!

[HOOBS 9DB6@termostat@termostat@Current Heating Cooling State] The read handler for the characteristic 'Current Heating Cooling State' didn't respond at all!. Please check that you properly call the callback!

in HomeKit appears in "No respond" state and does not show any temperature.

This is the pluging code used:

{
"accessory": "NefitEasy",
"plugin_map": {
"plugin_name": "homebridge-nefit-easy",
"index": 0
},
"name": "termostat",
"options": {
"serialNumber": "XXX",
"accessKey": "XXX",
"password": "XXX"
}
}

Serialnumber, accesskey and password are the ones that shows the Junkers app control to connect to CT100 thermostat.

I amb using a raspberry pi 4B with Hoobs 3.3.5 with homebridge-nefit-easy v2.2.0

Thanks

Chatty log output

Firstly, thanks for the plugin! Its really handy being able to ask Siri to turn our heating on.

I wonder if you'd be open to a configuration option to reduce the chattiness of the logging? I went to look at my log for another plugin yesterday, and it took a long time to find it as the log was filled with messages like below:

[9/30/2019, 4:49:04 PM] [Thermostat] Getting current temperature...
[9/30/2019, 4:49:05 PM] [Thermostat] ...target temperature is 21
[9/30/2019, 4:49:05 PM] [Thermostat] ...current temperature is 21.1
[9/30/2019, 4:49:05 PM] [Thermostat] ...current state is off
[9/30/2019, 4:50:00 PM] [Thermostat] Getting current state..
[9/30/2019, 4:50:00 PM] [Thermostat] Getting target temperature...
[9/30/2019, 4:50:00 PM] [Thermostat] Getting current temperature...
[9/30/2019, 4:50:01 PM] [Thermostat] ...target temperature is 21
[9/30/2019, 4:50:01 PM] [Thermostat] ...current temperature is 21.1
[9/30/2019, 4:50:01 PM] [Thermostat] ...current state is off
[9/30/2019, 4:50:01 PM] [Thermostat] Getting current state..
[9/30/2019, 4:50:01 PM] [Thermostat] Getting target temperature...
[9/30/2019, 4:50:01 PM] [Thermostat] Getting current temperature...
[9/30/2019, 4:50:02 PM] [Thermostat] ...target temperature is 21
[9/30/2019, 4:50:02 PM] [Thermostat] ...current temperature is 21.1
[9/30/2019, 4:50:02 PM] [Thermostat] ...current state is off

I think a possible approach would be to have a config option in config.json, something like:

"accessories": [
    ...
    {
        "accessory" : "NefitEasy",
        "name"      : "thermostaat",
        "options"   : {
            "serialNumber" : "NEFIT_SERIAL_NUMBER",
            "accessKey"    : "NEFIT_ACCESS_KEY",
            "password"     : "NEFIT_PASSWORD",
            "logging"      : false
        }
    }
]

This would then keep the default verbose logging behaviour, while allowing the rest of us to opt out if needed. Alternatively, my preferred option, would be to disable the vebose logging, and have it opt-in, but I can understand if you'd be unwilling to change this behaviour.

Let me know if you'd be open to a Pull Request, as I'll probably add this functionality for myself in a fork.

Help setting up config.json

i cant get my config.json to be read correctly

i have pasted this into a file called config.json in ~/.homebridge/ (xxxx is redacted)

"accessories": [
	...{
		"accessory": "NefitEasy",
		"name": "thermostaat",
		"options": {
			"serialNumber": "xxxxxxx",
			"accessKey": "xxxx xxxx xxxx xxxx",
			"password": "xxxxxx"
		}
	}
]

this errors out... any help

Target temp 'NaN'

Hoi Robert,

I'm repeatedly (every so often) getting the message:

[9/17/2022, 8:49:52 PM] [homebridge-nefit-easy] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.

Target temp is set to 16 right now, as it's still fair weather in the Netherlands, but it won't be long.

Unable to install 'homebridge-nefit-easy'

When trying to run:

npm i homebridge-nefit-easy -g

Getting the following error:

`(node:19155) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[29/12/2018, 20:16:56] There was a problem reading your config.json file.
[29/12/2018, 20:16:56] Please try pasting your config.json file here to validate it: http://jsonlint.com
[29/12/2018, 20:16:56]
/usr/local/lib/node_modules/homebridge/lib/server.js:214
throw err;
^

SyntaxError: Unexpected token : in JSON at position 13
at JSON.parse ()
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:208:19)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:30:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
pi@raspberrypi:/usr/local/lib/node_modules $ npm i homebridge-nefit-easy -g
(node:19263) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/md5.js/node_modules/safe-buffer'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/md5.js/node_modules/safe-buffer'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/md5.js/node_modules/safe-buffer' }
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/sasl-scram-sha-1/node_modules/create-hash/node_modules/sha.js'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/sasl-scram-sha-1/node_modules/create-hash/node_modules/sha.js'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/sasl-scram-sha-1/node_modules/create-hash/node_modules/sha.js' }
npm ERR! tar.unpack untar error /home/pi/.npm/safe-buffer/5.1.2/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/ws/node_modules/options'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/ws/node_modules/options'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/ws/node_modules/options' }
npm ERR! tar.unpack untar error /home/pi/.npm/ultron/1.0.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/sha.js/2.4.11/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/safe-buffer/5.1.2/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/safe-buffer'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/safe-buffer'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/safe-buffer' }
npm ERR! Error: Method Not Allowed
npm ERR! at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR! at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.14.79-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "homebridge-nefit-easy" "-g"
npm ERR! cwd /usr/local/lib/node_modules
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR! tar.unpack untar error /home/pi/.npm/uuid/3.3.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/aws4/1.8.0/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/qs/6.5.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/isstream/0.1.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/http-signature/1.2.0/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/extend/3.0.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/json-stringify-safe/5.0.1/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/form-data/2.3.3/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/safe-buffer/5.1.2/package.tgz
npm ERR! tar.unpack untar error /home/pi/.npm/tough-cookie/2.4.3/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/performance-now'
npm ERR! error rolling back [email protected] { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/performance-now'
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/node_modules/nefit-easy-core/node_modules/node-xmpp-client/node_modules/request/node_modules/performance-now' }
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/npm-debug.log
npm ERR! not ok code 0`

pi@raspberrypi:~/.homebridge $ node --version
v8.11.1

Unable to use plugin as a result if you can assist? Thanks.

No more responses from Nefit Easy

Since a couple of days I receive no longer data from my Nefit Easy with Homebridge. No errors are reported, it just times out waiting for data. I'm running the latest iOS 10 public beta with the new Apple's own 'Home' app.
However, when I request an update through the Legato EVE app it receives data, which is then also visible in the 'Home' app?!
I only experience this behaviour with the Homebridge-nefit-easy accesory.

HomeBridge quits on error 'tls.convertNPNProtocols is not a function'

Since I installed the latest version (2.1.0) HomeBridge no longer starts, in the logfile I see the following statement:
TypeError: tls.convertNPNProtocols is not a function
followed by
Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Unit entered failed state. Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Failed with result 'exit-code'.

When I remove this plugin HomeBridge works.

Nefit Easy problem

Since 2 days my Homebridge won't get the temperature of my Nefit Easy anymore.
May 30 20:34:00 raspberrypi homebridge[315]: [5/30/2018, 8:34:00 PM] [thermostaat] Getting current temperature...
May 30 20:34:00 raspberrypi homebridge[315]: [5/30/2018, 8:34:00 PM] [thermostaat] Getting target temperature...
May 30 20:34:00 raspberrypi homebridge[315]: undefined
May 30 20:34:00 raspberrypi homebridge[315]: undefined
May 30 20:34:00 raspberrypi homebridge[315]: undefined
May 30 20:34:02 raspberrypi homebridge[315]: [5/30/2018, 8:34:02 PM] [thermostaat] Getting target temperature...
May 30 20:34:02 raspberrypi homebridge[315]: [5/30/2018, 8:34:02 PM] [thermostaat] Getting current state..
May 30 20:34:02 raspberrypi homebridge[315]: [5/30/2018, 8:34:02 PM] [thermostaat] Getting current temperature...
May 30 20:34:02 raspberrypi homebridge[315]: undefined
May 30 20:34:02 raspberrypi homebridge[315]: undefined

Any idea how to solve this?

Temperature is off by 0.1 degrees

When setting the thermostat to 18 or 20 degrees form my iPhone (iOS 12.0.1) or Mac (10.14), the thermostat is off by 0.1 degrees, so 17.8 or 18.1 or 19.9.
Running on a Rasperry Pi 2
node.js v10.12.0 (but the same problem with v8.x)
Homebridge v0.4.45
homebridge-nefit-easy v2.1.0

Oct 30 15:44:58 raspberrypi homebridge[959]: [10/30/2018, 3:44:58 PM] [Thermostaat] Setting temperature to 18.1
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] Getting target temperature...
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] Getting current state..
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] Getting current temperature...
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] ...target temperature is 18.1
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] ...current temperature is 18.1
Oct 30 15:45:39 raspberrypi homebridge[959]: [10/30/2018, 3:45:39 PM] [Thermostaat] ...current state is off
Oct 30 15:45:55 raspberrypi homebridge[959]: [10/30/2018, 3:45:55 PM] [Thermostaat] Setting temperature to 19.9
Oct 30 15:46:01 raspberrypi homebridge[959]: [10/30/2018, 3:46:01 PM] [Thermostaat] Setting temperature to 17.9

homebridge-config-ui-x and nefit easy plugin not working

First thank you Robert for this plugin.. use it for years now... but i recently updated my PI from scratch and have installed homebridge-config-ui-x... is it possible that your plugin not works in here? I can't get it started... well i see the Nefit Easy device but can read or do anything with it... could you help me?

spaties in config

Hi Robert,

Ik krijg het helaas niet aan de praat, moeten het serialnumber en accesskey ingevuld worden met of zonder spatie?

Het is een nefit easy en ik heb de serial en accesskey uit de nefit easy app.

Error

The "accessKey" : NEFIT_ACCESS_KEY, line results in an error in the config. Any idea what that could be? yes, i replaced it with my own acces key :)

Deprecated packages

After an error with my homebridge I am no longer able to get the Nefit plugin up and running.

During the install I get three warnings about deprecated packages regarding xmpp. I know the plugin relies on xmpp to setup a connection and that is exactly what is not happening now.

I purposely changed the password of the Nefit, but I get no xmpp authentication failure, meaning that it doesn’t try to setup a connection.

It does try to fetch the temperatures and state but it gets no response. No error, nothing. Any idea how this can be solved?

Meaning of the Modes

There are 4 modes: Off, Heating, cooling and automatic.
What will they do? Do they affect the program in the thermostat? Of are they all just manual overrides?

E.g.: My standard Program is 23.00 set to 15°C.
If i use homekit to set it to 17°C, will it stay there until the next program setting or what?
It's not documented for what I can see.

SyntaxError: Unexpected token

Hello Robert,

When I run Homebridge and start the Homekit on an IOS device, the plugin crashes at "Getting current state"

[2019-1-25 20:40:42] Homebridge is running on port 51826. [2019-1-25 20:40:44] [thermostaat] Getting current temperature... [2019-1-25 20:40:44] [thermostaat] Getting target temperature... [2019-1-25 20:40:44] [thermostaat] Getting current state.. SyntaxError: Unexpected token ? in JSON at position 0 at JSON.parse (<anonymous>) at pending.(anonymous function).send.then.response (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\nefit-easy-core\lib\index.js:216:30) at tryCatcher (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:694:18) at _drainQueueStep (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5) SyntaxError: Unexpected token ? in JSON at position 0 at JSON.parse (<anonymous>) at pending.(anonymous function).send.then.response (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\nefit-easy-core\lib\index.js:216:30) at tryCatcher (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:694:18) at _drainQueueStep (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5) SyntaxError: Unexpected token ? in JSON at position 0 at JSON.parse (<anonymous>) at pending.(anonymous function).send.then.response (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\nefit-easy-core\lib\index.js:216:30) at tryCatcher (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:512:31) at Promise._settlePromise (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:569:18) at Promise._settlePromise0 (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\promise.js:694:18) at _drainQueueStep (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues (C:\Users\Camera\AppData\Roaming\npm\node_modules\homebridge-nefit-easy\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5)

Below is my config.json.
It validates OK.
I changed the Serial, Acceskey and Password on this site only to 1234.
The real data is the same as I use in the Nefit App and it works OK there.
Even tried to change the password, to exclude that as a problem, but the issue still exists.

{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "Mijn Huis", "accessories": [ { "accessory": "NefitEasy", "name": "thermostaat", "options": { "serialNumber": "1234", "accessKey": "1234", "password": "1234" } } ] }

Do you have any idea what's the problem here?

Thx in advanced very much for your answer!

TypeError

Hi,

Thanks for this great project!
Unfortunately I can't use it yet. What is wrong?

root@raspberrypi:/usr/lib/node_modules/homebridge# 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
[11/9/2016, 12:43:08 AM] Loaded plugin: homebridge-nefit-easy
[11/9/2016, 12:43:08 AM] Registering accessory 'homebridge-nefit-easy.NefitEasy'
[11/9/2016, 12:43:08 AM] ---
[11/9/2016, 12:43:08 AM] Loaded config.json with 1 accessories and 0 platforms.
[11/9/2016, 12:43:08 AM] ---
[11/9/2016, 12:43:08 AM] Loading 1 accessories...
[11/9/2016, 12:43:08 AM] [Thermostaat] Initializing NefitEasy accessory...
buffer.js:262
throw new TypeError(kFromErrorMsg);
^

TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at fromObject (buffer.js:262:9)
at Function.Buffer.from (buffer.js:101:10)
at new Buffer (buffer.js:80:17)
at generateKey (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-core/lib/encryption.js:9:26)
at new Encryption (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-core/lib/encryption.js:16:14)
at Encryption (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-core/lib/encryption.js:15:46)
at NefitEasyClient (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-core/lib/index.js:40:21)
at new NefitEasyClient (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/lib/index.js:9:17)
at NefitEasyClient (/usr/lib/node_modules/homebridge-nefit-easy/node_modules/nefit-easy-commands/lib/index.js:7:12)
at new NefitEasyAccessory (/usr/lib/node_modules/homebridge-nefit-easy/index.js:14:18)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:262:29)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:78:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)

Thanks!

XMPP Authentication failure

Hi,

I appreciate you creating this plug in.

I am new to this but i have tried to install and use this however i get:
XMPP Authentication failure

I have install homebridge on my windows 10 pc using instructions from:
https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Windows-10

I have this working correctly.
I have downloaded and installed the Homebridge Nefit Easy v2.2.0 plug in

I have added the accessory as per instructions on:
https://www.npmjs.com/package/homebridge-nefit-easy

I have added the homebridge to home app on my iPhone running iOS 14.0
I got the message to add the plug in.
I can see the name i gave to the plug in in the home hub also when i change the name it changes in the home app (so the connection is present)

However as soon as i open the home app it shows not responding and in the homebridge i see the message:
XMPP Authentication failure

I have checked the : serial Number accessKey and pasword and they are correct.
"serialNumber" : "****",
"accessKey" : "",
"password" : "
"

I am new to this but tried to locate other resources to try and assist me but at the moment i am stumped.
Would you be able to offer advise?

XMPP Error Code on New Homebridge Instance with Worcester Wave (Nefit Easy UK)

I have started a new Homebridge Instance Error on My Raspberry Pi 4. I am Using The Official Homebridge Image from the Raspberry Pi Imager and when I re-enabled my Nefit Easy Plugin, It keeps giving me "XMPP Authentication Error" In my Homebridge Console.
In My Config, All my 3 Codes are Laid out like this:
"accessory": "NefitEasy",
"name": "Wave Heating",
"options": {
"serialNumber": "NEFIT_********",
"accessKey": "NEFIT_**********",
"password": "NEFIT_
"
}

All My Codes are Copy-Pasted from my Worcester Wave app. (The App DOES work, before you ask)

CT200 support?

Hi Robert,
as you did a great job and find a secret for your bosh-xmpp repository, will you also incorporate changes for homebridge which will allow homebridge to be working with CT200?

Thank you

Using this for Bosch

Hi,
is there a way that I could use this homebridge plugin with a Bosch boiler. I managed to communicate with it using your bosch-xmpp cli tool (thanks for that BTW).
Thanks

Buderus TC100

Hello,
I tried to use this plugin with Buderus TC100.
It looked like same device with bosch backend. But I couldn't manage to get it work.
Is there a way to do that or not supported at all?

Is there away to detect the current operating mode?

When I restart HomeBridge the Nefit Easy thermostat always comes back in an 'Off' state while actually the thermostat is in 'Automatic' mode. Is this something the API supports? Or, in case it doesn't, can you force at startup with a configuration parameter?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.