jochem725 / homebridge-toon Goto Github PK
View Code? Open in Web Editor NEWHomebridge Plugin for Toon Thermostats
Homebridge Plugin for Toon Thermostats
Ik krijg een error van de toon module. Resultaat hiervan is dat homebridge zich elk half uur (ongeveer) herstart.
[12/8/2021, 8:19:19 PM] RequestError: Error: getaddrinfo EAI_AGAIN api.toon.eu
at new RequestError (/homebridge/node_modules/homebridge-toon/node_modules/request-promise-core/lib/errors.js:14:15)
at Request.plumbing.callback (/homebridge/node_modules/homebridge-toon/node_modules/request-promise-core/lib/plumbing.js:87:29)
at Request.RP$callback [as _callback] (/homebridge/node_modules/homebridge-toon/node_modules/request-promise-core/lib/plumbing.js:46:31)
at self.callback (/homebridge/node_modules/homebridge-toon/node_modules/request/request.js:185:22)
at Request.emit (node:events:390:28)
at Request.onRequestError (/homebridge/node_modules/homebridge-toon/node_modules/request/request.js:877:8)
at ClientRequest.emit (node:events:390:28)
at TLSSocket.socketErrorListener (node:_http_client:447:9)
at TLSSocket.emit (node:events:390:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Iemand een idee waar dit door komt?
Hello.
I am trying to install it in Homebridge as mentioned below the video but without succes. Does it still work or am I doing something wrong?
Ik krijg het niet voor elkaar om verbinding te maken met de Toon. Ik las in vorige posts dat als je kan inloggen op https://toonopafstand.eneco.nl/index_pc.html het zou moeten werken. Maar helaas lukt het me niet.
Dit is de config die ik gebruik:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 41947,
"pin": "031-45-154"
},
"accessories": [{
"accessory": "Toon",
"name": "Toon",
"username": "[email protected]",
"password": "Wachtwoord"
}]
}
Nu viel me op dat wanneer ik inlog op de site ik moest keuze voor een adres. ik ben een keer verhuist. Nu heb ik 1 addres als default gekozen zodat ik de vraag niet meer krijg. Zou dit er iets mee te maken kunnen hebben ?
Zou het mogelijk zijn om de rookmelders die aan Toon hangen ook te publishen naar Homekit? Homekit heeft native ondersteuning voor rookmelders, dus misschien is dit "makkelijk"?
Alvast dank!
Is het misschien mogelijk om de rookmelders toe te voegen aan deze plugin ?
Ik krijg net een email van Eneco dat de Toon API per 1 december veranderd gaat worden. Er is een zgn accesstoken nodig zodat je long lived access krijgt. Dit is specifiek voor de headless applications. Je kunt een accesstoken ophalen op:
https://api.toon.eu/toonapi-accesstoken?tenant_id=eneco&client_id=<consumer_key>
Inloggen met je Eneco account en je kunt je token ophalen. Hebben jullie plannen om de toon plugin hierop aan te passen?
Goedenavond,
Zojuist de plugin geïnstalleerd en de config file aangepast. Echter krijg ik de volgende foutcode.
Het zegt mij niet heel veel, wellicht weet iemand wat er mis gaat?
Groet Jasper
pi@raspberrypi:~ $ homebridge
[2018-12-19 20:12:14] Loaded config.json with 2 accessories and 1 platforms.
[2018-12-19 20:12:14] ---
[2018-12-19 20:12:15] Loaded plugin: homebridge-sonos
[2018-12-19 20:12:15] Registering accessory 'homebridge-sonos.Sonos'
[2018-12-19 20:12:15] ---
[2018-12-19 20:12:16] Loaded plugin: homebridge-toon
[2018-12-19 20:12:16] Registering accessory 'homebridge-toon.Toon'
[2018-12-19 20:12:16] ---
[2018-12-19 20:12:16] Loading 1 platforms...
/usr/local/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 'Toon' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:316:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
Hoi,
Ik heb mijn oude raspberry 2 vervangen door de 4B. Sinds ik de 4B heb draaien krijg ik de volgende foutmelding. En ja ik heb mijn login gegevens 100x gecontroleerd. hebben jullie enig idee?
(node:30621) UnhandledPromiseRejectionWarning: Error: Error while authorizing, please check your credentials.
at ToonConnection. (/usr/local/lib/node_modules/homebridge-toon/dist/src/Toon/ToonConnection.js:158:27)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/homebridge-toon/dist/src/Toon/ToonConnection.js:4:58)
(node:30621) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30621) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The Toon by Eneco in Netherlands is also available in Belgium as the Boxx by Engie (Engie/Electrabel is like Eneco)
It's completely the same hardware but maybe the "branded" backend for the energy supplier is different. I tried entering my credentials for Boxx but got authenticating errors. Any chance you could make this compatible with Boxx?
{"fault":{"faultstring":"Invalid ApiKey","detail":{"errorcode":"oauth.v2.InvalidApiKey"}}}
Iemand enig idee wat ik fout doe?
Weet iemand of dat de Hombridge-toon plugin nog werkt?
Ik krijg steeds Error: Authentication error 401 en heb al van alles geprobeerd om het te verhelpen. Iemand ideeen?
Zojuist geinstalleerd en werkt super! Erg blij mee.
Echter alleen als ik Siri vraag hoe warm het thuis/in de kamer/in de "woonkamer" is, kan ze geen antwoord geven (geen response)
.
Ik ben vrij newbie met raspberry pi, maar als ik nog iets qua info moet opzoeken en posten, hoor ik graag hoe :)
-raspbian stretch: Linux raspberrypi 4.9.54-v7+ #1042 SMP Wed Oct 11 23:18:56 BST 2017 armv7l GNU/Linux
-homebridge: v0.4.28
-nodejs: v8.x
-iphone: iOS 11.0.2
-ipad: iOS 10.3.3
Should this plugin still work? I can't find it in accessories.
Hi,
I installed a new Raspberry PI and now I get the message 'The requested redirect_uri does not match any of the whitelisted redirect_uris on the Toon developer page.'.
I did not change anything on the Toon page and redirect URL is correct.
Homebridge do start, but the temperature of Toon is not shown.
How can I solve this?
Krijg de volgende error te zien. Het lijkt er op dat de website niet meer beschikbaar is om te gebruiken. Is er een oplossing mogelijk ?
[2019-2-12 15:38:47] [Toon] Retrieving client data from Toon op Afstand...
[2019-2-12 15:38:47] [Toon] Error: There was an error retrieving the client data from Toon.
"
Hi Jochem,
I have changed my config.json file and now receiving undermentioned error.
2017-11-14 18:59:08] [TOON] Authenticating...
(node:3174) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: There was an error authenticating with Toon.
undefined
(node:3174) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What could be the cause?
Hallo iedereen,
Het zal wel een supersimpele oplossing zijn, maar ik heb het nu al een paar keer van scratch geprobeerd om het aan de gang te krijgen. Ik krijg de volgende fout tijdens het opstarten van Homebridge:
[12/28/2019, 10:24:14 PM] [Toon] Toon Initialized, it may take a few minutes before any data will be visible to HomeKit.
[12/28/2019, 10:24:14 PM] Homebridge is running on port 51826.
(node:58757) UnhandledPromiseRejectionWarning: Error: Error while authorizing, please check your credentials.
at ToonConnection. (/usr/local/lib/node_modules/homebridge-toon/dist/src/Toon/ToonConnection.js:158:27)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/homebridge-toon/dist/src/Toon/ToonConnection.js:4:58)
(node:58757) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:58757) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
De API-credentials zijn goed, deze werken namelijk wel in de Home Assistant plugin (nee deze staat niet tegelijk aan, ik heb het alleen getest of het misschien daar aan lag).
Ik dacht eerst dat de plugin gewoon niet meer werkte maar ik heb recente berichten op deze pagina gelezen van mensen die het gewoon werkend hebben...
Dank alvast!
Rob
pi@raspberrypi:~ $ 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
[1/20/2017, 5:21:13 PM] Loaded plugin: homebridge-klikaanklikuit
[1/20/2017, 5:21:13 PM] Registering platform 'homebridge-klikaanklikuit.KlikAanKlikUit'
[1/20/2017, 5:21:13 PM] ---
[1/20/2017, 5:21:14 PM] Loaded plugin: homebridge-toon
[1/20/2017, 5:21:14 PM] Registering accessory 'homebridge-toon.Toon'
[1/20/2017, 5:21:14 PM] ---
[1/20/2017, 5:21:14 PM] Loaded config.json with 1 accessories and 0 platforms.
[1/20/2017, 5:21:14 PM] ---
[1/20/2017, 5:21:14 PM] Loading 1 accessories...
[1/20/2017, 5:21:14 PM] [] Initializing Toon accessory...
[1/20/2017, 5:21:14 PM] [] Toon Initialized, it may take a few minutes before any data will be visible to HomeKit.
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[1/20/2017, 5:21:14 PM] Homebridge is running on port 51826.
[1/20/2017, 5:21:15 PM] [] Retrieving client data from Toon op Afstand...
[1/20/2017, 5:21:15 PM] [] Error: There was an error retrieving the client data from Toon.
{"success":false,"reason":"Could not authenticate successfully with given credentials","errorCode":"invalidCredentials"}
at /usr/lib/node_modules/homebridge-toon/toon.js:113:23
at tryCatcher (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/promise.js:691:18)
at Promise._fulfill (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/promise.js:636:18)
at Request._callback (/usr/lib/node_modules/homebridge-toon/node_modules/bluebird/js/release/nodeback.js:42:21)
at Request.self.callback (/usr/lib/node_modules/homebridge-toon/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/usr/lib/node_modules/homebridge-toon/node_modules/request/request.js:1081:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (/usr/lib/node_modules/homebridge-toon/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:291:16)
^C[1/20/2017, 5:21:23 PM] Got SIGINT, shutting down Homebridge...
pi@raspberrypi:~ $
Hi Jochem ,
I can't login. It keeps saying:
[12/12/2016, 1:25:23 PM] [Toon] Error: There was an error retrieving the client data from Toon.
{"success":false,"reason":"Could not authenticate successfully with given credentials","errorCode":"invalidCredentials"}
This is my config.json:
`{
"bridge": {
"name": "Homebridge",
"username": "B8:27:EB:9A:03:99",
"port": 51826,
"pin": "036-32-278"
},
"accessories": [
{
"accessory": "Toon",
"name": "Toon",
"username": "[email protected]",
"password": "password"
}
]
}
`
I'm 100% sure the name and password are correct. But the username contains a "@" could this lead to any issues?
I can succesvol login on: https://toonopafstand.eneco.nl
Best regards, Jeroen Tielen.
You can add the fibaro wall outlets to Toon. And Toon can turn them on/off and read the current power consumption.
It would be great if we can controll this also with te homebridge.
I get the following errors. I have requested a new API, but also with this I get the following messages. Please help?!
[2020-2-21 07:41:29] [Toon] Current Target Temperature: undefined
[2020-2-21 07:41:31] [Toon] Current Temperature: undefined
(node:5626) UnhandledPromiseRejectionWarning: StatusCodeError: 400 - "\n <!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>Invalid redirect_uri</title>\n \n <style>\n @import url(https://fonts.googleapis.com/css?family=Open+Sans);\n @import url(https://fonts.googleapis.com/css?family=Roboto);\n \n *:focus {\n outline: none;\n }\n \n body {\n background-color: #fff;\n color: #43484d;\n font-family: 'FFClanWebNews', 'Helvetica Neue', 'Helvetica', 'Roboto', 'Arial', sans-serif;\n font-size: 1.4rem;\n margin: 0;\n }\n main {\n margin:42px auto;\n text-align:center;\n width: 480px;\n }\n a, a:active {\n color: #D7242A;\n text-decoration: none;\n }\n a:visited {\n color: #701317;\n }\n .page-header {\n background-color: #D7242A;\n height: 10px;\n \n background-position: center;\n }\n \n h1 {\n font-family: 'Open Sans', sans-serif;\n font-size: 20px;\n }\n \n h2 {\n font-size: 16px;\n }\n \n .viesgo {\n color: #D7242A;\n font-weight: 900;\n }\n .field {\n margin:20px auto;\n width:340px;\n }\n .error {\n color:red;\n display:none;\n font-weight:bold;\n }\n .error.true {\n display:block;\n }\n label {\n display:block;\n font-size: 12px;\n text-align:left;\n }\n \n input,\n select {\n border:1px solid #a0b1b9;\n font-size:14px;\n height:32px;\n margin-top:4px;\n width:100%;\n }\n input:not([type=submit]) {\n background-color: transparent;\n border: 0;\n border-bottom: 1px solid #414141;\n height: 32px;\n }\n input:not([type=submit]):focus {\n border-bottom-color: #cccccc;\n }\n \n ::-webkit-input-placeholder {\n font-style: italic;\n }\n \n :-moz-placeholder { /* Firefox 18- */\n font-style: italic;\n }\n \n ::-moz-placeholder { /* Firefox 19+ */\n font-style: italic;\n }\n \n :-ms-input-placeholder {\n font-style: italic;\n }\n \n .button {\n background-color: #D7242A;\n border:0;\n box-shadow: 0 4px 0 0 #701317;\n color: #ffffff;\n cursor: pointer;\n height: 50px;\n line-height: 50px;\n margin: 30px auto;\n padding:0;\n width: 280px;\n }\n \n @media (min-width: 322px) and (max-width: 480px) {\n .page-content {\n margin:2%;\n width:96%;\n }\n .field {\n margin:20px 10%;\n width:80%;\n }\n }\n @media (max-width: 321px) {\n .page-content {\n margin:2%;\n width:96%;\n }\n .field {\n margin:20px 0;\n width:280px;\n }\n }\n </style>\n </head>\n <body>\n <header class=\"page-header\"></header>\n <main class=\"page-content\">\n <h1>Developer hint:</h1>\n <p>The requested redirect_uri does not match any of the whitelisted redirect_uris on the Toon developer page.</p>\n <p>Make sure to allow the requested redirect_uri on your registered Toon app in the <a href=\"https://developer.toon.eu/\">developer pages</a></p>\n <p>Multiple redirect_uris can be used, separated by a comma.</p>\n </main>\n </body>\n</html>\n \n "
at new StatusCodeError (/usr/local/lib/node_modules/homebridge-toon/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/local/lib/node_modules/homebridge-toon/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/homebridge-toon/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-toon/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-toon/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-toon/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
(node:5626) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5626) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Ik zie sommige plugin slaan gegevens op alsof het een eve apparaat is zodat je die kan gebruiken in de eve app en hier de historie van kan zien.
Zoals hieronder 2 screenshots de een is van de eve thermostaat knop en de andere van de plugin homebridge-weather-plus v3.2.5.
homebridge-weather-plus en de AirRohr plugin zijn beide in staat om deze data op te slaan locaal en dan door te geven aan eve app.
Bij AirRohr zie ik het volgende in de log voorbij komen **Fakegato-timer
Misschien dat die ook zou kunnen met de toon data zodat we verloop van temperatuur kunnen zien en ingestelde temperatuur?
Eve Thermo Dit is slaapkamer / kantoor daarom de "hoge" tempratuur
homebridge-weather-plus
Homebridge is losing Toon connection after a certain amount of time. Restarting the homebridge process will login to the Toon site again and things will work as it should.
Is this a known issue?
Hoi, de plug-in werkt goed. Toch twijfel ik of het nu helemaal goed is.. Ik heb namelijk geen instelling om de modus te veranderen (uit, verwarmen en automatisch).. Klopt dit?
Ook staat er altijd "Automatisch is 19,0 C" ook wanneer de temperatuur al 19,0 C is..
"platforms": [ { "platform": "Toon", "name": "Thermostaat", "username": "x", "password": "x", "consumerKey": "x", "consumerSecret": "x" } ]
Hope this plugin is still maintained otherwise I'm hoping that some one can tell me which plugging I best can use with Toon.
On starting I'm getting the following warnings:
[2/24/2023, 2:16:48 PM] [toon] Current Temperature: undefined
[2/24/2023, 2:16:48 PM] [homebridge-toon] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
[2/24/2023, 2:16:48 PM] [toon] Current Target Temperature: undefined
[2/24/2023, 2:16:48 PM] [homebridge-toon] This plugin generated a warning from the characteristic 'Target Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
Hope this helps to solve.
Wat de titel zegt, de plugin doet het niet meer. Kan de plugin bijgewerkt worden? 😅
Hallo,
Ik vroeg me af of deze plugin nog werkt, ik ben al 3 dagen aan het proberen om het werkend te krijgen, maar dit lukt me niet. Ik hoop dat ik zelf een foutje heb ingevuld en dat iemand mij kan helpen. Ik zou het namelijk erg jammer vinden als deze plugin niet meer zou werken. Ik krijg de volgende melding van homebridge. Hieronder vinden jullie ook mijn config.
[10/6/2020, 19:14:28] [Toon] Current Temperature: undefined
[10/6/2020, 19:14:28] [Toon] Current Target Temperature: undefined
{
"platform": "Toon",
"name": "Toon",
"username": "x",
"password": ''x",
"consumerKey": "x",
"consumerSecret": "x"
}
]
}
Hoi,
Plugin installeren gelukt, toch krijg ik te zien:
Ongeldige JSON.
Ik ben nieuw met de JSON codering, hoop dat jullie me kunnen helpen.
Dank alvast!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.