Controlling Toon [HACKED] from Domoticz

For heating/cooling related questions in Domoticz

Moderator: leecollings

qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by qwerk »

I bought my Toon second hand

I am missing the sensor cables. I only have a p1 cable but no smart p1 meter :(

does any one know where to buy them?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by EdwinK »

qwerk wrote: Sunday 13 August 2017 17:12 I bought my Toon second hand

I am missing the sensor cables. I only have a p1 cable but no smart p1 meter :(

does any one know where to buy them?
Contact your energy transporter (Stedin. Alliander) and check with them if you can get a smart meter. Maybe you are already in the planning to get one.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by qwerk »

Thank you for pointing out this option
I am not on the schedule yet, so it will take at least two years.
Or I have to pay € 75.--.

So I rather buy the cables/sensors ;)
arie123
Posts: 2
Joined: Monday 21 August 2017 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by arie123 »

i have the sensors for you

ik heb ze wel de sensors voor toon

kan iemand mij in het nederlands uitleggen hoe ik de geroote Toon aansluit op domoticz

dankje
Toon, zon op toon ,Raspberry pi met Domoticz ,Solaredge PV 4050 3900kw per jaar
arie123
Posts: 2
Joined: Monday 21 August 2017 20:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by arie123 »

is there a way to use the Toon P1 electric and gas usage to my domoticz
Toon, zon op toon ,Raspberry pi met Domoticz ,Solaredge PV 4050 3900kw per jaar
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

How do you make these sensors (toon temperature, toon scenes etc) and where do you put the script code?
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

EdwinK wrote: Monday 28 August 2017 10:03
qwerk wrote: Sunday 13 August 2017 17:12 I bought my Toon second hand

I am missing the sensor cables. I only have a p1 cable but no smart p1 meter :(

does any one know where to buy them?
Look at Marktplaats.nl search for Eneco Toon, Pulse Electronics. I have bought them there for ca 18 euro inc postage a few days ago
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

Maes wrote: Tuesday 05 April 2016 21:23
selector.png
selector.png (226.57 KiB) Viewed 3422 times
Tried to make a virtual switch (toon scenes) but where do i put the Script, also there is a undefined level?
Try to make a virtual sensor
Try to make a virtual sensor
Schermafbeelding 2017-09-18 om 12.24.01.jpg (174.02 KiB) Viewed 3415 times
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

How do you call this script?
Where do you put this script?
How do you start this script?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by EdwinK »

Read this page, it is all there.

http://domoticz.com/wiki/Toon

*forgot to add the link*
Last edited by EdwinK on Tuesday 19 September 2017 16:20, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

EdwinK wrote: Tuesday 19 September 2017 15:02 Read this page, it is all there.
Nope, i have started to read from 1st message from Maes, start with creating variables (7 rows) start to create the first device Toon Thermostaat > dummy Sensor type selector switch Toon scenes, switch type selector fill in levels and the switch on the screen works, but of course nothing happened.
Read the other 47 messages but none gives names of the scripts and where to put them (? more options events but there is already a lua script of 51 rows).
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by EdwinK »

Forgot to add the link to the wiki page.

http://domoticz.com/wiki/Toon
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

Yes but even this wiki don't tell me where to put the script (and the script is different from the scripts from Maes)

There is already a script on Setup > More Options > Events see picture. So how to put the new scripts in it?
existing script in Domoticz
existing script in Domoticz
Schermafbeelding 2017-09-19 om 16.27.43.jpg (262.82 KiB) Viewed 3374 times
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by EdwinK »

That is just an example. Remove it and paste the script from the wiki in it.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

Nothing changed. Toon scripts and Toon auto program should dial functions with http.... directly in Toon but too bad nothing happens.
Sensors like Toon Temperature and utils like toon thermostat should use script, but i can not call any script from these dummies.
Schermafbeelding 2017-09-20 om 11.34.04.jpg
Schermafbeelding 2017-09-20 om 11.34.04.jpg (27.9 KiB) Viewed 3340 times
Schermafbeelding 2017-09-20 om 11.33.55.jpg
Schermafbeelding 2017-09-20 om 11.33.55.jpg (142.91 KiB) Viewed 3340 times
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

I have domoticz on Synology. I had saved my script as ToonGetInfo, Too bad i can not find it back on:

root@walsyno:/volume1/@appstore/domoticz/var/scripts/lua# dir
total 68
drwxr-xr-x 2 domoticz root 4096 Nov 10 2016 .
drwxr-xr-x 7 domoticz root 4096 Nov 10 2016 ..
-rw-r--r-- 1 domoticz root 50533 Nov 10 2016 JSON.lua
-rw-r--r-- 1 domoticz root 1870 Nov 10 2016 script_device_demo.lua
-rw-r--r-- 1 domoticz root 1932 Nov 10 2016 script_time_demo.lua
root@walsyno:/volume1/@appstore/domoticz/var/scripts/lua#

Also i found the log of domoticz:
2017-09-20 14:23:00.014 Error: EventSystem: in ToonGetInfo: [string "-- Time script runs every minute, intended to..."]:18: cannot open C:\Program Files (x86)\Domoticz\scripts\lua\json.lua: No such file or directory
of course as i have no drive letters. This is a script for Windows So first i changed some rows until there is no error

ToonIP = uservariables['192.168.178.70']
DomoticzIP = uservariables['192.168.178.28:8084']

json = assert(loadfile "/volume1/@appstore/domoticz/var/scripts/lua/json.lua")
change json.lua to JSON.lua also on row 24

And every time start over synology. Is there a way to restart only domoticz?

There is just one error left for this script:
2017-09-20 15:09:00.648 Error: EventSystem: in ToonGetInfo: [string "-- Time script runs every minute, intended to..."]:24: attempt to index global 'JSON' (a nil value)
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

walberg wrote: Wednesday 20 September 2017 14:54 I have domoticz on Synology. I had saved my script as ToonGetInfo, Too bad i can not find it back on:

root@walsyno:/volume1/@appstore/domoticz/var/scripts/lua# dir
total 68
drwxr-xr-x 2 domoticz root 4096 Nov 10 2016 .
drwxr-xr-x 7 domoticz root 4096 Nov 10 2016 ..
-rw-r--r-- 1 domoticz root 50533 Nov 10 2016 JSON.lua
-rw-r--r-- 1 domoticz root 1870 Nov 10 2016 script_device_demo.lua
-rw-r--r-- 1 domoticz root 1932 Nov 10 2016 script_time_demo.lua
root@walsyno:/volume1/@appstore/domoticz/var/scripts/lua#

Also i found the log of domoticz:
2017-09-20 14:23:00.014 Error: EventSystem: in ToonGetInfo: [string "-- Time script runs every minute, intended to..."]:18: cannot open C:\Program Files (x86)\Domoticz\scripts\lua\json.lua: No such file or directory
of course as i have no drive letters. This is a script for Windows So first i changed some rows until there is no error

json = assert(loadfile "/volume1/@appstore/domoticz/var/scripts/lua/json.lua")
change json.lua to JSON.lua also on row 24
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

Now i got a temperature on Toon temperature also no error But when i go to Toon Scenes and change the setting from home (thats the setting on de day normal so now) to by example away or sleep, it change after a few seconds to home.
Also on the ToonThermostaat script
Error: EventSystem: in ToonThermostaat: [string "-- Script used for Toon Thermostaat utility d..."]:8: bad argument #1 to 'pairs' (table expected, got nil)
And when i push on the flame at dummy Toon Thermostat, i got 2 arrows but after a few seconds after changing setpoint the setpoint is back on the original temperature.
So finally only the temperature sensor is really working the event switches and the thermostat ar reset after a few seconds.
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

walberg wrote: Wednesday 20 September 2017 16:05 Now i got a temperature on Toon temperature also no error But when i go to Toon Scenes and change the setting from home (thats the setting on de day normal so now) to by example away or sleep, it change after a few seconds to home.
Also on the ToonThermostaat script
Error: EventSystem: in ToonThermostaat: [string "-- Script used for Toon Thermostaat utility d..."]:8: bad argument #1 to 'pairs' (table expected, got nil)
And when i push on the flame at dummy Toon Thermostat, i got 2 arrows but after a few seconds after changing setpoint the setpoint is back on the original temperature.
So finally only the temperature sensor is really working the event switches and the thermostat ar reset after a few seconds.
Schermafbeelding 2017-09-21 om 14.20.34.jpg
Schermafbeelding 2017-09-21 om 14.20.34.jpg (85.05 KiB) Viewed 3306 times
Schermafbeelding 2017-09-21 om 14.15.38.jpg
Schermafbeelding 2017-09-21 om 14.15.38.jpg (27.59 KiB) Viewed 3306 times
Schermafbeelding 2017-09-21 om 14.15.29.jpg
Schermafbeelding 2017-09-21 om 14.15.29.jpg (32.66 KiB) Viewed 3306 times
walberg
Posts: 46
Joined: Thursday 28 May 2015 18:41
Target OS: NAS (Synology & others)
Domoticz version: 3.5877
Location: Diemen Netherlands
Contact:

Re: Controlling Toon [HACKED] from Domoticz

Post by walberg »

[/quote]

I have installed this too, but when i change the temperature on Toon Thermostaat the temperature stays the same. Also when i change one of the events, after a few seconds the setting is reset the the original state Only Toon Temperature is working but of course it is a one way from Toon to Domoticz.
All the other reads Toon but from Domoticz you can not change anything.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests