StefanPostma / nl.vinceste.open-toon

GNU General Public License v3.0
11 stars 12 forks source link

total energy and gas settings are not updated #9

Closed driesk81 closed 4 years ago

driesk81 commented 4 years ago

total energy and gas settings are not updated.

I think the reason could be that my toon seems to use different "dev_x.x codes example: CurrentElectricityQuantity": "1030645.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_4.4" Alle values seem to start with a number 4 (dev_4.x) instead of a number 2 dev_2.x

StefanPostma commented 4 years ago

hi driesk81 what kind of toon V1 or V2 are you using? can you share some details like a log file?

driesk81 commented 4 years ago

Hi Stefan, I use a toon v1, I could send you toon's complete data output. Is there a way i can send that to you privateley.?

StefanPostma commented 4 years ago

ehm.. yes will check in a sec. also i am interesting in the in the log of the homey toon app itself

driesk81 commented 4 years ago

how do i retreive that log file. (Under settings there is no button to create a diagnostic report, because of cli install)

driesk81 commented 4 years ago

BTW i use this url to retreive data from toon http://TOON-IP/hdrv_zwave?action=getDevices.json

StefanPostma commented 4 years ago

hi driesk, why are you using the hdrv_zware interface instead of: url: 'http://' + this.getSetting('address') + '/happ_thermstat?action=getThermostatInfo',

StefanPostma commented 4 years ago

btw if you run the app with athom cli projecname --run it should output all loglines to the console i am interested what kind of log lines it will give will running the update values action card

driesk81 commented 4 years ago

i used the above command because that was what i am familiar with (domoticz) It returns the energy usage data. Can you tell me exactly wich commands to give in node.js?

driesk81 commented 4 years ago

Managed to save the log output. Did send you a pm via ahtom forum.

StefanPostma commented 4 years ago

Issue is caused by the dev serial number in the device.js code around line 290 there is a hard coded device id. The correct device id can be found by using cli run and refresh your data once. The log in de console will show the devices which contain the data.

linden85 commented 4 years ago

Issue is caused by the dev serial number in the device.js code around line 290 there is a hard coded device id. The correct device id can be found by using cli run and refresh your data once. The log in de console will show the devices which contain the data.

Can You explain the solution in dutch?🙈

StefanPostma commented 4 years ago

Ja zeker!

Als je de bestanden bekijkt van Github zie je het bestand device.js

Dit bestand is de app zoals homey hem uitvoert. Als je het bestand opent in een text editor zoals NotePad++ en de regelnummers aanzet, dan zie je op regel 290 een regel code staan welke verwijst naar een DeviceID. Omdat de verschillende Toons verschillende devices IDs gebruiken wordt niet altijd de juiste informatie ingeladen in de Homey App. Het juiste DeviceID is te vinden in de output van de CLI van Homey. Nu instaleer je de app als het goed is via CLI install. Als je ipv install CLI run doet en de console open laat. Dan zal alle output van de app in de het scherm zichtbaar worden. Zodra het kaartje waarden update is uitgevoerd komt er een antwoord van de Toon voorbij met alle informatie (inclusief het juiste device ID)

Groet,

Stefan

On 30 Mar 2020, at 12:21, linden85 notifications@github.com<mailto:notifications@github.com> wrote:

Issue is caused by the dev serial number in the device.js code around line 290 there is a hard coded device id. The correct device id can be found by using cli run and refresh your data once. The log in de console will show the devices which contain the data.

Can You explain the solution in dutch?🙈

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-606161808, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGEY252SAUGUSITGKU4NKYDRKDPJDANCNFSM4JH4PHKA.

Met vriendelijke groet/Kind regards,

Stefan Postma Solution Manager

[YMOR]https://www.ymor.com

Rijnzathe 14 3454 PV Utrecht Mobiel: +31 6 10765574 Kantoor: +31(0)30 6021149 Email: spostma@ymor.nl www.ymor.comhttps://www.ymor.com

This e-mail message and its attachments are subject to the disclaimer published on our website.https://www.ymor.com/files/2016/04/2016-Disclaimer-and-Security-EN.pdf

linden85 commented 4 years ago

het is gelukt! Bedankt!

de gaswaarden zie ik nu!

voor stroom piek/dal moet ik de device id ook aanpassen?huidige stoom verbruik zie ik namelijk wel.

ik heb al even gekeken ,maar ik zie alleen hea meter in het overzicht ,dit is me net geheel duidelijk of ik dit ook moet aanpassen .

Gr Mayel

Op za 4 apr. 2020 om 02:50 schreef StefanPostma notifications@github.com:

Ja zeker!

Als je de bestanden bekijkt van Github zie je het bestand device.js

Dit bestand is de app zoals homey hem uitvoert. Als je het bestand opent in een text editor zoals NotePad++ en de regelnummers aanzet, dan zie je op regel 290 een regel code staan welke verwijst naar een DeviceID. Omdat de verschillende Toons verschillende devices IDs gebruiken wordt niet altijd de juiste informatie ingeladen in de Homey App. Het juiste DeviceID is te vinden in de output van de CLI van Homey. Nu instaleer je de app als het goed is via CLI install. Als je ipv install CLI run doet en de console open laat. Dan zal alle output van de app in de het scherm zichtbaar worden. Zodra het kaartje waarden update is uitgevoerd komt er een antwoord van de Toon voorbij met alle informatie (inclusief het juiste device ID)

