Page 10 of 15

Re: Error ToonThermostat

Posted: Tuesday 05 March 2019 22:16
by astrapowerrr
How far is the progress to get it installed on the stable version?
Or is the beta stable enough for daily use with wife and kids?


Verzonden vanaf mijn iPhone met Tapatalk

Re: Error ToonThermostat

Posted: Tuesday 05 March 2019 22:21
by Pandabeer
I use the beta already for 9 months without any problems.

Support is perfect when something gives a problem after an update...



Verstuurd vanaf mijn SM-G950F met Tapatalk


Re: Error ToonThermostat

Posted: Tuesday 05 March 2019 22:22
by astrapowerrr
So it’s worth considering to switch to the beta...


Verzonden vanaf mijn iPhone met Tapatalk

Re: Error ToonThermostat

Posted: Wednesday 06 March 2019 21:09
by Maxx
Hello All

I have installed the plugin succesfully but I have one remark, I am using the device "Toon - Heating active" to trigger an event but it seems that this device receives 'Off" commands every other minute. I do not have other scripts using this device

Code: Select all

2019-03-06 20:57:20	Off
2019-03-06 20:55:20	Off
2019-03-06 20:53:20	Off
2019-03-06 20:51:20	Off
2019-03-06 20:49:19	Off
2019-03-06 20:47:19	Off
2019-03-06 20:45:18	Off
2019-03-06 20:43:18	Off
2019-03-06 20:41:18	Off
2019-03-06 20:39:18	Off
2019-03-06 20:37:18	Off
2019-03-06 20:35:18	Off
2019-03-06 20:33:18	Off
2019-03-06 20:31:18	Off
2019-03-06 20:29:17	Off
2019-03-06 20:27:17	On

On this 'Off' command my event is triggered eventhough the actual status of Toon is not changed. Is this something native with this plugin or is it a bug?
Thanks

Re: Error ToonThermostat

Posted: Wednesday 06 March 2019 21:11
by eenernl
toonapi_updates_switches.PNG
toonapi_updates_switches.PNG (83.05 KiB) Viewed 2647 times
Every 2 minutes the statusses are updated.

But is also updates a state when the state is already the right state.
See the attached image. My scene-selector is updating its status every 2 minutes to the same state.
This causes a very long log. The bigger problem is that it triggers scripts which are set to react on 'device changed'.

Is it posible to check the actual status of the switches before updating it?
Only update it when its another status?

Update:
User 'Maxx' is having the same problem 8-)

Re: Error ToonThermostat

Posted: Wednesday 06 March 2019 21:18
by waspy
Seems a valid request.
I will have a look. Preparing a new release that supports modulation level and program state.
Also includes intelligent creation of devices.

Verstuurd vanaf mijn SM-G935F met Tapatalk


Re: Error ToonThermostat

Posted: Wednesday 06 March 2019 21:54
by a3vd
astrapowerrr wrote: Tuesday 05 March 2019 22:22 So it’s worth considering to switch to the beta...Image


Verzonden vanaf mijn iPhone met Tapatalk
If you don't have any special settings BETA will work great for you !, make a backup of you're database and give it a try !

Re: Error ToonThermostat

Posted: Wednesday 06 March 2019 23:23
by waspy
Released plugin version 1.0.14 :D

* Intelligent creation of domoticz devices
* Added modulation level
* Add program state (note: update to latest toonapi lib to set the program)
* Added update rate setting (in hardware)
* Refactoring

In order to use the program state you need to update to the latest toonapilib:

Code: Select all

pip3 install toonapilib -U
Feedback is appreciated. Bug reports can be filed using the github repository (https://github.com/JohnvandeVrugt/toonapilib4domoticz).

Re: Error ToonThermostat

Posted: Thursday 07 March 2019 13:50
by Ritchie
waspy wrote: Wednesday 06 March 2019 23:23 Released plugin version 1.0.14 :D

* Intelligent creation of domoticz devices
* Added modulation level
* Add program state (note: update to latest toonapi lib to set the program)
* Added update rate setting (in hardware)
* Refactoring

In order to use the program state you need to update to the latest toonapilib:

Code: Select all

pip3 install toonapilib -U
Feedback is appreciated. Bug reports can be filed using the github repository (https://github.com/JohnvandeVrugt/toonapilib4domoticz).
Thnx, setting the update rate setting to 1 minute gives a more smooth graphic.

Re: Error ToonThermostat

Posted: Thursday 07 March 2019 19:50
by vrouwantje
waspy wrote: Wednesday 06 March 2019 23:23 Released plugin version 1.0.14 :D

* Intelligent creation of domoticz devices
* Added modulation level
* Add program state (note: update to latest toonapi lib to set the program)
* Added update rate setting (in hardware)
* Refactoring

In order to use the program state you need to update to the latest toonapilib:

Code: Select all

pip3 install toonapilib -U
Feedback is appreciated. Bug reports can be filed using the github repository (https://github.com/JohnvandeVrugt/toonapilib4domoticz).
Many thanks for your great job. Program State! Nice to have. And its working :)

Re: Error ToonThermostat

Posted: Friday 08 March 2019 11:03
by MJVR
You are a real hero! :D

Got it working on a Synology. Only the toonapilib version > 3.0.9 gives errors when updating the library.

Now running the plugin version 1.0.14, tooapilib 3.0.9 and the latest beta of Domoticz.

Everything is working as it should be with a 1 minute refresh rate.

Next step is switching to Raspberry with Domoticz. Too many work arounds installing python plugins and libraries on a Synology.

Re: Error ToonThermostat

Posted: Friday 08 March 2019 11:55
by competer
MJVR wrote: Friday 08 March 2019 11:03 You are a real hero! :D

Got it working on a Synology. Only the toonapilib version > 3.0.9 gives errors when updating the library.

Now running the plugin version 1.0.14, tooapilib 3.0.9 and the latest beta of Domoticz.

Everything is working as it should be with a 1 minute refresh rate.

Next step is switching to Raspberry with Domoticz. Too many work arounds installing python plugins and libraries on a Synology.
MJVR,

Kan you please make a small intruction how to install in on Synology

Re: Error ToonThermostat

Posted: Friday 08 March 2019 12:33
by MJVR
competer wrote: Friday 08 March 2019 11:55 MJVR,

Kan you please make a small intruction how to install in on Synology
Sure. Here we go!

I'm asuming you have root access by SSH and have the latest beta of Domoticz with python installed (jadahl.com) and Python 3 (DSM).

First install pip on your Synology

Putty (root or use sudo -i first):

Code: Select all

cd /volume1/@appstore/py3k/usr/local/bin
 
wget https://bootstrap.pypa.io/get-pip.py

python3 get-pip.py
Now install the toonapi library. As said for Synology the latest working version = 3.09

Code: Select all

python3 pip install toonapilib==3.0.9
Now go to: https://github.com/JohnvandeVrugt/toonapilib4domoticz and copy plugin.py in folder: /volume1/@appstore/domoticz/var/plugins/toonapilib4domoticz by using Winscp on your Synology. Remember to change plugin.py to excutable.

Restart Domoticz and add ToonApiLib in settings-Hardware. Fill in your credentials and it should be working. If you can't see the devices you probably have the option 'Accept new devices' turned off in settings.

Good luck!

Re: Error ToonThermostat

Posted: Saturday 09 March 2019 12:29
by tonio
Everything is working well now.
No errors.

Thank you

Re: Error ToonThermostat

Posted: Wednesday 13 March 2019 8:41
by unclekoen
I am following this thread since the Toon problems. And not sure what to choose for solution.
  • With the toonapilib, do i still need an Eneco subscription (€3,50) a month???
  • Other option, rooting Toon.

Re: Error ToonThermostat

Posted: Wednesday 13 March 2019 9:13
by dressie
unclekoen wrote: Wednesday 13 March 2019 8:41 I am following this thread since the Toon problems. And not sure what to choose for solution.
  • With the toonapilib, do i still need an Eneco subscription (€3,50) a month???
  • Other option, rooting Toon.
Yes, you still need a subscription. If you root, you'll gain local control.

Re: Error ToonThermostat

Posted: Wednesday 13 March 2019 10:17
by OedzesG
Thank you all for your messages! works perfectly again !!

Perhaps handy to mention that you have to create a new app for: Consumer key and Consumer secret within Toon API.

Re: Error ToonThermostat

Posted: Wednesday 13 March 2019 12:33
by arjanw
I created a patch and pull request to prevent the burner state changes to generate unnecessary switch updates in Domoticz. My version is at https://github.com/arjanwaard/toonapilib4domoticz for you to test.

Re: Error ToonThermostat

Posted: Wednesday 13 March 2019 13:22
by competer
MJVR wrote: Friday 08 March 2019 12:33
Now go to: https://github.com/JohnvandeVrugt/toonapilib4domoticz and copy plugin.py in folder: /volume1/@appstore/domoticz/var/plugins/toonapilib4domoticz by using Winscp on your Synology. Remember to change plugin.py to excutable.

I did all the steps you provided,

Many many thanx, but one issue

I do not have the toonapilib4domoticz folder in /volume1/@appstore/domoticz/var/plugins/
And i can not create folder manualy, insufficient rights to do so

Re: Error ToonThermostat

Posted: Saturday 16 March 2019 10:09
by MJVR
competer wrote: Wednesday 13 March 2019 13:22
I did all the steps you provided,

Many many thanx, but one issue

I do not have the toonapilib4domoticz folder in /volume1/@appstore/domoticz/var/plugins/
And i can not create folder manualy, insufficient rights to do so
Did you use Winscp with root acces to create the folder?

Go to: https://www.twoenter.nl/blog/synology/r ... m-6-0-6-1/

It is in Dutch but if you need English Google is your friend ;)