Toon (eneco) integration with Home Assistant

Is it working at your home assistant now? There are some problems by Eneco.
I get this message:
16-10-26 20:26:44 homeassistant.components.sensor.command_line: Timeout for command: python /home/hass/.homeassistant/config/scripts/toonclient.py -t -p -g -c -U ***** -P *****

I also have that occasionally. Also since 2 days or so (I noticed it after a reboot of HASS) it doesnā€™t retrieve the temperature, gasusage etc. anymore.
[EDIT] I notice it sometimes does show. SO basically itā€™s a bit unreliable :)[/EDIT]

We really need someone to create a script that uses the Toon API rather then the url.

Eneco Toon information is working again at my Home Assistant

For people having their Toon rooted, I have created a simple climate component to control/query it.
So you can use it without a subscription for Toon Op Afstand.
You can find it here:
https://github.com/cyberjunky/home-assistant-custom-components

2 Likes

Nice, thanks! I am going to test it.

@rdnzl Can you give the text from config files for this component?

thatā€™s even better. Is there a step by step procedure for rooting toon?

climate:

  • platform: toon
    name: Toon
    host: 192.168.178.2
    port: 10080
    scan_interval: 10

Yes, itā€™s somewhere on the domoticaforum, but keep in mind itā€™s not without risks, etcā€¦
And I believe the newer toons are protected.
Read this first, http://domoticaforum.eu/viewtopic.php?f=87&t=11230&p=80415#p80415
followed by inline text in this post http://www.domoticaforum.eu/viewtopic.php?f=87&t=11235

Thanx rdnzl

@Opdoffer, Thanks for your config update.
I have use this now in HA, but for the toonprogramm i have a error in de config and HA isā€™t display.

homeassistant.components.sensor.template: UndefinedError: ā€˜Noneā€™ has no attribute ā€˜stateā€™

Any idea what the problem is?

@opdoffer and @rmdejonge, Iā€™m experiencing the same problem here. Iā€™ve been doing some research, but Iā€™m also a bit of a HA-noob so I havenā€™t found any solution yet. My guess would be a path error, but Iā€™m not sure. Do you have any suggestions? All the Toon readings are showing up on the HA dashboard though. Thx!

Hi, Isnā€™t the Toon api free and open to use nowadays?
Did you manage to connect from HASS to Toon using their API?
I donā€™t really like to go the ā€œrootingā€ pathā€¦

Did you manage rooting and linking Toon?

With your script I still get a lot (this is just a snippet) of these errors:

17-01-02 20:49:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:50:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:51:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:52:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:53:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:54:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:55:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:56:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:57:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:58:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 20:59:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:00:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:01:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:02:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:03:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:04:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:05:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:06:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:07:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:08:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:09:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:10:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:11:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:12:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:13:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:14:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:15:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:16:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:17:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:18:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:19:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:20:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:21:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:22:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:23:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:24:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:25:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:26:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:27:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:28:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:29:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:30:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:31:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:32:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:33:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:34:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:35:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:36:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:37:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:38:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:39:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:40:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:41:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:42:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:43:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:44:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:45:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:46:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:47:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:48:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:49:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:50:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:51:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U
17-01-02 21:52:00 homeassistant.components.sensor.command_line: Command failed: python /home/hass/deps/toonclient.py -t -p -g -c -U

The TOON api is Open, but to connect your Toon to Enecoā€™s servers (so you can use the API) you have to pay a montly fee (as far as I know, but please let me know iā€™m incorrect so I can unroot mine)

Ah yes ok I understand. Indeed to connect to Eneco servers you need to pay a fee.
Iā€™m willing to pay the fee though, and still have the API connected directly do HASS so my automations work smoother.

So if anyone can work on developing such interface that would be great!

Would it be possible to post the complete config files for the eneco toon intergration ?
If I try to combine the configuration from github and this one I get config errors.
I canā€™t seem to figure out what is wrong and I am fairly new here (moved from Domoticz to Home Assistant).

Hello Quasar,

Check on this page my post from 3 juli 2016, i have share my config there.
Let me know or it is working

That is exactly what I put in my config files but the only thing that is displayed is the Gasverbruik and the value is unknown.
how does you configuration.yaml look like (how do you include the other yaml files)?

Hello Queasar,

You can also try this config:

 - platform: template
  scan_interval: 120
sensors:
toontemp:
  unit_of_measurement: "ĀŗC"
  value_template: '{{ states.sensor.toon.state.split("\n")[0] }}'
toonpowerusage:
  unit_of_measurement: "W"
  value_template: '{{ states.sensor.toon.state.split("\n")[1] }}'
toongasusage:
  unit_of_measurement: "M3"
  value_template: '{{ states.sensor.toon.state.split("\n")[2] }}'
toonprogramm:
  value_template: '{% if states.sensor.toon.state.split("\n")[3] == "0" %}Comfort{% elif states.sensor.toon.state.split("\n")[3] == "1" %}Home{% elif states.sensor.toon.state.split("\n")[3] == "2" %}Sleep{% elif states.sensor.toon.state.split("\n")[3] == "3" %}Away{% endif %}'

Then you have electric, gas and programm