MadPatrick / domoticz_toon

Toon Control for Domoticz
GNU General Public License v2.0
6 stars 1 forks source link

Selector sensors we use #4

Closed PeJeWe closed 1 year ago

PeJeWe commented 1 year ago

I use the Toon V1 I have no hum and pressure sensor. And i do not use the P1 data via the toon. Is there a option to prevent/use sensors we not use?

PeJeWe commented 1 year ago

It seems that it takes a lot of effort to adapt the script to make it possible. I have commented the lines in the script that prevent the creation of the device's. And domoticz gives errors on these devices.

MadPatrick commented 1 year ago

@PeJeWe

Do you stil needed to have some sensors selectable or disabled? Or is it working for you now?

PeJeWe commented 1 year ago

It would be nice to have the select options. Although I have it working for now. If there be add extra options in the future, I have to readjust the script again to work for me.

MadPatrick commented 1 year ago

Domoticz has limitation of 6 modes in a python script So we need to re-adjust to get more options

PeJeWe commented 1 year ago

My python skills are very limited. Otherwise I would like to help/test.

MadPatrick commented 1 year ago

every help is welcome ;-)

PeJeWe commented 1 year ago

I have opened the issue again.

MadPatrick commented 1 year ago

Preparations are made in Beta Branch it is not ready yet, but i've freed some modes now

JanJaapKo commented 1 year ago

Does this lead to errors or just a bunch of devices you're not using? In case the latter, I propose to change the default setting to 'not used' and then the user can select what they need (as many plugins do). Agree?

MadPatrick commented 1 year ago

I'm not sure if we disable the device this will lead to errors if you do not have the hardware. The plugin will retrieve the info, but it is not available in the Toon Or doesn't it work this way?

JanJaapKo commented 1 year ago

No clue. @PeJeWe do you get any errors?

PeJeWe commented 1 year ago

I only get errors from domoticz Incase of can't creating hardware devices Domoticz gives no error if the hardware is not present, the data of that sensor stays on zero and will not be updated by the script.

The option to set it in the script to "not used" is ok.

So the user can set the one they use to "create"?

MadPatrick commented 1 year ago

I've set the default devices are enabled now. Other are disabled.

Please check if this give you any errors

JanJaapKo commented 1 year ago

And please add debug logging in case of errors, then we can see if we can implement something for that.

PeJeWe commented 1 year ago

Ok, i will check now

Ok, first i had removed everything, i started fresh. The scene temp section is not clear witch temp is set (name explanation). This is the error list i get. I do not use the P1 settings and have not set the zwave values.

2023-01-16 20:39:15.893 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:15.893 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 605, in onStart
2023-01-16 20:39:15.893 Error: Toon: _plugin.onStart()
2023-01-16 20:39:15.893 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 194, in onStart
2023-01-16 20:39:15.893 Error: Toon: self.scene2=sceneList[1]
2023-01-16 20:39:15.893 Error: Toon: IndexError: list index out of range
2023-01-16 20:39:16.068 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:39:16.069 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:16.069 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:39:16.069 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:39:16.069 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:39:16.069 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:39:16.069 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:39:16.069 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:39:16.069 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:39:25.164 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:39:25.164 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:25.164 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:39:25.164 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:39:25.164 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:39:25.164 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:39:25.164 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:39:25.164 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:39:25.164 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:39:35.199 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:39:35.200 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:35.200 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:39:35.200 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:39:35.200 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:39:35.200 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:39:35.200 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:39:35.200 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:39:35.200 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:39:45.182 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:39:45.183 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:45.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:39:45.183 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:39:45.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:39:45.183 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:39:45.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:39:45.183 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:39:45.183 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:39:55.182 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:39:55.183 Error: Toon: Traceback (most recent call last):
2023-01-16 20:39:55.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:39:55.183 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:39:55.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:39:55.183 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:39:55.183 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:39:55.183 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:39:55.183 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:40:01.449 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 996, sValue: '', sUsage: '0', dType: 251, sType: 2)
2023-01-16 20:40:05.214 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:40:05.214 Error: Toon: Traceback (most recent call last):
2023-01-16 20:40:05.215 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:40:05.215 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:40:05.215 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:40:05.215 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:40:05.215 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:40:05.215 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:40:05.215 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:40:15.196 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:40:15.197 Error: Toon: Traceback (most recent call last):
2023-01-16 20:40:15.197 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:40:15.197 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:40:15.197 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:40:15.197 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:40:15.197 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:40:15.197 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:40:15.197 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:40:25.190 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:40:25.191 Error: Toon: Traceback (most recent call last):
2023-01-16 20:40:25.192 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:40:25.192 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:40:25.192 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:40:25.192 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:40:25.192 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:40:25.192 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:40:25.192 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:40:35.283 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:40:35.283 Error: Toon: Traceback (most recent call last):
2023-01-16 20:40:35.283 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:40:35.283 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:40:35.283 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:40:35.283 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:40:35.283 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:40:35.283 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:40:35.283 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:40:45.221 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-16 20:40:45.221 Error: Toon: Traceback (most recent call last):
2023-01-16 20:40:45.221 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 617, in onMessage
2023-01-16 20:40:45.221 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-16 20:40:45.221 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 495, in onMessage
2023-01-16 20:40:45.221 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-16 20:40:45.221 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 334, in onMessageThermostatInfo
2023-01-16 20:40:45.221 Error: Toon: if strCurrentSetpoint == self.scene2:
2023-01-16 20:40:45.221 Error: Toon: AttributeError: 'BasePlugin' object has no attribute 'scene2'
2023-01-16 20:43:05.225 Error: Toon: Invalid list of user defined, please provide exactly 5 adresses, separated by semi colon ';'
2023-01-16 20:45:01.073 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1001, sValue: '', sUsage: '0', dType: 251, sType: 2)

update 2: No sensors are selected yet in the devices section.

PeJeWe commented 1 year ago

After devices set, this is the errors i get

2023-01-16 20:52:14.475 Error: Toon: Invalid list of user defined, please provide exactly 5 adresses, separated by semi colon ';'
2023-01-16 20:55:00.619 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1001, sValue: '', sUsage: '0', dType: 251, sType: 2)

It seems you stil have to set the toon P1 values? I had set toon version to "user defined" because i dont use the P1 data. and left the "P1 adresses user defined:" section empty

PeJeWe commented 1 year ago

example witch temp order


==== Scene configuration Away,Sleep,Home,Comfort (default=18.0;17.9;19.5;20.0) ====
MadPatrick commented 1 year ago

After devices set, this is the errors i get

2023-01-16 20:52:14.475 Error: Toon: Invalid list of user defined, please provide exactly 5 adresses, separated by semi colon ';' 2023-01-16 20:55:00.619 Error: UpdateMeter: Error converting sValue/sUsage! (IDX: 1001, sValue: '', sUsage: '0', dType: 251, sType: 2)

It seems you stil have to set the toon P1 values? I had set toon version to "user defined" because i dont use the P1 data. and left the "P1 adresses user defined:" section empty

Choose v1 or v2 to test

MadPatrick commented 1 year ago

example witch temp order ==== Scene configuration Away,Sleep,Home,Comfort (default=18.0;17.9;19.5;20.0) ====

What is exact your question?

PeJeWe commented 1 year ago

After disabling auto-accept hardware (domoticz) and deleting the devices that i not want i get the following errors.

2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices.

PeJeWe commented 1 year ago

example witch temp order ==== Scene configuration Away,Sleep,Home,Comfort (default=18.0;17.9;19.5;20.0) ====

What is exact your question?

To clarify the temp settings in the following order

MadPatrick commented 1 year ago

After disabling auto-accept hardware (domoticz) and deleting the devices that i not want i get the following errors.

2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices.

Maybe a Domoticz restart? Looks to me a Domoticz issue

MadPatrick commented 1 year ago

You need to fill in the setting as you have setup in your Toon Or via : http://TOON_IP/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates

ID: "0" = Comfort ID: "1" = Home ID: "2" = Sleep ID: "3" = Away

For me it is like this: Away = 18.0 Sleep = 17.0 Home,= 19.5 Comfort = 20.0

PeJeWe commented 1 year ago

After disabling auto-accept hardware (domoticz) and deleting the devices that i not want i get the following errors. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices.

Maybe a Domoticz restart? Looks to me a Domoticz issue

After domoticz restart, the errors are getting back.

PeJeWe commented 1 year ago

You need to fill in the setting as you have setup in your Toon Or via : http://TOON_IP/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates

ID: "0" = Comfort ID: "1" = Home ID: "2" = Sleep ID: "3" = Away

For me it is like this: Away = 18.0 Sleep = 17.0 Home,= 19.5 Comfort = 20.0

That's ok.

It was not clear in the description of the plugin. Sow i thought maybe you can add the text "Away,Sleep,Home,Comfort" to make it more clear?

JanJaapKo commented 1 year ago

After disabling auto-accept hardware (domoticz) and deleting the devices that i not want i get the following errors. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices. 2023-01-16 21:27:50.964 Error: Toon: Device creation failed, Domoticz settings prevent accepting new devices.

Maybe a Domoticz restart? Looks to me a Domoticz issue

After domoticz restart, the errors are getting back.

You have to enable accepting new hardware otherwise it wont work.

JanJaapKo commented 1 year ago

OK, as version 1.4.10 I pushed a change where, if you have use zwave set to No, it does not do anything with it. Should then be able to leave the fields empty without errors.

PeJeWe commented 1 year ago

When i leave the "accepting new hardware" on, my database gets to large because my RFLink and RFXCOM keeps gettings data from devices in my neighborhood. i don't want that. I have now adapted the script that prevents the creating of new devices.

I have placed a # in front of the lines that creates the devices so the devices i dont use, not getting added by domoticz

OK, as version 1.4.10 I pushed a change where, if you have use zwave set to No, it does not do anything with it. Should then be able to leave the fields empty without errors.

Thats nice work

JanJaapKo commented 1 year ago

When i leave the "accepting new hardware" on, my database gets to large because my RFLink and RFXCOM keeps gettings data from devices in my neighborhood.

OK, I get that. You then (I guess) have to switch it on temporarily to add the hardware from the new plugin and then switch it off again?

I have placed a # in front of the lines that creates the devices so the devices i dont use, not getting added by domoticz

OK, I forgot to block them in the use zwave update, just added it....

PeJeWe commented 1 year ago

OK, I get that. You then (I guess) have to switch it on temporarily to add the hardware from the new plugin and then switch it off again?

That is what I do now indeed. If that's possible to put a temp thing in the script, it would be great.

OK, I forgot to block them in the use zwave update, just added it....

Great, I will try it tomorrow.

PeJeWe commented 1 year ago

I now have hardware accept on ill get an heartbeat error. settings: Toon version: v1 refresh interval = 1 min P1 = off Debug = on ` 2023-01-18 20:46:29.074 Error: Toon: Call to function 'onHeartbeat' failed, exception details: 2023-01-18 20:46:29.103 Error: Toon: Traceback (most recent call last): 2023-01-18 20:46:29.103 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 647, in onHeartbeat 2023-01-18 20:46:29.103 Error: Toon: _plugin.onHeartbeat() 2023-01-18 20:46:29.103 Error: Toon: File "/home/Domoticz/domoticz/plugins/domoticz_toon/plugin.py", line 598, in onHeartbeat 2023-01-18 20:46:29.103 Error: Toon: if (self.toonConnZwaveInfo.Connected()==False and self.useZwave): 2023-01-18 20:46:29.103 Error: Toon: AttributeError: 'NoneType' object has no attribute 'Connected' '

PeJeWe commented 1 year ago

Debug:

2023-01-18 20:52:36.045 Toon: Worker thread started. 2023-01-18 20:52:36.212 Toon: onStart called 2023-01-18 20:52:36.212 Toon: Debug logging mask set to: PYTHON 2023-01-18 20:52:36.212 Toon: Parameters count: 25 2023-01-18 20:52:36.212 Toon: Parameter: 'HardwareID':'17' 2023-01-18 20:52:36.212 Toon: Parameter: 'HomeFolder':'/home/Domoticz/domoticz/plugins/domoticz_toon/' 2023-01-18 20:52:36.212 Toon: Parameter: 'StartupFolder':'/home/Domoticz/domoticz/' 2023-01-18 20:52:36.212 Toon: Parameter: 'UserDataFolder':'/home/Domoticz/domoticz/' 2023-01-18 20:52:36.212 Toon: Parameter: 'Database':'/home/Domoticz/domoticz/domoticz.db' 2023-01-18 20:52:36.212 Toon: Parameter: 'Language':'nl' 2023-01-18 20:52:36.212 Toon: Parameter: 'Version':'1.4.11' 2023-01-18 20:52:36.212 Toon: Parameter: 'Author':'MadPatrick' 2023-01-18 20:52:36.212 Toon: Parameter: 'Name':'Toon' 2023-01-18 20:52:36.212 Toon: Parameter: 'Address':'192.168.2.13' 2023-01-18 20:52:36.212 Toon: Parameter: 'Port':'80' 2023-01-18 20:52:36.212 Toon: Parameter: 'Key':'RootedToonPlug' 2023-01-18 20:52:36.212 Toon: Parameter: 'Mode1':'16;15;18;18' 2023-01-18 20:52:36.212 Toon: Parameter: 'Mode2':'60' 2023-01-18 20:52:36.212 Toon: Parameter: 'Mode3':'No' 2023-01-18 20:52:36.212 Toon: Parameter: 'Mode4':'Debug' 2023-01-18 20:52:36.212 Toon: Parameter: 'Mode6':'user' 2023-01-18 20:52:36.212 Toon: Parameter: 'DomoticzVersion':'2022.2' 2023-01-18 20:52:36.212 Toon: Parameter: 'DomoticzHash':'eea9db734' 2023-01-18 20:52:36.212 Toon: Parameter: 'DomoticzBuildTime':'2022-11-05 13:05:35' 2023-01-18 20:52:36.212 Toon: Configuration count: 0 2023-01-18 20:52:36.212 Toon: Device count: 10 2023-01-18 20:52:36.213 Toon: Device: 1 - ID: 991, Name: 'Toon - Temperatuur', nValue: 0, sValue: '17.9' 2023-01-18 20:52:36.213 Toon: Device: 2 - ID: 992, Name: 'Toon - Setpunt Temperatuur', nValue: 0, sValue: '18.0' 2023-01-18 20:52:36.213 Toon: Device: 3 - ID: 993, Name: 'Toon - Auto Program', nValue: 0, sValue: '30' 2023-01-18 20:52:36.213 Toon: Device: 4 - ID: 994, Name: 'Toon - Scene', nValue: 0, sValue: '40' 2023-01-18 20:52:36.213 Toon: Device: 5 - ID: 1005, Name: 'Toon - Keteldruk', nValue: 0, sValue: '' 2023-01-18 20:52:36.213 Toon: Device: 6 - ID: 996, Name: 'Toon - Programma info', nValue: 0, sValue: 'Next program Slapen (15.0 C) at 2023-18-01 22:00:00' 2023-01-18 20:52:36.213 Toon: Device: 11 - ID: 1006, Name: 'Toon - Ketelmode', nValue: 0, sValue: '10' 2023-01-18 20:52:36.213 Toon: Device: 12 - ID: 1007, Name: 'Toon - Ketel modulatie', nValue: 0, sValue: '31' 2023-01-18 20:52:36.213 Toon: Device: 13 - ID: 1008, Name: 'Toon - Ketel setpoint', nValue: 0, sValue: '40.0' 2023-01-18 20:52:36.213 Toon: Device: 14 - ID: 1009, Name: 'Toon - Luchtvochtigheid', nValue: 0, sValue: '' 2023-01-18 20:52:36.264 Toon: onConnect called 2023-01-18 20:52:36.264 Toon: getThermostatInfo created 2023-01-18 20:52:36.264 Toon: Connecting to: 192.168.2.13:80/happ_thermstat?action=getThermostatInfo 2023-01-18 20:52:36.264 Toon: onConnect called 2023-01-18 20:52:36.264 Toon: getBoilerInfo created 2023-01-18 20:52:36.264 Toon: Connecting to: 192.168.2.13:80/boilerstatus/boilervalues.txt 2023-01-18 20:52:36.315 Toon: onMessage called 2023-01-18 20:52:36.315 Toon: <?xml version="1.0" encoding="iso-8859-1"?> 2023-01-18 20:52:36.315 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2023-01-18 20:52:36.315 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 404 - Not Found 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315

404 - Not Found

2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 Toon: onMessage aborted, response format not JSON 2023-01-18 20:52:36.315 Toon: <?xml version="1.0" encoding="iso-8859-1"?> 2023-01-18 20:52:36.315 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2023-01-18 20:52:36.315 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 404 - Not Found 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315

404 - Not Found

2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 2023-01-18 20:52:36.315 Toon: onMessage called 2023-01-18 20:52:36.315 Toon: {"result":"ok", "currentTemp":"1795", "currentSetpoint":"1800", "currentInternalBoilerSetpoint":"40", "programState":"2", "activeState":"0", "nextProgram":"1", "nextState":"2", "nextTime":"1674075600","nextSetpoint":"1500","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"0","otCommError":"0","currentModulationLevel":"31"} 2023-01-18 20:52:36.315 Toon: onMessageThermostatInfo called 2023-01-18 20:52:36.315 Toon: Toon getThermostatInfo command executed with status: ok 2023-01-18 20:52:36.366 Toon: onDisconnect called: ThermostatInfo 2023-01-18 20:52:36.044 Status: Toon: Stopping threads. 2023-01-18 20:52:36.044 Status: Toon: Stopped. 2023-01-18 20:52:36.045 Status: Toon: Entering work loop.

JanJaapKo commented 1 year ago

ok, small bug. Can you retry with v1.4.12?

MadPatrick commented 1 year ago

v1.4.12 gives an error

2023-01-19 19:52:54.620 Error: Toon: (RootedToonPlug) failed to load 'plugin.py', Python Path used was '/var/domoticz/plugins/domoticz_toon/:/usr/lib64/python36.zip:/usr/lib64/python3.6:/usr/lib64/python3.6:/usr/lib64/python3.6/lib-dynload:/usr/local/lib64/python3.6/site-packages:/usr/local/lib/python3.6/site-packages:/usr/lib64/python3.6/site-packages:/usr/lib/python3.6/site-packages'.
2023-01-19 19:52:54.649 Error: Toon: Exception: 'SyntaxError'. No traceback available.

if (self.toonConnZwaveInfo.Connected()==False and ):

must be

if (self.toonConnZwaveInfo.Connected()==False):

PeJeWe commented 1 year ago

v1.4.12 gives an error

2023-01-19 19:52:54.620 Error: Toon: (RootedToonPlug) failed to load 'plugin.py', Python Path used was '/var/domoticz/plugins/domoticz_toon/:/usr/lib64/python36.zip:/usr/lib64/python3.6:/usr/lib64/python3.6:/usr/lib64/python3.6/lib-dynload:/usr/local/lib64/python3.6/site-packages:/usr/local/lib/python3.6/site-packages:/usr/lib64/python3.6/site-packages:/usr/lib/python3.6/site-packages'.
2023-01-19 19:52:54.649 Error: Toon: Exception: 'SyntaxError'. No traceback available.

if (self.toonConnZwaveInfo.Connected()==False and ):

must be

if (self.toonConnZwaveInfo.Connected()==False):

I was wandering if the problem was on my side.

I have another problem write now, my power-supply of my RPI is failing i get constant "undervoltage" errors i have order t a new one. I can't test the script write now sorry

PeJeWe commented 1 year ago

I have tested the script, its now working like a charm, perfecto