Page 8 of 15

Re: Error ToonThermostat

Posted: Thursday 28 February 2019 18:50
by rene2716
waspy wrote: Wednesday 27 February 2019 7:16 I have seen a similar effect while testing.
Toonapilib has a limit on the number of calls to toon api. That's one possible cause.
The other thing is that I don't know how commands are handled while updating the other values in the heartbeat.
I might have to make it more intelligent..

Verstuurd vanaf mijn SM-G935F met Tapatalk
I had some contact with the developers from quby today.

I had problems with fetching data via the api which seems to stall after some time.
This is what they say:

--
The moment you get a token and make the first /status call, our backend will start a subscription to your device. This is active for 2 minutes. The token itself is valid for 30 minutes.

I am not familiar with this python library. Is it refreshing the token every 30 minutes?
---
Could this be why things are working so irregular? Does the toonapilib refresh the token?

Re: Error ToonThermostat

Posted: Thursday 28 February 2019 19:27
by Ritchie
rene2716 wrote: Thursday 28 February 2019 18:50
waspy wrote: Wednesday 27 February 2019 7:16 I have seen a similar effect while testing.
Toonapilib has a limit on the number of calls to toon api. That's one possible cause.
The other thing is that I don't know how commands are handled while updating the other values in the heartbeat.
I might have to make it more intelligent..

Verstuurd vanaf mijn SM-G935F met Tapatalk
I had some contact with the developers from quby today.

I had problems with fetching data via the api which seems to stall after some time.
This is what they say:

--
The moment you get a token and make the first /status call, our backend will start a subscription to your device. This is active for 2 minutes. The token itself is valid for 30 minutes.

I am not familiar with this python library. Is it refreshing the token every 30 minutes?
---
Could this be why things are working so irregular? Does the toonapilib refresh the token?
This might be the cause of the issue I am facing, no power updates for some times:

2019-02-28 19:17:39.127 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:19:39.249 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:21:39.390 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:23:39.515 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:25:39.616 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:27:39.740 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:29:39.812 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:31:39.863 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:33:40.989 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0

Re: Error ToonThermostat

Posted: Thursday 28 February 2019 20:43
by phoenixblue
a3vd wrote:
phoenixblue wrote: Wednesday 27 February 2019 16:55 Hi,
I have install the plugin on an 32 bit windows with python.
But get the next error

Code: Select all

2019-02-27 16:48:23.166 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was 'C:\Program Files\Domoticz\plugins\toonapilib4domoticz\;C:\Program Files\Python36-32\python36.zip;C:\Program Files\Python36-32\Lib\;C:\Program Files\Python36-32\DLLs\;C:\Program Files\Domoticz'.
2019-02-27 16:48:23.167 Error: (Eneco Toon) Module Import failed, exception: 'ModuleNotFoundError'
2019-02-27 16:48:23.168 Error: (Eneco Toon) Module Import failed: ' Name: toonapilib'
2019-02-27 16:48:23.169 Error: (Eneco Toon) Error Line details not available.
What can be the problem?
It says that the plugin was not installed , did you put it in the right path ? i think in you're case Python Path used was 'C:\Program Files\Domoticz\plugins\toonapilib4domoticz\
just put plugin.py there and restart the service (or reboot)

The same is voor toonapilib which plugin.py depends on read the manual how to install , can't tell because i am on a pi with debian linux

Did you install php pip ? (php installer program) and then used "pip install toonapilib"

How to install pip on windows is explained here https://stackoverflow.com/questions/475 ... on-windows
I have checked, pip is installed and the path direction is also ok.
I have only find one strange point.
The logfile show thats looking for python36.zip inside the python folder.
But this file is not there... Is this an part of an other tool from python?


Verstuurd vanaf mijn CLT-L29 met Tapatalk


Re: Error ToonThermostat

Posted: Thursday 28 February 2019 23:54
by eenernl
Yeah! I got it work now!

I reinstalled my Pi completely this evening.
Now I have a clean install of my Pi and restored my domoticz Backup.
I installed latest version of Python en and now it works!
toonapi_devices.PNG
toonapi_devices.PNG (84.06 KiB) Viewed 1763 times
Is it possible to rename the devices to Dutch?
And is it also possible to rename the selector-states?

Or will this destroy the script?

Thanks

Re: Error ToonThermostat

Posted: Friday 01 March 2019 0:29
by waspy
Yes, you can rename them.
The plug-in uses ID's internally and not their names.


Verstuurd vanaf mijn SM-G935F met Tapatalk


Re: Error ToonThermostat

Posted: Friday 01 March 2019 0:41
by eenernl
Thanks, it works!
I replaced my old devices. The old log is now in my new devices.

Is it possible to set scenes with the selector?
It doesn't work for me yet. The setpoint is working flawless!

And this is working every 2 minutes! GREAT!

Re: Error ToonThermostat

Posted: Friday 01 March 2019 1:04
by waspy
Scene selection while running the automatic program is an issue within the toonapilib. Have reported it to the developer.

Verstuurd vanaf mijn SM-G935F met Tapatalk


Re: Error ToonThermostat

Posted: Friday 01 March 2019 1:39
by eenernl
It looks like the room temperature sensor has a precision of 0,5 degrees? Just like it’s displayed on the Toon itself.

The previous integration had a precision of 0,1 degrees. Is this possible to change? Then the measurement will be more accurate.

Re: Error ToonThermostat

Posted: Friday 01 March 2019 6:16
by rinyheuvelman
I updated domoticz to latest, as a result: plugin not updating anymore:

2019-03-01 03:35:52.946 Status: PluginSystem: 'Zon op Toon' Registration ignored, Plugins are not enabled.

Any ideas?

Update: quick first analysis learned the toonapilib is no longer in the plugins list...
Do I have to reinstall again?

Re: Error ToonThermostat

Posted: Friday 01 March 2019 7:21
by eenernl
eenernl wrote: Friday 01 March 2019 1:39 It looks like the room temperature sensor has a precision of 0,5 degrees? Just like it’s displayed on the Toon itself.

The previous integration had a precision of 0,1 degrees. Is this possible to change? Then the measurement will be more accurate.
you see?
A99673DA-F891-4612-B676-F1C90EBE50E2.jpeg
A99673DA-F891-4612-B676-F1C90EBE50E2.jpeg (73.87 KiB) Viewed 1747 times

Re: Error ToonThermostat

Posted: Friday 01 March 2019 7:48
by dressie
Next step is being able to control the Toon through another Domoticz Server. Our main one is a stable one while I run this API through a beta one. I did connect both Domoticz servers but the devices arn't created on the stable one. I did install the API on the stable one, but it doesn't seem to run by itself, hence the option to do it this way.
Any thoughts?

Re: Error ToonThermostat

Posted: Friday 01 March 2019 8:28
by rene2716
Ritchie wrote: Thursday 28 February 2019 19:27
rene2716 wrote: Thursday 28 February 2019 18:50
waspy wrote: Wednesday 27 February 2019 7:16 I have seen a similar effect while testing.
Toonapilib has a limit on the number of calls to toon api. That's one possible cause.
The other thing is that I don't know how commands are handled while updating the other values in the heartbeat.
I might have to make it more intelligent..

Verstuurd vanaf mijn SM-G935F met Tapatalk
I had some contact with the developers from quby today.

I had problems with fetching data via the api which seems to stall after some time.
This is what they say:

--
The moment you get a token and make the first /status call, our backend will start a subscription to your device. This is active for 2 minutes. The token itself is valid for 30 minutes.

I am not familiar with this python library. Is it refreshing the token every 30 minutes?
---
Could this be why things are working so irregular? Does the toonapilib refresh the token?
This might be the cause of the issue I am facing, no power updates for some times:

2019-02-28 19:17:39.127 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:19:39.249 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:21:39.390 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:23:39.515 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:25:39.616 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:27:39.740 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:29:39.812 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:31:39.863 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:33:40.989 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
correct, i see the same behaviour and also the toon app stalls at that same moment. A developper from quby is checking the logs and getting back to me today to see if its their side or the apilib

Re: Error ToonThermostat

Posted: Friday 01 March 2019 9:51
by Ritchie
rene2716 wrote: Friday 01 March 2019 8:28
Ritchie wrote: Thursday 28 February 2019 19:27
rene2716 wrote: Thursday 28 February 2019 18:50

I had some contact with the developers from quby today.

I had problems with fetching data via the api which seems to stall after some time.
This is what they say:

--
The moment you get a token and make the first /status call, our backend will start a subscription to your device. This is active for 2 minutes. The token itself is valid for 30 minutes.

I am not familiar with this python library. Is it refreshing the token every 30 minutes?
---
Could this be why things are working so irregular? Does the toonapilib refresh the token?
This might be the cause of the issue I am facing, no power updates for some times:

2019-02-28 19:17:39.127 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:19:39.249 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:21:39.390 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:23:39.515 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:25:39.616 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:27:39.740 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:29:39.812 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:31:39.863 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:33:40.989 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
correct, i see the same behaviour and also the toon app stalls at that same moment. A developper from quby is checking the logs and getting back to me today to see if its their side or the apilib
Thanks, awaiting their answer.

Re: Error ToonThermostat

Posted: Friday 01 March 2019 11:33
by tne7laa
Finally working!
- needed to change to Domoticz beta version.
- use your username and password of Mijn Eneco and NOT the developer.toon.eu credentials.

Also Home Bridge is working again and shows up in Home of iOS.
(https://www.npmjs.com/package/homebridge-toon)

Only missing the Smart Plugs and HUE lamps. Want them to use with Siri again. Hoping this will implemented soon...

Re: Error ToonThermostat

Posted: Friday 01 March 2019 12:41
by waspy
eenernl wrote: Friday 01 March 2019 7:21
eenernl wrote: Friday 01 March 2019 1:39 It looks like the room temperature sensor has a precision of 0,5 degrees? Just like it’s displayed on the Toon itself.

The previous integration had a precision of 0,1 degrees. Is this possible to change? Then the measurement will be more accurate.
you see?

A99673DA-F891-4612-B676-F1C90EBE50E2.jpeg
The temperature is retrieved through the toonapilib which reads the currentDisplayTemp variable from the Toon web api.
There are not other temperature readings that can be used to have a more accurate reading.
Apparently, the precision of this and other temperature related variables is 0.5 degrees.
One can argue how accurate the temperature reading actually is...

Re: Error ToonThermostat

Posted: Friday 01 March 2019 12:46
by waspy
Ritchie wrote: Friday 01 March 2019 9:51
rene2716 wrote: Friday 01 March 2019 8:28
Ritchie wrote: Thursday 28 February 2019 19:27

This might be the cause of the issue I am facing, no power updates for some times:

2019-02-28 19:17:39.127 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:19:39.249 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:21:39.390 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:23:39.515 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:25:39.616 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:27:39.740 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:29:39.812 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:31:39.863 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
2019-02-28 19:33:40.989 (Toon) Update power/solar usage: 6290709;4293963;0;0;285;0
correct, i see the same behaviour and also the toon app stalls at that same moment. A developper from quby is checking the logs and getting back to me today to see if its their side or the apilib
Thanks, awaiting their answer.
My readings are continously changing. Do you use the latest toonapilib 3.0.10?
The first two values do not update every call. Probably the toon backend is updated with new values every x minutes / hrs.
But the actual power value, in your case 285, should be changing from one update to another. Except when you have a real stable usage ;)

Re: Error ToonThermostat

Posted: Friday 01 March 2019 13:15
by Ritchie
waspy wrote: Friday 01 March 2019 12:46
Ritchie wrote: Friday 01 March 2019 9:51
rene2716 wrote: Friday 01 March 2019 8:28

correct, i see the same behaviour and also the toon app stalls at that same moment. A developper from quby is checking the logs and getting back to me today to see if its their side or the apilib
Thanks, awaiting their answer.
My readings are continously changing. Do you use the latest toonapilib 3.0.10?
The first two values do not update every call. Probably the toon backend is updated with new values every x minutes / hrs.
But the actual power value, in your case 285, should be changing from one update to another. Except when you have a real stable usage ;)
Yes, running toonapilib 3.0.10 and the latest version of your script.
I never have a real stable power usage, as you can see in below graph. It runs ok for 1 hour, and then stops updating the data:
toon4.png
toon4.png (69.77 KiB) Viewed 1707 times

Re: Error ToonThermostat

Posted: Friday 01 March 2019 13:36
by rene2716
Ritchie wrote: Friday 01 March 2019 13:15
waspy wrote: Friday 01 March 2019 12:46
Ritchie wrote: Friday 01 March 2019 9:51

Thanks, awaiting their answer.
My readings are continously changing. Do you use the latest toonapilib 3.0.10?
The first two values do not update every call. Probably the toon backend is updated with new values every x minutes / hrs.
But the actual power value, in your case 285, should be changing from one update to another. Except when you have a real stable usage ;)
Yes, running toonapilib 3.0.10 and the latest version of your script.
I never have a real stable power usage, as you can see in below graph. It runs ok for 1 hour, and then stops updating the data:
toon4.png
Looks about the same here, think we should see updates every 5 minutes but I only see them once an hour
20190301_133608.jpg
20190301_133608.jpg (183.04 KiB) Viewed 1705 times

Re: Error ToonThermostat

Posted: Friday 01 March 2019 16:24
by Daffy61
I've serveral times install/uninstall the toonapilib 3.0.2 en python3.5, and read the installation guide from github.com/JohnvandeVrugt/toonapilib4domoticz.
After the installation i restart domoticz or reboot my RPI3.
I add the toonapilib, and fill in the credentials they are nessesary.
The logging give the messages (Toon) Creating Toon devices.....!
But nothing is happened, and there are no devices added.

In the logging i see the folowing messages:
2019-03-01 15:55:02.730 (Toon) An error occurred updating power usage
2019-03-01 15:55:02.730 (Toon) An error occurred updating gas usage
2019-03-01 15:55:02.730 (Toon) An error occurred updating temperature
2019-03-01 15:55:02.731 (Toon) An error occurred updating thermostat
2019-03-01 15:55:02.731 (Toon) An error occurred updating thermostat state
2019-03-01 15:55:02.731 (Toon) An error occurred updating burner state
When i set de debug mode for the toonapilib, i see the temperture value and gas value etc. but, no devices

What's going wrong..?

Re: Error ToonThermostat

Posted: Friday 01 March 2019 16:27
by dressie
Daffy61 wrote: Friday 01 March 2019 16:24 I've serveral times install/uninstall the toonapilib 3.0.2 en python3.5, and read the installation guide from github.com/JohnvandeVrugt/toonapilib4domoticz.
After the installation i restart domoticz or reboot my RPI3.
I add the toonapilib, and fill in the credentials they are nessesary.
The logging give the messages (Toon) Creating Toon devices.....!
But nothing is happened, and there are no devices added.

In the logging i see the folowing messages:
2019-03-01 15:55:02.730 (Toon) An error occurred updating power usage
2019-03-01 15:55:02.730 (Toon) An error occurred updating gas usage
2019-03-01 15:55:02.730 (Toon) An error occurred updating temperature
2019-03-01 15:55:02.731 (Toon) An error occurred updating thermostat
2019-03-01 15:55:02.731 (Toon) An error occurred updating thermostat state
2019-03-01 15:55:02.731 (Toon) An error occurred updating burner state
When i set de debug mode for the toonapilib, i see the temperture value and gas value etc. but, no devices

What's going wrong..?
Setup - Settings - System - Allow new Hardware Devices <-- is this setting "ON" ?