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..?
Best is to install toonapilib version 3.0.10 now, version 3.0.2 is no longer necessary.
Furthermore the devices are probably created but not yet visible, you have to go into Setup --> devices and then add them.
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..?
Best is to install toonapilib version 3.0.10 now, version 3.0.2 is no longer necessary.
Furthermore the devices are probably created but not yet visible, you have to go into Setup --> devices and then add them.
dressie wrote: ↑Friday 01 March 2019 7:48
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?
This afternoon I tried to get the plugin running with the latest stable domoticz version.
The onStart method is not called, so no devices are created.
First I needed to symlink some python libs to make the plugin being loaded.
However, I cannot make it work. Relates to https://www.domoticz.com/forum/viewtopi ... 65&t=27096
Even when I import the toonapilib at a later stage, the plugin stops working.
This is probably also related to the fact that you have to restart domoticz after changing parameters in the hardware section.
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..?
Best is to install toonapilib version 3.0.10 now, version 3.0.2 is no longer necessary.
Furthermore the devices are probably created but not yet visible, you have to go into Setup --> devices and then add them.
Thanks, i'll try these options...!
toonapilib 3.0.10 is installed, detecting new device is turned on....but no results...!
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...
Hmm... previously the precision was 0.1 degrees.
More accurate then the displayed value. There should be a possibility to get the real measured value.
That's exactly the attribute I use.
The eneco servers do not expose the 0.1 precision readings anymore. It exposes only the displayed toon temperature. Which has a 0.5 degree rounding.
Thanks waspy for helping out before! I wanted to add a bit more customization so I've just been playing around with some python that uses the latest toonapilib library. The Lua scripts that controlled the thermostate state or setpoint temperatures are now working smoothly again.
I've added currentModulationLevel (also see below) in Domoticz as well as a temperature device. It's interesting to compare that value to the temperature of the water that flows out of the boiler/CV.
And yes the precision readings are not accesible at the moment:
Maybe some what off-toppic (hope i'm excused and not executed ):
Due missing support (at this time ) for the Fibaro Smart plugs controlled by Toon I wanted to connect the Smart plug via my Aeotec Z-Wave USB controller on Domoticz.
But the Smart plug is included and controlled via Toon itself already. I can't include the plug also on the ZWave USB stick (Only by exclude first on Toon but don't want this).
Anybody knows what's going on here? domoticz crashes when using this toonapilib4domoticz??
When adding toonapilib & toonapilib4domoticz domoticz crashes with segmentation error ..
Python 3.6.8 on voidlinux rpi2, domoticz beta
Tested with toonapilib (without domoticz), that is fine. Just integration with domoticz crashes domoticz??
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.
Hi,
Well the problem is clear, alltough on my side. Olisto webhooks are interfering with api calls. After troubleshooting with quby we found dat disabeling the olisto toon channel helped to get back readings without nil values. And no more stalls on the toon app also. The stall happens every hour on minute 31. Quby is working on a solution on this, they will keep me posted.
Furthermore Quby todl me regarding the api :
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.
And also that toon refreshes data on demand, so every change in readings is reported to the backend where the api is talking to
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.
Hi,
Well the problem is clear, alltough on my side. Olisto webhooks are interfering with api calls. After troubleshooting with quby we found dat disabeling the olisto toon channel helped to get back readings without nil values. And no more stalls on the toon app also. The stall happens every hour on minute 31. Quby is working on a solution on this, they will keep me posted.
Furthermore Quby todl me regarding the api :
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.
And also that toon refreshes data on demand, so every change in readings is reported to the backend where the api is talking to
hope this helps
Ah! I indeed have the Olisto app as well, I will disable the Toon channel for now. Thanks!
Checked everything at least three times, but still
2019-03-05 10:02:42.027 (Toon) Using toonapilib version : 3.1.0 by Costas Tyfoxylos <[email protected]>
2019-03-05 10:02:42.523 (Toon) Could not create a toonapilib object
2019-03-05 10:02:42.525 (Toon) Possible solution:
2019-03-05 10:02:42.525 (Toon) * Check your credentials
2019-03-05 10:02:42.525 (Toon) * Restart Domoticz
Using the credentials and API keys that I got from the developers site (under apps), and with localhost as callback url.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
EdwinK wrote: ↑Tuesday 05 March 2019 10:08
Checked everything at least three times, but still
2019-03-05 10:02:42.027 (Toon) Using toonapilib version : 3.1.0 by Costas Tyfoxylos <[email protected]>
2019-03-05 10:02:42.523 (Toon) Could not create a toonapilib object
2019-03-05 10:02:42.525 (Toon) Possible solution:
2019-03-05 10:02:42.525 (Toon) * Check your credentials
2019-03-05 10:02:42.525 (Toon) * Restart Domoticz
Using the credentials and API keys that I got from the developers site (under apps), and with localhost as callback url.
did you use the mijn eneco credentials? developper site credentials do not work. Did you enable accpet new hardware in domoticz?
EdwinK wrote: ↑Tuesday 05 March 2019 10:18
Yes, used the mijn eneco crednetials, and new hardware was enabled.
and you use the latest domoticz beta, and you did a pi reboot and sudo service domoticz start ?
if that all doesnt work i suggest a reinstall of the toonapilib and python script, should work
After some testing and updating sessions... everything works as it should be. With the ToonApiLib 3.2.0 and the latest plugin.py of the ToonApiLib4Domoticz (and the latest Beta of Domoticz). Setting and reading the state (whether program on or off), setting the setpoint, everything OK. Thanks to all programmers!
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast