Error ToonThermostat

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

MJVR
Posts: 7
Joined: Friday 08 March 2019 10:55
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by MJVR »

I have the same problems since a couple of days. What works for me is a restart of Domoticz (SSH)

Code: Select all

sudo service domoticz.sh stop

sudo service domoticz.sh start
After a reboot the errors return. So it works as long you don't reboot or update.
dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

MJVR wrote: Friday 12 April 2019 15:56 I have the same problems since a couple of days. What works for me is a restart of Domoticz (SSH)

Code: Select all

sudo service domoticz.sh stop

sudo service domoticz.sh start
After a reboot the errors return. So it works as long you don't reboot or update.
It works for a few minutes. If you don't do anything, this happens:

2019-04-12 17:03:50.747 (Toon) An error occurred updating power usage
2019-04-12 17:03:50.748 (Toon) An error occurred updating gas usage
2019-04-12 17:03:50.748 (Toon) An error occurred updating temperature
2019-04-12 17:03:50.749 (Toon) An error occurred updating thermostat set point
2019-04-12 17:03:50.749 (Toon) An error occurred updating burner state
2019-04-12 17:03:50.749 (Toon) An error occurred updating thermostat state
2019-04-12 17:03:50.749 (Toon) An error occurred updating program state
2019-04-12 17:03:50.750 (Toon) An error occurred updating modulation level
2019-04-12 17:04:52.769 (Toon) Update power/solar usage: 12736690;10458504;0;0;402;0
2019-04-12 17:04:52.772 (Toon) Update gas usage: 2292
2019-04-12 17:04:52.775 (Toon) Update temperature: 20.0
2019-04-12 17:04:52.778 (Toon) Update state: off

Out of nowhere it work again. Something is up with the API, I hope we can find out what.
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

hi

still getting this getting to work(day 4).. hahaha

im getting this in the domoticz log.
2019-04-12 19:49:52.229 Error: (ToonApiLib) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/toonapilib4domoticz/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'.
2019-04-12 19:49:52.229 Error: (Toon ) Module Import failed, exception: 'ImportError'
2019-04-12 19:49:52.229 Error: (Toon ) Module Import failed: ' Name: toonapilib'
2019-04-12 19:49:52.229 Error: (Toon ) Error Line details not available
.

but i had this before and i was told i was not on beta version.
but now i am on latest version of beta and im getting this error?

now im kinda lost :?

btw: i am very much further in installation:
got some help and i did this steps from a earlier backup:

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get upgrade

Code: Select all

sudo apt-get dist-upgrade

Code: Select all

sudo apt-get autoremove

Code: Select all

sudo apt-get autoclean
"then reboot system"

Code: Select all

cd domoticz

Code: Select all

./updatebeta

Code: Select all

pip3 install --upgrade setuptools

Code: Select all

pip3 install -U pip

Code: Select all

pip3 install --user toonapilib -U

Code: Select all

cd /home/pi/domoticz/plugins

Code: Select all

git clone https://github.com/JohnvandeVrugt/toonapilib4domoticz

Code: Select all

sudo service domoticz restart
that did well with "almost" no errors.. except when installing the toonapilib
i had in the end this 3 orange lines:
Installing collected packages: toonapilib, cachetools, coloredlogs, dateparser, requests, humanfriendly, regex, pytz, python-dateutil, tzlocal, urllib3, chardet, idna, certifi, six
Running setup.py install for toonapilib
warning: no previously-included files matching '__pycache__' found under directory '*'
Could not find .egg-info directory in install record for toonapilib
Running setup.py install for regex
BASE_DIR is /tmp/pip-build-i6rmfj2c/regex
building 'regex._regex' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c regex_3/_regex.c -o build/temp.linux-armv7l-3.4/regex_3/_regex.o
regex_3/_regex.c: In function ?fuzzy_match_group_fld?:
regex_3/_regex.c:11327:10: warning: ?data.new_text_pos? may be used uninitialized in this function [-Wmaybe-uninitialized]
if (!record_fuzzy(state, data.fuzzy_type, data.new_text_pos - data.step))
^
regex_3/_regex.c: In function ?fuzzy_match_string_fld?:
regex_3/_regex.c:11102:10: warning: ?data.new_text_pos? may be used uninitialized in this function [-Wmaybe-uninitialized]
if (!record_fuzzy(state, data.fuzzy_type, data.new_text_pos - data.step))
^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c regex_3/_regex_unicode.c -o build/temp.linux-armv7l-3.4/regex_3/_regex_unicode.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/regex_3/_regex.o build/temp.linux-armv7l-3.4/regex_3/_regex_unicode.o -o build/lib.linux-armv7l-3.4/regex/_regex.cpython-34m.so
/usr/local/lib/python3.4/dist-packages/setuptools/dist.py:472: UserWarning: Normalizing '2019.04.10' to '2019.4.10'
normalized_version,
Could not find .egg-info directory in install record for regex (from dateparser~=0.7.1->toonapilib)
Running setup.py install for tzlocal
Could not find .egg-info directory in install record for tzlocal (from dateparser~=0.7.1->toonapilib)
Successfully installed toonapilib cachetools coloredlogs dateparser requests humanfriendly regex pytz python-dateutil tzlocal urllib3 chardet idna certifi six
Cleaning up...
if someone can tell me this is my problem???

greets marco
dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

I'm missing the "sudo" commands during installation. If you copy/paste the instructions from https://github.com/JohnvandeVrugt/toona ... TALL_PI.md it should go without any issues.
Make sure you also have this one: sudo apt-get install python3-pip.

You really shouldn't get any error during installation.

I found out that I had two API's running from Toon, one on Domoticz and one on a test HomeAssist. I remover the HA one and have only one API @Toon. So far it's all fine again.
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

dressie wrote:I'm missing the "sudo" commands during installation. If you copy/paste the instructions from https://github.com/JohnvandeVrugt/toona ... TALL_PI.md it should go without any issues.
Make sure you also have this one: sudo apt-get install python3-pip.

You really shouldn't get any error during installation.

I found out that I had two API's running from Toon, one on Domoticz and one on a test HomeAssist. I remover the HA one and have only one API @Toon. So far it's all fine again.
Hmmm im also habing some email contact with Costas from toonapilib and he explicitly told me NOT to use sudo??? This gets confusing...

But i will try with sudo...


Verzonden vanaf mijn iPhone met Tapatalk
dressie
Posts: 156
Joined: Monday 25 May 2015 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version: V2020.2
Location: Netherlands
Contact:

Re: Error ToonThermostat

Post by dressie »

astrapowerrr wrote: Friday 12 April 2019 20:44
dressie wrote:I'm missing the "sudo" commands during installation. If you copy/paste the instructions from https://github.com/JohnvandeVrugt/toona ... TALL_PI.md it should go without any issues.
Make sure you also have this one: sudo apt-get install python3-pip.

You really shouldn't get any error during installation.

I found out that I had two API's running from Toon, one on Domoticz and one on a test HomeAssist. I remover the HA one and have only one API @Toon. So far it's all fine again.
Hmmm im also habing some email contact with Costas from toonapilib and he explicitly told me NOT to use sudo??? This gets confusing...

But i will try with sudo...


Verzonden vanaf mijn iPhone met Tapatalk
Yes, on Raspberry Pi you should use the SUDO command actually.
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

I also commented on your thread on github.

You will have to install it as root (sudo) because you need to have it installed in one of the folders that is processed by domoticz.

Code: Select all

sudo pip3 install toonapilib -U
Another thing: I did not experience any of the errors that were reported in this thread.
I just upgraded to the last version of domoticz, toonapilib and stable version of my plugin.
This combination seems to run just fine. (Tested on a virtual machine with raspbian)

Code: Select all

2019-04-12 20:58:27.425 Status: Domoticz V4.10602 (c)2012-2019 GizMoCuz
2019-04-12 20:58:27.426 Status: Build Hash: ce68fa52, Date: 2019-04-04 20:51:02
2019-04-12 20:58:27.426 Status: Startup Path: /home/pi/dev-domoticz/
2019-04-12 20:58:27.713 Status: PluginSystem: Started, Python version '3.5.3'.
(...)
2019-04-12 20:58:30.044 Status: PluginSystem: Entering work loop.
2019-04-12 20:58:32.536 (TestApilib) Using toonapilib version 3.2.3 by Costas Tyfoxylos <[email protected]>
2019-04-12 20:58:32.536 (TestApilib) Debug logging is active
2019-04-12 20:58:32.536 (TestApilib) Creating toonapilib object
2019-04-12 20:58:32.533 Status: (TestApilib) Initialized version 1.0.14, author 'John van de Vrugt'
2019-04-12 20:58:32.534 Status: (TestApilib) Entering work loop.
2019-04-12 20:58:53.700 (TestApilib) Check and create Toon devices
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

well gave the sudo command and now i get this errors again.

pi@raspberrypi:~ $ sudo pip3 install --upgrade setuptools
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: setuptools in /usr/local/lib/python3.4/dist-packages (41.0.0)
pi@raspberrypi:~ $ sudo pip3 install -U pip
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Requirement already up-to-date: pip in /usr/local/lib/python3.4/dist-packages (19.0.3)
pi@raspberrypi:~ $ sudo pip3 install --user toonapilib -U
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
The directory '/root/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/root/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting toonapilib
Downloading https://files.pythonhosted.org/packages ... 2.3.tar.gz (68kB)
100% |????????????????????????????????| 71kB 3.0MB/s
Collecting requests~=2.21.0 (from toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (57kB)
100% |????????????????????????????????| 61kB 4.3MB/s
Collecting dateparser~=0.7.1 (from toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (351kB)
100% |????????????????????????????????| 358kB 3.5MB/s
Collecting cachetools~=3.1.0 (from toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl
Collecting coloredlogs~=10.0 (from toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (47kB)
100% |????????????????????????????????| 51kB 4.3MB/s
Collecting idna<2.9,>=2.5 (from requests~=2.21.0->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (58kB)
100% |????????????????????????????????| 61kB 4.6MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests~=2.21.0->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (133kB)
100% |????????????????????????????????| 143kB 4.7MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests~=2.21.0->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (118kB)
100% |????????????????????????????????| 122kB 4.7MB/s
Collecting certifi>=2017.4.17 (from requests~=2.21.0->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (158kB)
100% |????????????????????????????????| 163kB 4.6MB/s
Collecting pytz (from dateparser~=0.7.1->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (510kB)
100% |????????????????????????????????| 512kB 3.5MB/s
Collecting python-dateutil (from dateparser~=0.7.1->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (226kB)
100% |????????????????????????????????| 235kB 4.4MB/s
Collecting tzlocal (from dateparser~=0.7.1->toonapilib)
Downloading https://files.pythonhosted.org/packages ... 5.1.tar.gz
Collecting regex (from dateparser~=0.7.1->toonapilib)
Downloading https://files.pythonhosted.org/packages ... .12.tar.gz (644kB)
100% |????????????????????????????????| 645kB 3.3MB/s
Collecting humanfriendly>=4.7 (from coloredlogs~=10.0->toonapilib)
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (73kB)
100% |????????????????????????????????| 81kB 4.9MB/s
Requirement already satisfied, skipping upgrade: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->dateparser~=0.7.1->toonapilib) (1.8.0)
Installing collected packages: idna, chardet, urllib3, certifi, requests, pytz, python-dateutil, tzlocal, regex, dateparser, cachetools, humanfriendly, coloredlogs, toonapilib
The script chardetect is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Running setup.py install for tzlocal ... done
Running setup.py install for regex ... done
The script humanfriendly is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script coloredlogs is installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Running setup.py install for toonapilib ... done
Successfully installed cachetools-3.1.0 certifi-2019.3.9 chardet-3.0.4 coloredlogs-10.0 dateparser-0.7.1 humanfriendly-4.18 idna-2.8 python-dateutil-2.8.0 pytz-2019.1 regex-2019.4.12 requests-2.21.0 toonapilib-3.2.3 tzlocal-1.5.1 urllib3-1.24.1
pi@raspberrypi:~ $

strange… where does these come from?
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

in the log from domoticz i see this

Code: Select all

2019-04-12 21:46:13.754 Status: Domoticz V4.10602 (c)2012-2019 GizMoCuz
2019-04-12 21:46:13.762 Status: Build Hash: ce68fa52, Date: 2019-04-04 20:51:02
2019-04-12 21:46:13.763 Status: Startup Path: /home/pi/domoticz/
2019-04-12 21:46:13.842 Status: EventSystem: reset all events...
2019-04-12 21:46:13.940 Status: PluginSystem: Started, Python version '3.4.2'.
2019-04-12 21:46:13.960 Status: WebServer(HTTP) started on address: :: with port 8080
2019-04-12 21:46:13.970 Status: WebServer(SSL) started on address: :: with port 443
2019-04-12 21:46:13.973 Status: Proxymanager started.
2019-04-12 21:46:14.015 Status: TCPServer: shared server started...
2019-04-12 21:46:14.016 Status: RxQueue: queue worker started...
2019-04-12 21:46:15.024 Status: PROXY: Authenticate result: success.
2019-04-12 21:46:16.016 Status: RFXCOM: Worker started...
2019-04-12 21:46:16.025 Status: ToonThermostat: Worker started...
2019-04-12 21:46:16.026 Status: Kodi: Started
2019-04-12 21:46:16.027 Status: (Toon ) Started.
2019-04-12 21:46:16.027 Status: Darksky: Started...
2019-04-12 21:46:16.027 Status: EventSystem: reset all events...
2019-04-12 21:46:16.032 Status: EventSystem: reset all device statuses...
2019-04-12 21:46:16.351 Status: PluginSystem: Entering work loop.
2019-04-12 21:46:16.408 Status: Python EventSystem: Initalizing event module.
2019-04-12 21:46:16.425 Status: EventSystem: Queue thread started...
2019-04-12 21:46:16.425 Status: EventSystem: Started
i only see (toon) started. but thats realy all...
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

I see, but don't understand :shock:

The previous error that the toonapilib could not be found seems to be fixed, so that's good news.
My plugin first logs the apilib version. But this line seems to be missing in your log at all...
So if this line is missing, I'm sure all the rest will fail as well.

Code: Select all

Domoticz.Log("Using toonapilib version " + toonapilib.__version__ + " by " + toonapilib.__author__)

Not sure where to go from here. I'm no python or domoticz expert.
Maybe a good time to update the O/S on the pi?

I am using a pi3. Don't know what hardware you are using.
I have never tested it on a pi 1 or 2.
But maybe somebody else on the forum did...
astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

well i used

Code: Select all

sudo chown root:root /root
that fixed the errors from not owning the folder und use sudo -H flag etc.

but still nothing in the log of domoticz…

who else can i ask?
im running out of ideas…

ps hardware is a pi3 and reinstalling etc is a no go... my whole house is running on domoticz… my wife will kill me!
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Always good to have a spare ;)

Verstuurd vanaf mijn SM-G935F met Tapatalk

astrapowerrr
Posts: 141
Joined: Tuesday 31 January 2017 20:34
Target OS: -
Domoticz version:
Contact:

Re: Error ToonThermostat

Post by astrapowerrr »

i will try this weekend with a new run..
get my backup again.

Code: Select all

sudo chown -R root:root /root

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean

"then reboot system"

cd domoticz
./updatebeta

sudo easy_install -U setuptools
sudo pip3 install --upgrade setuptools


sudo pip3 install -U pip

sudo pip3 install --user toonapilib -U
cd /home/pi/domoticz/plugins
git clone https://github.com/JohnvandeVrugt/toonapilib4domoticz
sudo service domoticz restart
then see what happens...
Hiu80
Posts: 14
Joined: Thursday 11 April 2019 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 16182
Contact:

Re: Error ToonThermostat

Post by Hiu80 »

I am still stuck at:
2019-04-13 21:04:34.240 Status: (toon) Started.
2019-04-13 21:04:41.770 (toon) Using toonapilib version 3.2.3 by Costas Tyfoxylos <[email protected]>
2019-04-13 21:04:41.765 Status: (toon) Entering work loop.
2019-04-13 21:04:41.766 Status: (toon) Initialized version 1.0.14, author 'John van de Vrugt'
2019-04-13 21:04:42.399 (toon) Could not create a toonapilib object
2019-04-13 21:04:42.401 (toon) Possible solution:
2019-04-13 21:04:42.401 (toon) * Check your credentials
2019-04-13 21:04:42.401 (toon) * Restart Domoticz
2019-04-13 21:04:42.401 (toon) Check and create Toon devices
2019-04-13 21:04:42.401 (toon) Creating Power usage device
2019-04-13 21:04:42.405 (toon) Creating Gas usage device
2019-04-13 21:04:42.408 (toon) Creating Room temperature device
2019-04-13 21:04:42.410 (toon) Creating Set point device
2019-04-13 21:04:42.411 (toon) Creating Heating active device
2019-04-13 21:04:42.414 (toon) Creating Hot water active device
2019-04-13 21:04:42.416 (toon) Creating Preheat active device
2019-04-13 21:04:42.418 (toon) Creating Scene device
2019-04-13 21:04:42.421 (toon) Creating Program state device
2019-04-13 21:04:42.423 (toon) Creating Modulation level device
The credentials i use are correct. Not shure how to proceed right now :)
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Are you using domoticz beta version? Think this happens with the stable one....

Verstuurd vanaf mijn SM-G935F met Tapatalk

Hiu80
Posts: 14
Joined: Thursday 11 April 2019 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 16182
Contact:

Re: Error ToonThermostat

Post by Hiu80 »

waspy wrote: Saturday 13 April 2019 21:17 Are you using domoticz beta version? Think this happens with the stable one....

Verstuurd vanaf mijn SM-G935F met Tapatalk
Iam using V4.10602, thats correct right?
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Yes, that is just fine. Tested with that version last night.
I have added testtoonapilib.py to the repository for testing purposes.
If you run python3.* testtoonapilib.py in the terminal you can test whether a toon object can be created.
That is, if toonapilib is installed correctly and your credentials are correct :)

Good luck!
Hiu80
Posts: 14
Joined: Thursday 11 April 2019 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 16182
Contact:

Re: Error ToonThermostat

Post by Hiu80 »

waspy wrote: Saturday 13 April 2019 23:02 Yes, that is just fine. Tested with that version last night.
I have added testtoonapilib.py to the repository for testing purposes.
If you run python3.* testtoonapilib.py in the terminal you can test whether a toon object can be created.
That is, if toonapilib is installed correctly and your credentials are correct :)

Good luck!
Hey waspy,

Thanks for helping me!

When i run your testscript i get:
Starting toonapilib test
On success the room temperature will be presented
Trying to create a toon object
An error occurred creating the Toon object
I have removed domoticz, removed the toonapilib library and reinstalled everyting again. Installing gives no errors. I have an toon subscription and can use the toonAP on my smartphone with the same credentials i use to configure your plugin.
Maybe i have to completely reinstall my rasp?
waspy
Posts: 52
Joined: Friday 22 February 2019 0:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10430
Contact:

Re: Error ToonThermostat

Post by waspy »

Apart from the credentials, you also need the API key and secret. Did you created those from the developer eneco site?

Verstuurd vanaf mijn SM-G935F met Tapatalk

Hiu80
Posts: 14
Joined: Thursday 11 April 2019 13:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 16182
Contact:

Re: Error ToonThermostat

Post by Hiu80 »

waspy wrote: Sunday 14 April 2019 16:05 Apart from the credentials, you also need the API key and secret. Did you created those from the developer eneco site?

Verstuurd vanaf mijn SM-G935F met Tapatalk
I did something wrong the last time. Now the script works and gives me:
Starting toonapilib test
On success the room temperature will be presented
Trying to create a toon object
Room temperature: 18.5
So, i does work. Why it is not working in domoticz i don't know. Installing a VM with stretch to build a test environment.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest