Page 2 of 7

Re: Rooted Toon plugin

Posted: Wednesday 30 December 2020 22:10
by EdwinK
Seeing the same as Madpatrick reports.

Re: Rooted Toon plugin

Posted: Wednesday 30 December 2020 22:53
by hansaplast31
madpatrick wrote: Wednesday 30 December 2020 11:36
hansaplast31 wrote: Wednesday 30 December 2020 11:11 Version 1.0.2 is on git. zwave devices are now being read out

there are now three devices for gasflow/counter, electricity current usage/counter & generated electricity current delivery/counter.
the biggest struggle so far has finding the right device type, and I believe there is still room for improvement there.
Tried v1.02 and see this in the log. Not sure this is ok.

Code: Select all

2020-12-29 17:32:02.984 Status: (Toon2) Initialized version 1.0.2, author 'Hansaplast31'
2020-12-29 17:32:02.987 Status: (Toon2) Entering work loop.
2020-12-29 17:32:03.051 (Toon2) getZwaveInfo created
2020-12-29 17:32:03.110 (Toon2) Update 0:'18.8' (Toon2 - Current Temperature)
2020-12-29 17:32:03.111 (Toon2) Update 0:'19.0' (Toon2 - Setpoint Temperature)
2020-12-29 17:32:03.113 (Toon2) Update 0:'10' (Toon2 - Auto Program)
2020-12-29 17:32:03.114 (Toon2) Update 0:'50' (Toon2 - Program)
2020-12-29 17:32:03.115 (Toon2) Update 0:'No information received from Toon yet (-1)' (Toon2 - Program info)
2020-12-29 17:32:03.115 (Toon2) Update 0:'1.7' (Toon2 - Boiler pressure)
2020-12-29 17:32:03.116 (Toon2) Update 0:'0;0' (Toon2 - Electricity)
2020-12-29 17:32:03.117 (Toon2) Update 0:'0;0' (Toon2 - Generated Electricity)
2020-12-29 17:32:13.130 (Toon2) getZwaveInfo created
2020-12-29 17:32:23.202 (Toon2) getZwaveInfo created
2020-12-29 17:32:33.241 (Toon2) getZwaveInfo created
2020-12-29 17:32:43.330 (Toon2) getZwaveInfo created
2020-12-29 17:32:53.329 (Toon2) getZwaveInfo created
2020-12-29 17:33:03.414 (Toon2) getZwaveInfo created
2020-12-29 17:33:13.483 (Toon2) getZwaveInfo created
2020-12-29 17:33:23.521 (Toon2) getZwaveInfo created
2020-12-29 17:33:33.579 (Toon2) getZwaveInfo created
2020-12-29 17:33:43.624 (Toon2) getZwaveInfo created
2020-12-29 17:33:53.708 (Toon2) getZwaveInfo created
2020-12-29 17:34:03.743 (Toon2) getZwaveInfo created
2020-12-29 17:34:13.809 (Toon2) getZwaveInfo created
2020-12-29 17:34:23.849 (Toon2) getZwaveInfo created
2020-12-29 17:34:33.933 (Toon2) getZwaveInfo created
2020-12-29 17:34:43.993 (Toon2) getZwaveInfo created
2020-12-29 17:34:54.044 (Toon2) getZwaveInfo created
2020-12-29 17:35:04.057 (Toon2) getZwaveInfo created
2020-12-29 17:35:14.113 (Toon2) getZwaveInfo created
2020-12-29 17:35:24.158 (Toon2) getZwaveInfo created
2020-12-29 17:35:34.199 (Toon2) getZwaveInfo created
2020-12-29 17:35:44.305 (Toon2) getZwaveInfo created
2020-12-29 17:35:54.331 (Toon2) getZwaveInfo created
2020-12-29 17:36:04.409 (Toon2) getZwaveInfo created
2020-12-29 17:36:14.461 (Toon2) getZwaveInfo created
2020-12-29 17:36:24.551 (Toon2) getZwaveInfo created
2020-12-29 17:36:34.605 (Toon2) getZwaveInfo created
2020-12-29 17:36:44.639 (Toon2) getZwaveInfo created
2020-12-29 17:36:54.719 (Toon2) getZwaveInfo created
2020-12-29 17:37:04.757 (Toon2) getZwaveInfo created
2020-12-29 17:37:14.820 (Toon2) getZwaveInfo created
2020-12-29 17:37:24.881 (Toon2) getZwaveInfo created
2020-12-29 17:37:34.971 (Toon2) getZwaveInfo created
2020-12-29 17:37:44.985 (Toon2) getZwaveInfo created
2020-12-29 17:37:45.044 (Toon2) Update 0:'1.9' (Toon2 - Boiler pressure)
2020-12-29 17:37:55.065 (Toon2) getZwaveInfo created
2020-12-29 17:38:05.120 (Toon2) getZwaveInfo created
2020-12-29 17:38:15.221 (Toon2) getZwaveInfo created
2020-12-29 17:38:25.275 (Toon2) getZwaveInfo created
2020-12-29 17:38:35.299 (Toon2) getZwaveInfo created
2020-12-29 17:38:45.352 (Toon2) getZwaveInfo created
2020-12-29 17:38:55.380 (Toon2) getZwaveInfo created
2020-12-29 17:39:05.470 (Toon2) getZwaveInfo created
2020-12-29 17:39:15.520 (Toon2) getZwaveInfo created
2020-12-29 17:39:25.587 (Toon2) getZwaveInfo created
2020-12-29 17:39:35.679 (Toon2) getZwaveInfo created
2020-12-29 17:39:45.712 (Toon2) getZwaveInfo created
2020-12-29 17:39:55.787 (Toon2) getZwaveInfo created
2020-12-29 17:40:05.855 (Toon2) getZwaveInfo created
2020-12-29 17:40:15.931 (Toon2) getZwaveInfo created

The plugin is getting better !
For me the Energy device is currently the P1 and is working fine.
You can see the (realtime) energy flow from consumption and delivery (solar) in 1 device.
and also the actual use and total day use of both.
Image
Thanks the logging is a little bit verbose, but all good;) Will fix it for the next release.

Re: Rooted Toon plugin

Posted: Friday 01 January 2021 13:35
by hansaplast31
Howdy,

Just checked in a new version with less logging and also an extra P1 meter for electricity and generated electricity. you can pick which you like most now;-)

Re: Rooted Toon plugin

Posted: Friday 01 January 2021 17:35
by madpatrick
Hi

I've tried your update, but after af few minutes after installation something wierd is happening.
Als the created devices are gone and this is in the log:

Code: Select all

2021-01-01 17:30:00.700 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 7, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-01-01 17:31:47.540 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:31:57.628 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:31:57.632 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:01.346 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:01.361 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:02.659 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:02.663 Error: WebServer PO exception occurred : 'stoull'
I'm running a fresh new installed Domoticz with no other devices. Only the Toon plugin script
After a new instalaltion and removing IDX7 (P1 Gas) the sensors remains in Domoticz.
Only i see no update of the Gas or Electricity devices

Re: Rooted Toon plugin

Posted: Friday 01 January 2021 18:30
by hansaplast31
madpatrick wrote: Friday 01 January 2021 17:35 Hi

I've tried your update, but after af few minutes after installation something wierd is happening.
Als the created devices are gone and this is in the log:

Code: Select all

2021-01-01 17:30:00.700 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 7, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-01-01 17:31:47.540 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:31:57.628 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:31:57.632 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:01.346 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:01.361 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:02.659 Error: WebServer PO exception occurred : 'stoull'
2021-01-01 17:32:02.663 Error: WebServer PO exception occurred : 'stoull'
I'm running a fresh new installed Domoticz with no other devices. Only the Toon plugin script
After a new instalaltion and removing IDX7 (P1 Gas) the sensors remains in Domoticz.
Only i see no update of the Gas or Electricity devices
Unit=7 is the gas device. I changed the type. If the plugin was there already the old device type is still active. remove the plugin and add it again, should do the trick.

Re: Rooted Toon plugin

Posted: Friday 01 January 2021 19:13
by madpatrick
PLease add some debugging info for testing in the log to see what is happening.
I don't see any update to the sensors, but get not see what could be the problem

Re: Rooted Toon plugin

Posted: Friday 01 January 2021 19:27
by hansaplast31
madpatrick wrote: Friday 01 January 2021 19:13 PLease add some debugging info for testing in the log to see what is happening.
I don't see any update to the sensors, but get not see what could be the problem
Debugging information is still in the plugin. all Domoticz.Log calls have been replaced by Domoticz.Debug calls. with verbose logging you should see them. I think this could help:
viewtopic.php?t=8878

This worked before for you right? if the above fails PM me.

Re: Rooted Toon plugin

Posted: Monday 04 January 2021 16:14
by rleunk
Hello, installed the plugin in a clean domoticz and a fresh ubuntu image on my proxmox server.
Only the first version off the plugin gave me the right reading for energy, in the versions after that all energy values are 0

On start i get the following
2021-01-04 15:53:03.863 Sunrise: 08:43:00 SunSet: 16:35:00
2021-01-04 15:53:03.863 Day length: 07:52:00 Sun at south: 12:39:00
2021-01-04 15:53:03.863 Civil twilight start: 08:02:00 Civil twilight end: 17:15:00
2021-01-04 15:53:03.863 Nautical twilight start: 07:18:00 Nautical twilight end: 17:59:00
2021-01-04 15:53:03.863 Astronomical twilight start: 06:37:00 Astronomical twilight end: 18:40:00
2021-01-04 15:53:03.776 Status: Domoticz V2020.2 (build 12738) (c)2012-2020 GizMoCuz
2021-01-04 15:53:03.776 Status: Build Hash: 7a65ccbb5-modified, Date: 2020-12-14 08:08:23
2021-01-04 15:53:03.776 Status: Startup Path: /home/root/domoticz/
2021-01-04 15:53:04.065 Active notification Subsystems: (0/13)
2021-01-04 15:53:04.116 Starting shared server on: :::6144
2021-01-04 15:53:04.059 Status: PluginSystem: Started, Python version '3.6.9'.
2021-01-04 15:53:04.075 Status: WebServer(HTTP) started on address: :: with port 8080
2021-01-04 15:53:04.098 Status: WebServer(SSL) started on address: :: with port 443
2021-01-04 15:53:04.118 Status: TCPServer: shared server started...
2021-01-04 15:53:04.136 Status: RxQueue: queue worker started...
2021-01-04 15:53:06.153 Status: EventSystem: reset all events...
2021-01-04 15:53:06.153 Status: NotificationSystem: thread started...
2021-01-04 15:53:06.177 Status: EventSystem: reset all device statuses...
2021-01-04 15:53:06.328 Status: Python EventSystem: Initalizing event module.
2021-01-04 15:53:06.330 Status: EventSystem: Started
2021-01-04 15:53:06.331 Status: EventSystem: Queue thread started...
2021-01-04 15:53:06.379 Status: PluginSystem: Entering work loop.
2021-01-04 15:56:02.597 (Toon2) onStart called
2021-01-04 15:56:02.437 Status: (Toon2) Started.
2021-01-04 15:56:02.594 Status: (Toon2) Entering work loop.
2021-01-04 15:56:02.595 Status: (Toon2) Initialized version 1.0.4, author 'Hansaplast31'
2021-01-04 15:56:02.771 Error: (Toon2) 'onMessage' failed 'ValueError':'cannot convert float NaN to integer'.
2021-01-04 15:56:02.771 Error: (Toon2) ----> Line 433 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessage
2021-01-04 15:56:02.771 Error: (Toon2) ----> Line 361 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessage
2021-01-04 15:56:02.771 Error: (Toon2) ----> Line 297 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessageZwaveInfo
2021-01-04 15:56:12.741 Error: (Toon2) 'onMessage' failed 'ValueError':'cannot convert float NaN to integer'.
2021-01-04 15:56:12.741 Error: (Toon2) ----> Line 433 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessage
2021-01-04 15:56:12.741 Error: (Toon2) ----> Line 361 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessage
2021-01-04 15:56:12.741 Error: (Toon2) ----> Line 297 in '/home/root/domoticz/plugins/domoticz-rooted-toon/plugin.py', function onMessageZwaveInfo
2021-01-04 15:56:22.758 Error: (Toon2) 'onMessage' failed 'ValueError':'cannot convert float NaN to integer'.
This is from my rooted Toon2, but my test Toon1 and / or ubuntu / debian gives the same result, is there something i can try?

Re: Rooted Toon plugin

Posted: Monday 04 January 2021 16:56
by hansaplast31
[quote=rleunk post_id=265265 time=1609773259 user_id=13104

This is from my rooted Toon2, but my test Toon1 and / or ubuntu / debian gives the same result, is there something i can try?
[/quote]

Hey thanks for testing on a toon2. this is not done before:-)
can you send me the output (text) when entering this in your browser, replace ipoftoon with the ip of your toon2.

http://ipoftoon/hdrv_zwave?action=getDevices.json

you can also try the previous version of the plugin, which happens to have a change around the code the error was thrown.
step 1 from command line was

git clone https://github.com/hansaplast26/domotic ... d-toon.git

now go into domoticz-rooted-toon:

cd domoticz-rooted-toon

and execute:

git checkout 690b9b7

Re: Rooted Toon plugin

Posted: Monday 04 January 2021 17:19
by madpatrick
I've updated to latest version and the P1 meter are now updated with values.
Only apperently not the correct so far i can see.
Image

Image

I'll try to fix out which values are now presented

btw. I'm using a Toon2 ;)

Re: Rooted Toon plugin

Posted: Monday 04 January 2021 17:29
by rleunk
Hansaplast31, one my Toon2 aswell on my test Toon1 i get the same error when i start the plugin, I send to the readouts for http://ipoftoon/hdrv_zwave?action=getDevices.json for my Toon2 and Toon1 by PM

with the git checkout 690b9b7 i get on startup:
2021-01-04 17:30:45.766 Sunrise: 08:43:00 SunSet: 16:35:00
2021-01-04 17:30:45.766 Day length: 07:52:00 Sun at south: 12:39:00
2021-01-04 17:30:45.766 Civil twilight start: 08:02:00 Civil twilight end: 17:15:00
2021-01-04 17:30:45.766 Nautical twilight start: 07:18:00 Nautical twilight end: 17:59:00
2021-01-04 17:30:45.766 Astronomical twilight start: 06:37:00 Astronomical twilight end: 18:40:00
2021-01-04 17:30:45.686 Status: Domoticz V2020.2 (build 12738) (c)2012-2020 GizMoCuz
2021-01-04 17:30:45.686 Status: Build Hash: 7a65ccbb5-modified, Date: 2020-12-14 08:08:23
2021-01-04 17:30:45.686 Status: Startup Path: /home/root/domoticz/
2021-01-04 17:30:46.055 Active notification Subsystems: (0/13)
2021-01-04 17:30:46.081 Starting shared server on: :::6144
2021-01-04 17:30:46.047 Status: PluginSystem: Started, Python version '3.6.9'.
2021-01-04 17:30:46.068 Status: WebServer(HTTP) started on address: :: with port 8080
2021-01-04 17:30:46.079 Status: WebServer(SSL) started on address: :: with port 443
2021-01-04 17:30:46.082 Status: RxQueue: queue worker started...
2021-01-04 17:30:46.082 Status: TCPServer: shared server started...
2021-01-04 17:30:48.544 (Toon) onStart called
2021-01-04 17:30:48.083 Status: (Toon) Started.
2021-01-04 17:30:48.083 Status: NotificationSystem: thread started...
2021-01-04 17:30:48.083 Status: EventSystem: reset all events...
2021-01-04 17:30:48.091 Status: EventSystem: reset all device statuses...
2021-01-04 17:30:48.213 Status: Python EventSystem: Initalizing event module.
2021-01-04 17:30:48.216 Status: EventSystem: Started
2021-01-04 17:30:48.216 Status: EventSystem: Queue thread started...
2021-01-04 17:30:48.279 Status: PluginSystem: Entering work loop.
2021-01-04 17:30:48.537 Status: (Toon) Initialized version 1.0.4, author 'Hansaplast31'
2021-01-04 17:30:48.538 Status: (Toon) Entering work loop.
No errors following this, but still no energy readout for electricity all are 0,0,0,0,0

Re: Rooted Toon plugin

Posted: Monday 04 January 2021 17:35
by madpatrick
Maybe this helps. This is the secuence of the P1 readout

Code: Select all

P1     (usage1, usage2, return1, return2, cons, prod)

--usage1= energy usage meter tariff 1
--usage2= energy usage meter tariff 2
--return1= energy return meter tariff 1
--return2= energy return meter tariff 2
--cons= actual usage power (Watt)
--prod= actual return power (Watt)