Groet,

Stefan

On 30 Mar 2020, at 12:21, linden85 <notifications@github.com<mailto: notifications@github.com>> wrote:

Issue is caused by the dev serial number in the device.js code around line 290 there is a hard coded device id. The correct device id can be found by using cli run and refresh your data once. The log in de console will show the devices which contain the data.

Can You explain the solution in dutch?🙈

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub< https://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-606161808>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AGEY252SAUGUSITGKU4NKYDRKDPJDANCNFSM4JH4PHKA>.

Met vriendelijke groet/Kind regards,

Stefan Postma Solution Manager

[YMOR]https://www.ymor.com

Rijnzathe 14 3454 PV Utrecht Mobiel: +31 6 10765574 Kantoor: +31(0)30 6021149 Email: spostma@ymor.nl www.ymor.comhttps://www.ymor.com

This e-mail message and its attachments are subject to the disclaimer published on our website.< https://www.ymor.com/files/2016/04/2016-Disclaimer-and-Security-EN.pdf>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-608927112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3LLLTDZB7CCMGB6TLATCTRKZ757ANCNFSM4JH4PHKA .

StefanPostma commented 4 years ago

Klopt, in device.js regel 325 tot 355 gaat over de low powerusage en high power usage. Een Paul Heringa heeft dit ooit ge-update voor zijn toon op basis van zijn Toon IDs blijkbaar werkt dit dus niet voor alle Toons.

On 4 Apr 2020, at 16:08, linden85 notifications@github.com<mailto:notifications@github.com> wrote:

het is gelukt! Bedankt!

de gaswaarden zie ik nu!

voor stroom piek/dal moet ik de device id ook aanpassen?huidige stoom verbruik zie ik namelijk wel.

ik heb al even gekeken ,maar ik zie alleen hea meter in het overzicht ,dit is me net geheel duidelijk of ik dit ook moet aanpassen .

Gr Mayel

Op za 4 apr. 2020 om 02:50 schreef StefanPostma notifications@github.com<mailto:notifications@github.com>:

Ja zeker!

Als je de bestanden bekijkt van Github zie je het bestand device.js

Dit bestand is de app zoals homey hem uitvoert. Als je het bestand opent in een text editor zoals NotePad++ en de regelnummers aanzet, dan zie je op regel 290 een regel code staan welke verwijst naar een DeviceID. Omdat de verschillende Toons verschillende devices IDs gebruiken wordt niet altijd de juiste informatie ingeladen in de Homey App. Het juiste DeviceID is te vinden in de output van de CLI van Homey. Nu instaleer je de app als het goed is via CLI install. Als je ipv install CLI run doet en de console open laat. Dan zal alle output van de app in de het scherm zichtbaar worden. Zodra het kaartje waarden update is uitgevoerd komt er een antwoord van de Toon voorbij met alle informatie (inclusief het juiste device ID)

Groet,

Stefan

On 30 Mar 2020, at 12:21, linden85 notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> wrote:

Issue is caused by the dev serial number in the device.js code around line 290 there is a hard coded device id. The correct device id can be found by using cli run and refresh your data once. The log in de console will show the devices which contain the data.

Can You explain the solution in dutch?🙈

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub< https://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-606161808>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AGEY252SAUGUSITGKU4NKYDRKDPJDANCNFSM4JH4PHKA>.

Met vriendelijke groet/Kind regards,

Stefan Postma Solution Manager

[YMOR]https://www.ymor.com

Rijnzathe 14 3454 PV Utrecht Mobiel: +31 6 10765574 Kantoor: +31(0)30 6021149 Email: spostma@ymor.nlmailto:spostma@ymor.nl www.ymor.comhttp://www.ymor.comhttps://www.ymor.com

This e-mail message and its attachments are subject to the disclaimer published on our website.< https://www.ymor.com/files/2016/04/2016-Disclaimer-and-Security-EN.pdf>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-608927112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3LLLTDZB7CCMGB6TLATCTRKZ757ANCNFSM4JH4PHKA .

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/StefanPostma/nl.vinceste.open-toon/issues/9#issuecomment-609095537, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGEY254IBAPMR364UF3IBIDRK6VVLANCNFSM4JH4PHKA.

Met vriendelijke groet/Kind regards,

Stefan Postma Solution Manager

[YMOR]https://www.ymor.com

Rijnzathe 14 3454 PV Utrecht Mobiel: +31 6 10765574 Kantoor: +31(0)30 6021149 Email: spostma@ymor.nl www.ymor.comhttps://www.ymor.com

This e-mail message and its attachments are subject to the disclaimer published on our website.https://www.ymor.com/files/2016/04/2016-Disclaimer-and-Security-EN.pdf