I like to share with you a python3 module of Eneco Toon (mostly forthe dutch users among us). This module let you read the thermostat for temperature, powerusage and gasusage. You are also able to set program to sleep,away,home,holiday.
Let me know your thoughts and results when implementing this.
So i’m having a bit of trouble.
I have HASS running on a pi jessie in a virtual environment.
I copied the 2 py files in /home/hass/deps/ and ran the python command.
Then I copied the text to my yaml file (and changed the to match mine.
After restarting HASS, HASS doesn’t start at all. It doesn’t even update the HASS log file.
Any idea what I’m doing wrong?
You can also catch me on TG @puckstar35 or email/pm via here.
I think there is something wrong with the yaml text in the config. I’ll check that tomorrow. Yaml looks very closely to tabs and space. And i might some onconsitency in there.
Hi @PuckStar PuckStar. I found the problems in de config example. I corrected the tabs, spaces and the capitals. The config should now be working. I tested the config on my HA and it started. I’m running version 0.21.0.
Thnx for trying and testing.
In case you’re still having problems try raising your logging level and check the logfiles. It should point you in the right direction.
The updated version of the config example file is now on github.
I stripped my login and password so of course that’s also in every record.
I know it’s probably because Toon doesn’t want you to connect so often, but is this something to worry about? Or can I just leave it as it is.
Also you can I could set the temperature manually as well. How would I include that functionality?
Not that it’s really needed now in the summer :), but at least we’re then prepared for winter :).
I have the same errors in my log. But Toon is actually working. The reason for the errors is that the eneco webserivce is only accepting 1 or 2 clientrequest per 2 or 3 minutes. And Home assistant default scan_interval can be setup max to 60 sec.
For now you can raise the scan_interval and ignore the errors. It is not harming anything, but would be nice and cleaner if we can fix this later. But really relying on the feautre request is implemented.
Another psosible solution would be create one sensor with multiple values. But did not figure that out yet.
I just updated the github config example and added the scan_interval option.
The discription says; Install in Docker Container homeassistant/home-assistant.
What does that mean? I am sorry, i don’t know that.
I have installated home assistant from this discripton: https://home-assistant.io/getting-started/installation-virtualenv/
Can you tell me how can i take this step? : Import toon.py module with the following command:
Only follow the docker installation steps in case you use home assistant in docker. If that doesn’t say anything to you, you are probably not using docker ;). So please use the general installation steps. I will make the read.md more clear.
You probably just need to pick up from:… And run the following command:
Thx @opdoffer! I have do what your say, as the discriptyion. But still this error:
Any idea what is wrong?
16-07-13 09:11:29 homeassistant.components.switch: Error while setting up platform command_line
Traceback (most recent call last):
File "/srv/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/switch/command_line.py", line 23, in setup_platform
for dev_name, properties in switches.items():
AttributeError: 'NoneType' object has no attribute 'items'
16-07-13 09:11:29 homeassistant.components.switch: Error while setting up platform command_line
Traceback (most recent call last):
File "/srv/hass/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
discovery_info)
File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/switch/command_line.py", line 23, in setup_platform
for dev_name, properties in switches.items():
AttributeError: 'NoneType' object has no attribute 'items'
16-07-13 09:11:32 homeassistant.components.sensor.command_line: Command failed: python /config/scripts/toonclient.py -t -U ***** -P *****
@opdoffer, thanks, it is working now! Nice part of home assistant.
Sorry for my questions, python and home assistant is new for me, Every day i learn a lot of it
Have a nice weekend!
Since the eneco webservice is not accepting more requests than 1 per 3 minutes and hass can only be configured to an update frequency 60 sec max, I use an external script to get updates from eneco toon every 10 minutes and read the output of a file as a sensor. Example can be found here Sensor data from file
This prevents your log from displaying anoying toon sensor errors.