Re: Rooted Toon plugin

Posted: Sunday 31 January 2021 21:20
by Nodri
Thanks, this is now running on my Toon 1.
Following this thread.

Re: Rooted Toon plugin

Posted: Tuesday 09 February 2021 15:03
by pvdgulik
I will follow as well!

Would be nice also to have Domoticz-sensors --> Toon.

Re: Rooted Toon plugin

Posted: Wednesday 17 February 2021 16:58
by HansieNL
hennykarreman wrote: Wednesday 17 February 2021 15:46 Ik heb plgin.py naar de plugin directory gekopieerd en de Raspberry opnieuw gestart.
Ik zie geen nieuwe hardware verschijnen.
Wat zou ik verkeerd gedaan kunnen hebben?

mvg
Henny
Did you enable on the settings menu accept new hardware devices?

Re: Rooted Toon plugin

Posted: Thursday 18 February 2021 16:15
by EdwinK
pvdgulik wrote: Thursday 18 February 2021 14:22
Cause found:

In Hardware, set Rooted Show to Disabled.
Then turn on: in the settings menu accept new hardware devices
Then in Hardware, set Rooted Show to Enabled.

Now the different Toon Devices come into devices.

A bit strange, but it works
That is normal behaviour for Domoticz when adding new devixes.

Re: Rooted Toon plugin

Posted: Monday 01 March 2021 15:14
by hennykarreman
I have a Toon V2 and solar panels.

I have installed the plugin and added hardware.

I now have 2 devices:
Toon-Electricity and Toon-Generated Electricity
I get to see values ​​that I do not understand when I compare these values ​​with the values ​​indicated on Show.
Toon.jpg
Toon.jpg (317.59 KiB) Viewed 13794 times

Re: Rooted Toon plugin

Posted: Monday 01 March 2021 15:58
by madpatrick
hennykarreman wrote: Monday 01 March 2021 15:14 I have a Toon V2 and solar panels.

I have installed the plugin and added hardware.

I now have 2 devices:
Toon-Electricity and Toon-Generated Electricity
I get to see values ​​that I do not understand when I compare these values ​​with the values ​​indicated on Show.
Maybe the sequence of the values is not good.
Check in the hardware section the values sequence

Code: Select all

Toon v2 Zwave values (unconfirmed): 2.1, 2.4, 2.6, 2.5, 2.7

Re: Rooted Toon plugin

Posted: Wednesday 03 March 2021 12:09
by rick083
After installing the Plugin (v 1.09) looks like there's one device missing in my device list ( IDX 114 ). After IDX 113 the list is showing IDX 115, 116 etc.

My Logfile Shows:

Code: Select all

2021-03-03 11:30:00.839 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:33:13.485 Error: Gas - invalid value: ''
2021-03-03 11:35:00.491 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:40:00.108 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:42:05.540 Error: CConnection_connect, connect request from 'Toon Thermostaat' ignored. Transport is connected.
2021-03-03 11:42:13.500 Error: CConnection_connect, connect request from 'Toon Thermostaat' ignored. Transport is connected.
2021-03-03 11:45:00.660 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
Looks like the Gas counter is not present; Any way to correct this ? Thanks...

Re: Rooted Toon plugin

Posted: Wednesday 03 March 2021 19:20
by madpatrick
rick083 wrote: Wednesday 03 March 2021 12:09 After installing the Plugin (v 1.09) looks like there's one device missing in my device list ( IDX 114 ). After IDX 113 the list is showing IDX 115, 116 etc.

My Logfile Shows:

Code: Select all

2021-03-03 11:30:00.839 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:33:13.485 Error: Gas - invalid value: ''
2021-03-03 11:35:00.491 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:40:00.108 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
2021-03-03 11:42:05.540 Error: CConnection_connect, connect request from 'Toon Thermostaat' ignored. Transport is connected.
2021-03-03 11:42:13.500 Error: CConnection_connect, connect request from 'Toon Thermostaat' ignored. Transport is connected.
2021-03-03 11:45:00.660 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 114, sValue: '', sUsage: '0', dType: 251, sType: 2)
Looks like the Gas counter is not present; Any way to correct this ? Thanks...
You can try to remove the hardware and reinstall the plugin.
After installing of the plugin, the hardware will be created