Open MadPatrick opened 1 year ago
The change of the setpoint can be made in Domtoicz or Toon. The plugin must check both whether there is a change in setpoint and update the scene if needed
I'm getting this error
2023-01-02 22:00:46.445 Status: Toon: Initialized version 1.2.0, author 'MadPatrick'
2023-01-02 22:00:46.848 Status: PluginSystem: 1 plugins started.
2023-01-02 22:00:46.930 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-02 22:00:46.941 Error: Toon: Traceback (most recent call last):
2023-01-02 22:00:46.941 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 500, in onMessage
2023-01-02 22:00:46.941 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-02 22:00:46.941 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 414, in onMessage
2023-01-02 22:00:46.941 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-02 22:00:46.941 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 242, in onMessageThermostatInfo
2023-01-02 22:00:46.941 Error: Toon: if strCurrentTemp == Parameters["Scene1"]:
2023-01-02 22:00:46.941 Error: Toon: KeyError: 'Scene1'
2023-01-02 22:00:56.188 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-02 22:00:56.188 Error: Toon: Traceback (most recent call last):
2023-01-02 22:00:56.188 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 500, in onMessage
2023-01-02 22:00:56.188 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-02 22:00:56.188 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 414, in onMessage
2023-01-02 22:00:56.188 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-02 22:00:56.188 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 242, in onMessageThermostatInfo
2023-01-02 22:00:56.188 Error: Toon: if strCurrentTemp == Parameters["Scene1"]:
2023-01-02 22:00:56.188 Error: Toon: KeyError: 'Scene1'
I've added a missing function: boilerModulation
OK, I see what is going wrong: apparantly these manually created Parameters are being displayed, but not disclosed to the code. I added the 'dump config to log' to onStart, and their values are not being printed:
2023-01-03 12:08:31.627 test plug somfy: Parameter: 'HardwareID':'6'
2023-01-03 12:08:31.627 test plug somfy: Parameter: 'HomeFolder':'/home/pi/domoticz/plugins/domoticz_toon/'
2023-01-03 12:08:31.627 test plug somfy: Parameter: 'StartupFolder':'/home/pi/domoticz/'
2023-01-03 12:08:31.627 test plug somfy: Parameter: 'UserDataFolder':'/home/pi/domoticz/'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Database':'/home/pi/domoticz/domoticz.db'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Language':'en'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Version':'1.2.0'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Author':'MadPatrick'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Name':'test plug somfy'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Address':'192.168.1.200'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Port':'80'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Key':'RootedToonPlug'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Mode1':'2.1'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Mode2':'2.4'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Mode3':'2.6'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Mode4':'2.5'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'Mode5':'2.7'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'DomoticzVersion':'2022.2 (build 14895)'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'DomoticzHash':'fbac95755'
2023-01-03 12:08:31.628 test plug somfy: Parameter: 'DomoticzBuildTime':'2022-12-25 14:31:07'
So this would need to be solved differently. What is the point of the other modes btw? It looks like they are not all required. Perhaps a pull down to chose between v1 and v2 is easier or do I misunderstand them?
Btw there where some indention errors in your code, I fixed them
I think you mean the Mode1-mode5. These modes readout the data of the P1 meer in the Toon. This value can be completely different in other version of a Toon. I've seen people with 3.x numbers So this always needs to be a variable
Still the error a lot of info in the log every 10sec
Toon: {"dev_2": {"uuid": "670f6fb2-c7af-4ddb-a3fd-b88c88df7cc5", "name": "HAE_METER_v3", "internalAddress": "2", "type": "HAE_METER_v3", "supportsCrc": "1", "ccList": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "supportedCC": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "nodeFlags": [], "IsConnected": "1", "HealthValue": "10", "DeviceName": "HAE_METER_v3", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.1": {"uuid": "d9c5dbad-517f-4107-8c07-3be0596e42b3", "name": "HAE_METER_v3_1", "internalAddress": "2.1", "type": "HAE_METER_v3_1", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "CurrentGasFlow": "173.00", "CurrentGasQuantity": "9325793.00", "DeviceName": "HAE_METER_v3_1", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.2": {"uuid": "7eb33e27-9d1d-419c-ac0b-3fadfb7baa67", "name": "HAE_METER_v3_2", "internalAddress": "2.2", "type": "HAE_METER_v3_2", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_2", "CurrentElectricityFlow": "NaN", "CurrentElectricityQuantity": "NaN", "CurrentSensorStatus": "DISABLED"}, "dev_2.3": {"uuid": "f42d1623-6d57-49e7-b43b-5bfb5104f09f", "name": "HAE_METER_v3_3", "internalAddress": "2.3", "type": "HAE_METER_v3_3", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_3", "CurrentElectricityFlow": "7.00", "CurrentElectricityQuantity": "174228.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.4": {"uuid": "e1818976-b7f0-4dbe-a9c7-171cea5fe208", "name": "HAE_METER_v3_4", "internalAddress": "2.4", "type": "HAE_METER_v3_4", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_4", "CurrentElectricityFlow": "8083.00", "CurrentElectricityQuantity": "12904161.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.5": {"uuid": "ab5142fb-9f72-4a21-a412-ebca6e225828", "name": "HAE_METER_v3_5", "internalAddress": "2.5", "type": "HAE_METER_v3_5", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_5", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "7949308.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.6": {"uuid": "3002274d-633d-4222-b7a0-927415fad553", "name": "HAE_METER_v3_6", "internalAddress": "2.6", "type": "HAE_METER_v3_6", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_6", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "13035639.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.7": {"uuid": "471a324b-cfdd-42a3-b487-6dcab6d292d5", "name": "HAE_METER_v3_7", "internalAddress": "2.7", "type": "HAE_METER_v3_7", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_7", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "3127374.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.8": {"uuid": "3011b15c-c8e6-45dd-acbc-029edbd3dfb5", "name": "HAE_METER_v3_8", "internalAddress": "2.8", "type": "HAE_METER_v3_8", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_8", "CurrentHeatQuantity": "NaN", "CurrentSensorStatus": "UNKNOWN", "CurrentHeatFlow": "NaN"}, "dev_settings_device": {"uuid": "ab75c594-5d2b-48a1-823e-4181f252da6b", "name": "settings_device", "internalAddress": "settings_device", "type": "settings_device"}}
2023-01-03 18:00:19.187 Toon: onMessageZwaveInfo called
2023-01-03 18:00:19.187 Toon: Zwave Gas usage: 173.00
2023-01-03 18:00:19.187 Toon: Zwave Gas counter: 9325793.00
2023-01-03 18:00:19.189 Toon: Update 0:'9325793' (Toon - Gas)
2023-01-03 18:00:19.189 Toon: elec_delivered_nt: 8083.00, 12904161.00
2023-01-03 18:00:19.189 Toon: elec_received_nt: 0.00, 7949308.00
2023-01-03 18:00:19.189 Toon: elec_delivered_lt: 0.00, 13035639.00
2023-01-03 18:00:19.189 Toon: elec_received_lt: 0.00, 3127374.00
2023-01-03 18:00:19.189 Toon: zwaveDelivered: 8083;25939800
2023-01-03 18:00:19.189 Toon: Update 0:'8083;25939800' (Toon - Stroom)
2023-01-03 18:00:19.189 Toon: zwaveReceived: 0;11076682
2023-01-03 18:00:19.191 Toon: Update 0:'12904161;13035639;7949308;3127374;8083;0' (Toon - P1 Meter)
2023-01-03 18:00:19.186 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-03 18:00:19.186 Error: Toon: Traceback (most recent call last):
2023-01-03 18:00:19.186 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 511, in onMessage
2023-01-03 18:00:19.186 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-03 18:00:19.186 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 425, in onMessage
2023-01-03 18:00:19.186 Error: Toon: self.onMessageThermostatInfo(Connection, Response)
2023-01-03 18:00:19.186 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 249, in onMessageThermostatInfo
2023-01-03 18:00:19.186 Error: Toon: if strCurrentTemp == Parameters["Scene1"]:
2023-01-03 18:00:19.186 Error: Toon: KeyError: 'Scene1'
I've found the information in the Toon to read out the Scene with corresponding temperature So then there will be not need to makes this as an input field
// 20230103185830
// http://192.168.1.200/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
{
"states": [
{
"state": [
{
"id": [
"0"
],
"tempValue": [
"2000"
],
"dhw": [
"1"
]
},
{
"id": [
"1"
],
"tempValue": [
"1950"
],
"dhw": [
"1"
]
},
{
"id": [
"2"
],
"tempValue": [
"1700"
],
"dhw": [
"1"
]
},
{
"id": [
"3"
],
"tempValue": [
"1800"
],
"dhw": [
"1"
]
},
{
"id": [
"4"
],
"tempValue": [
"1000"
],
"dhw": [
"1"
]
}
]
}
],
"package": [
"happ_thermstat"
],
"uuid": [
"104ba5b4-91d1-466e-b743-198d808298c7"
],
"type": [
"states"
],
"name": [
"thermostatStates"
],
"internalAddress": [
"thermostatStates"
],
"visibility": [
"0"
],
"statesSaved": [
"1"
]
}
"id"0 = Comfort "id"1 = Home "id"2 = Sleep "id"3 = Away "id"4 = ??
Found it:
if strCurrentTemp == Parameters["Scene1"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[1])
if strCurrentTemp == Parameters["Scene2"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[2])
if strCurrentTemp == Parameters["Scene3"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[3])
if strCurrentTemp == Parameters["Scene4"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[4])
must be
if strCurrentTemp == Parameters["Mode1"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[1])
if strCurrentTemp == Parameters["Mode2"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[2])
if strCurrentTemp == Parameters["Mode3"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[3])
if strCurrentTemp == Parameters["Mode4"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[4])
Only the devices is not update (yet)
If i put the Scene under Setpoint it gets updated which makes more sense The number of svalue has a different order
if 'currentSetpoint' in Response:
currentSetpoint=float(Response['currentSetpoint'])/100
strCurrentSetpoint="%.1f" % currentSetpoint
UpdateDevice(Unit=setTemp, nValue=0, sValue=strCurrentSetpoint)
if strCurrentSetpoint == Parameters["Mode1"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[3])
if strCurrentSetpoint == Parameters["Mode2"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[2])
if strCurrentSetpoint == Parameters["Mode3"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[1])
if strCurrentSetpoint == Parameters["Mode4"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[0])
Only i goes directly back to it previous scene
Putting this part lower it works. Under line 305 (below nextSetpoint') it is working
i've update Branch "beta" so i don't interfear your branch You adopt this if it ok or make some changes
So basicly if we can readout http://toonip/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates and converse the readout this will be the required settings
Comfort = "id": [ "0"], "tempValue": [ "2000" ],
Home = "id": [ "1"], "tempValue": [ "1950" ],
Away = "id": [ "2"], "tempValue": [ "1800" ],
Sleep = "id": [ "3"], "tempValue": [ "1700" ],
Holiday = "id": [ "4"], "tempValue": [ "1000" ],
Still something is not working well
If i change the temperature it sends the command to the Toon, it changes the Scene in Domoticz but not on the Toon. Also it keeps update the Scene in Domoticz
Looks like it is getting a change every heartbeat while nothing is changed
2023-01-15 11:24:53.174 Toon: Device Mode Setpoint changed :1900
2023-01-15 11:25:53.168 Toon: Device Mode Setpoint changed :1800
2023-01-15 11:25:53.176 Toon: Device Mode Setpoint changed Mode1 :1800
2023-01-15 11:26:53.173 Toon: Device Mode Setpoint changed :1800
2023-01-15 11:26:53.177 Toon: Device Mode Setpoint changed Mode1 :1800
2023-01-15 11:27:53.215 Toon: Device Mode Setpoint changed :1800
2023-01-15 11:27:53.220 Toon: Device Mode Setpoint changed Mode1 :1800
2023-01-15 11:28:53.207 Toon: Device Mode Setpoint changed :1800
2023-01-15 11:28:53.214 Toon: Device Mode Setpoint changed Mode1 :1800
2023-01-15 11:26:53.166 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:26:53.172 Toon: Update 0:'0' (ModulationLevel)
2023-01-15 11:26:53.177 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:26:53.180 Toon: Update 0:'1836;26159244' (Toon - Electricity)
2023-01-15 11:26:53.187 Toon: Update 0:'13056778;13102466;7956260;3130821;1836;0' (P1 Elektra)
2023-01-15 11:27:53.210 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:27:53.215 Toon: Update 0:'0' (ModulationLevel)
2023-01-15 11:27:53.219 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:27:53.223 Toon: Update 0:'1953;26159277' (Toon - Electricity)
2023-01-15 11:27:53.232 Toon: Update 0:'13056778;13102499;7956260;3130821;1953;0' (P1 Elektra)
2023-01-15 11:28:53.198 Toon: Update 0:'18.8' (Woonkamer Temp Toon)
2023-01-15 11:28:53.203 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:28:53.207 Toon: Update 0:'0' (ModulationLevel)
2023-01-15 11:28:53.213 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:28:53.216 Toon: Update 0:'1798;26159308' (Toon - Electricity)
2023-01-15 11:28:53.223 Toon: Update 0:'13056778;13102530;7956260;3130821;1798;0' (P1 Elektra)
2023-01-15 11:29:53.197 Toon: Update 0:'1.9' (Keteldruk)
2023-01-15 11:29:53.200 Toon: Update 0:'2057;26159337' (Toon - Electricity)
2023-01-15 11:29:53.204 Toon: Update 0:'13056778;13102559;7956260;3130821;2057;0' (P1 Elektra)
2023-01-15 11:29:53.208 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:29:53.215 Toon: Update 0:'20' (Ketelstand)
2023-01-15 11:29:53.224 Toon: Update 0:'22' (ModulationLevel)
2023-01-15 11:29:53.226 Toon: Update 0:'45.0' (Ketel Setpoint)
2023-01-15 11:30:53.203 Toon: Update 0:'9410302' (P1 Gas)
2023-01-15 11:30:53.208 Toon: Update 0:'2067;26159371' (Toon - Electricity)
2023-01-15 11:30:53.213 Toon: Update 0:'13056778;13102593;7956260;3130821;2067;0' (P1 Elektra)
2023-01-15 11:30:53.220 Toon: Update 0:'0' (ModulationLevel)
2023-01-15 11:30:53.223 Toon: Update 0:'46.0' (Ketel Setpoint)
2023-01-15 11:31:53.189 Toon: Update 0:'1.7' (Keteldruk)
2023-01-15 11:31:53.192 Toon: Update 0:'0' (ModulationLevel)
2023-01-15 11:31:53.195 Toon: Update 0:'44.0' (Ketel Setpoint)
2023-01-15 11:31:53.198 Toon: Update 0:'1915;26159405' (Toon - Electricity)
2023-01-15 11:31:53.201 Toon: Update 0:'13056778;13102627;7956260;3130821;1915;0' (P1 Elektra)
2023-01-15 11:51:45.113 Toon: Device: 4 - ID: 630, Name: 'Toon - Scene', nValue: 0, sValue: '50'
2023-01-15 11:51:45.230 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:52:44.210 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:52:44.222 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:53:44.222 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:53:44.232 Toon: Update 0:'10' (Toon - Scene)
2023-01-15 11:54:44.171 Toon: Update 0:'50' (Toon - Scene)
2023-01-15 11:54:44.182 Toon: Update 0:'10' (Toon - Scene)
It is flipping between the new and previous Scene
i think these 2 are affecting each other
if 'activeState' in Response:
program=int(Response['activeState'])
UpdateDevice(Unit=scene, nValue=0, sValue=programs[program])
if 'currentSetpoint' in Response:
currentSetpoint=float(Response['currentSetpoint'])/100
strCurrentSetpoint="%.1f" % currentSetpoint
UpdateDevice(Unit=setTemp, nValue=0, sValue=strCurrentSetpoint)
Domoticz.Log("Device Mode currentSetpoint changed")
if strCurrentSetpoint == Parameters["Mode1"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[3])
if strCurrentSetpoint == Parameters["Mode2"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[2])
if strCurrentSetpoint == Parameters["Mode3"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[1])
if strCurrentSetpoint == Parameters["Mode4"]:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[0])
2023-01-15 12:28:03.212 Toon: {"result":"ok", "currentTemp":"1861", "currentSetpoint":"1800", "currentInternalBoilerSetpoint":"6", "programState":"0", "activeState":"3", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"0","otCommError":"0","currentModulationLevel":"0"}
2023-01-15 12:28:23.177 Toon: {"result":"ok", "currentTemp":"1861", "currentSetpoint":"1850", "currentInternalBoilerSetpoint":"21", "programState":"0", "activeState":"-1", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"0","otCommError":"0","currentModulationLevel":"0"}
I think the problem is that the device within Domopticz is update but there is not a command send to the Toon So the Toon Scene is not changed and Domoticz is checking the Toon and sees it has not been changed and changes back
Is it possible to send also a command to the Toon ?
I've added the command which change the Scene on the Toon Seems to work now
@JanJaapKo
I need you help in this. We can read out the scene temperature from toon, but how to read and connect them in the script
We can now form the parameter list
sceneList = Parameters["Mode1"].split(';')
self.scene1=sceneList[0]
self.scene2=sceneList[1]
self.scene3=sceneList[2]
self.scene4=sceneList[3]
Can we read out and make this list from the read out? That save a Mode field and easier for the user
I've created now something like this
def onMessagetoonSceneinfo(self, Connection, Response):
Domoticz.Debug("onMessagetoonSceneinfo called")
if 'id' in Response:
id=float(Response['id'])
if id = 0: sceneComfort = tempValue
if id = 1: sceneHome = tempValue
if id = 2: sceneSleep = tempValue
if id = 3: sceneAway = tempValue
if id = 4: sceneHoliday = tempValue
return
The plugin is updated to readout the Toon for the values, but how to connect them to the parameter list?
Can you paste the Toon's response with the list of scene's plus temps in it? This can probably made a bit easier....
Of course 😄
// 20230121162818
// http://192.168.1.200/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
{
"states": [
{
"state": [
{
"id": [
"0"
],
"tempValue": [
"2000"
],
"dhw": [
"1"
]
},
{
"id": [
"1"
],
"tempValue": [
"1950"
],
"dhw": [
"1"
]
},
{
"id": [
"2"
],
"tempValue": [
"1700"
],
"dhw": [
"1"
]
},
{
"id": [
"3"
],
"tempValue": [
"1800"
],
"dhw": [
"1"
]
},
{
"id": [
"4"
],
"tempValue": [
"1000"
],
"dhw": [
"1"
]
}
]
}
],
"package": [
"happ_thermstat"
],
"uuid": [
"104ba5b4-91d1-466e-b743-198d808298c7"
],
"type": [
"states"
],
"name": [
"thermostatStates"
],
"internalAddress": [
"thermostatStates"
],
"visibility": [
"0"
],
"statesSaved": [
"1"
]
}
Comfort = "id": [ "0"], "tempValue": [ "2000" ],
Home = "id": [ "1"], "tempValue": [ "1950" ],
Away = "id": [ "2"], "tempValue": [ "1800" ],
Sleep = "id": [ "3"], "tempValue": [ "1700" ],
Holiday = "id": [ "4"], "tempValue": [ "1000" ],
Basically we only need to read out the information on startup. The information will not change often. Maybe will this makes it easier
I added logging of this info also to the plugin (there is a call to getScenesConfig
in onStart
), does that produce any result? I'm doing that on the toonConnThermostatInfo
connection. But in the onMessageThermostatInfo
method there is a check for a field result
, which is not in the above response. So on startup, this should result in a logline 'Toon getThermostatInfo command executed with status: error'. Is that happening?
In which Branch did you made the changes? I don;t see an update
It's been in main for some time already
Strange. I don't see it
Your last comment is 5d ago.
it was this one:
As A result, at startup, it should log the mentioned states list with the scene's, or an error. Did you get any one of those 2?
Ok. missed that one. I'll test tonight
I don't see the call in the log
2023-01-24 18:33:09.272 Status: EventSystem: Started
2023-01-24 18:33:09.272 Status: EventSystem: Queue thread started...
2023-01-24 18:33:09.353 Status: Toon: Initialized version 1.4.13, author 'MadPatrick'
2023-01-24 18:33:09.356 Toon: onStart called
2023-01-24 18:33:09.356 Toon: Debug logging mask set to: PYTHON
2023-01-24 18:33:09.356 Toon: Parameters count: 25
2023-01-24 18:33:09.356 Toon: Parameter: 'HardwareID':'2'
2023-01-24 18:33:09.356 Toon: Parameter: 'HomeFolder':'/var/domoticz/plugins/domoticz_toon/'
2023-01-24 18:33:09.356 Toon: Parameter: 'StartupFolder':'/usr/share/domoticz/'
2023-01-24 18:33:09.356 Toon: Parameter: 'UserDataFolder':'/var/domoticz/'
2023-01-24 18:33:09.356 Toon: Parameter: 'Database':'/var/domoticz/domoticz.db'
2023-01-24 18:33:09.356 Toon: Parameter: 'Language':'nl'
2023-01-24 18:33:09.356 Toon: Parameter: 'Version':'1.4.13'
2023-01-24 18:33:09.356 Toon: Parameter: 'Author':'MadPatrick'
2023-01-24 18:33:09.356 Toon: Parameter: 'Name':'Toon'
2023-01-24 18:33:09.356 Toon: Parameter: 'Address':'192.168.1.200'
2023-01-24 18:33:09.356 Toon: Parameter: 'Port':'80'
2023-01-24 18:33:09.356 Toon: Parameter: 'Key':'RootedToonPlug'
2023-01-24 18:33:09.356 Toon: Parameter: 'Mode1':'18.0;17.0;19.5;20.0'
2023-01-24 18:33:09.356 Toon: Parameter: 'Mode2':'20'
2023-01-24 18:33:09.356 Toon: Parameter: 'Mode3':'Yes'
2023-01-24 18:33:09.356 Toon: Parameter: 'Mode4':'Debug'
2023-01-24 18:33:09.356 Toon: Parameter: 'Mode5':'2.1;2.4;2.6;2.5;2.7'
2023-01-24 18:33:09.357 Toon: Parameter: 'Mode6':'v2'
2023-01-24 18:33:09.357 Toon: Parameter: 'DomoticzVersion':'2022.2 (build 14982)'
2023-01-24 18:33:09.357 Toon: Parameter: 'DomoticzHash':'0'
2023-01-24 18:33:09.357 Toon: Parameter: 'DomoticzBuildTime':'1970-01-01 01:00:00'
2023-01-24 18:33:09.357 Toon: Configuration count: 0
2023-01-24 18:33:09.357 Toon: Device count: 14
2023-01-24 18:33:09.357 Toon: Device: 1 - ID: 1, Name: 'Toon - Temperatuur', nValue: 0, sValue: '19.0'
2023-01-24 18:33:09.357 Toon: Device: 2 - ID: 2, Name: 'Toon - Setpunt Temperatuur', nValue: 0, sValue: '19.0'
2023-01-24 18:33:09.357 Toon: Device: 3 - ID: 3, Name: 'Toon - Auto Program', nValue: 0, sValue: '10'
2023-01-24 18:33:09.357 Toon: Device: 4 - ID: 4, Name: 'Toon - Scene', nValue: 0, sValue: '50'
2023-01-24 18:33:09.357 Toon: Device: 5 - ID: 5, Name: 'Toon - Keteldruk', nValue: 0, sValue: '1.8'
2023-01-24 18:33:09.357 Toon: Device: 6 - ID: 6, Name: 'Toon - Programma info', nValue: 0, sValue: 'No program scheduled'
2023-01-24 18:33:09.357 Toon: Device: 7 - ID: 11, Name: 'Toon - Gas', nValue: 0, sValue: '9515438'
2023-01-24 18:33:09.357 Toon: Device: 8 - ID: 12, Name: 'Toon - Electriciteit', nValue: 0, sValue: '641;26279194'
2023-01-24 18:33:09.357 Toon: Device: 9 - ID: 13, Name: 'Toon - Opgewekte Electriciteit', nValue: 0, sValue: '0;11101034'
2023-01-24 18:33:09.357 Toon: Device: 10 - ID: 14, Name: 'Toon - P1 Electriciteit', nValue: 0, sValue: '13110644;13168550;7967441;3133593;641;0'
2023-01-24 18:33:09.357 Toon: Device: 11 - ID: 7, Name: 'Toon - Ketelmode', nValue: 0, sValue: '20'
2023-01-24 18:33:09.357 Toon: Device: 12 - ID: 8, Name: 'Toon - Ketel modulatie', nValue: 0, sValue: '0'
2023-01-24 18:33:09.357 Toon: Device: 13 - ID: 9, Name: 'Toon - Ketel setpoint', nValue: 0, sValue: '43.0'
2023-01-24 18:33:09.357 Toon: Device: 14 - ID: 15, Name: 'Toon - Luchtvochtigheid', nValue: 0, sValue: '19.0;43.9;1'
2023-01-24 18:33:09.732 Status: PluginSystem: 1 plugins started.
2023-01-24 18:33:09.796 Toon: onConnect called
2023-01-24 18:33:09.796 Toon: getThermostatInfo created
2023-01-24 18:33:09.796 Toon: Connecting to: 192.168.1.200:80/happ_thermstat?action=getThermostatInfo
2023-01-24 18:33:09.810 Toon: onConnect called
2023-01-24 18:33:09.810 Toon: getBoilerInfo created
2023-01-24 18:33:09.810 Toon: Connecting to: 192.168.1.200:80/boilerstatus/boilervalues.txt
2023-01-24 18:33:09.810 Toon: onConnect called
2023-01-24 18:33:09.810 Toon: getZwaveInfo created
2023-01-24 18:33:09.811 Toon: Connecting to: 192.168.1.200:80/hdrv_zwave?action=getDevices.json
2023-01-24 18:33:09.874 Toon: onMessage called
2023-01-24 18:33:09.874 Toon: {"result":"ok", "currentTemp":"1899", "currentSetpoint":"1900", "currentInternalBoilerSetpoint":"43", "programState":"0", "activeState":"-1", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"1","otCommError":"0","currentModulationLevel":"0"}
2023-01-24 18:33:09.874 Toon: onMessageThermostatInfo called
2023-01-24 18:33:09.874 Toon: Toon getThermostatInfo command executed with status: ok
2023-01-24 18:33:09.874 Toon: onMessage called
2023-01-24 18:33:09.874 Toon: {"sampleTime":"24-01-2023 18:33:00","boilerSetpoint":46.79,"roomTempSetpoint":19,"boilerPressure":1.8,"roomTemp":18.94,"boilerOutTemp":null,"boilerInTemp":null,"boilerModulationLevel":0}
2023-01-24 18:33:09.874 Toon: onMessageBoilerInfo called
2023-01-24 18:33:09.874 Toon: boilerpressure: 1.8
2023-01-24 18:33:09.874 Toon: onMessage called
2023-01-24 18:33:09.874 Toon: {"dev_2": {"uuid": "670f6fb2-c7af-4ddb-a3fd-b88c88df7cc5", "name": "HAE_METER_v3", "internalAddress": "2", "type": "HAE_METER_v3", "supportsCrc": "1", "ccList": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "supportedCC": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "nodeFlags": [], "IsConnected": "1", "HealthValue": "10", "DeviceName": "HAE_METER_v3", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.1": {"uuid": "d9c5dbad-517f-4107-8c07-3be0596e42b3", "name": "HAE_METER_v3_1", "internalAddress": "2.1", "type": "HAE_METER_v3_1", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "CurrentGasFlow": "95.00", "CurrentGasQuantity": "9515438.00", "DeviceName": "HAE_METER_v3_1", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.2": {"uuid": "7eb33e27-9d1d-419c-ac0b-3fadfb7baa67", "name": "HAE_METER_v3_2", "internalAddress": "2.2", "type": "HAE_METER_v3_2", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_2", "CurrentElectricityFlow": "NaN", "CurrentElectricityQuantity": "NaN", "CurrentSensorStatus": "DISABLED"}, "dev_2.3": {"uuid": "f42d1623-6d57-49e7-b43b-5bfb5104f09f", "name": "HAE_METER_v3_3", "internalAddress": "2.3", "type": "HAE_METER_v3_3", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_3", "CurrentElectricityFlow": "4.00", "CurrentElectricityQuantity": "232667.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.4": {"uuid": "e1818976-b7f0-4dbe-a9c7-171cea5fe208", "name": "HAE_METER_v3_4", "internalAddress": "2.4", "type": "HAE_METER_v3_4", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_4", "CurrentElectricityFlow": "638.00", "CurrentElectricityQuantity": "13110645.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.5": {"uuid": "ab5142fb-9f72-4a21-a412-ebca6e225828", "name": "HAE_METER_v3_5", "internalAddress": "2.5", "type": "HAE_METER_v3_5", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_5", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "7967441.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.6": {"uuid": "3002274d-633d-4222-b7a0-927415fad553", "name": "HAE_METER_v3_6", "internalAddress": "2.6", "type": "HAE_METER_v3_6", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_6", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "13168550.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.7": {"uuid": "471a324b-cfdd-42a3-b487-6dcab6d292d5", "name": "HAE_METER_v3_7", "internalAddress": "2.7", "type": "HAE_METER_v3_7", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_7", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "3133593.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.8": {"uuid": "3011b15c-c8e6-45dd-acbc-029edbd3dfb5", "name": "HAE_METER_v3_8", "internalAddress": "2.8", "type": "HAE_METER_v3_8", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_8", "CurrentHeatQuantity": "NaN", "CurrentSensorStatus": "UNKNOWN", "CurrentHeatFlow": "NaN"}, "dev_settings_device": {"uuid": "ab75c594-5d2b-48a1-823e-4181f252da6b", "name": "settings_device", "internalAddress": "settings_device", "type": "settings_device"}}
2023-01-24 18:33:09.875 Toon: onMessageZwaveInfo called
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': '670f6fb2-c7af-4ddb-a3fd-b88c88df7cc5', 'name': 'HAE_METER_v3', 'internalAddress': '2', 'type': 'HAE_METER_v3', 'supportsCrc': '1', 'ccList': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'supportedCC': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'nodeFlags': [], 'IsConnected': '1', 'HealthValue': '10', 'DeviceName': 'HAE_METER_v3', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': 'd9c5dbad-517f-4107-8c07-3be0596e42b3', 'name': 'HAE_METER_v3_1', 'internalAddress': '2.1', 'type': 'HAE_METER_v3_1', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentGasFlow': '95.00', 'CurrentGasQuantity': '9515438.00', 'DeviceName': 'HAE_METER_v3_1', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:09.875 Toon: Zwave Gas usage: 95.00 Gas counter: 9515438.00
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': '7eb33e27-9d1d-419c-ac0b-3fadfb7baa67', 'name': 'HAE_METER_v3_2', 'internalAddress': '2.2', 'type': 'HAE_METER_v3_2', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_2', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN', 'CurrentSensorStatus': 'DISABLED'}
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': 'f42d1623-6d57-49e7-b43b-5bfb5104f09f', 'name': 'HAE_METER_v3_3', 'internalAddress': '2.3', 'type': 'HAE_METER_v3_3', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_3', 'CurrentElectricityFlow': '4.00', 'CurrentElectricityQuantity': '232667.00', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': 'e1818976-b7f0-4dbe-a9c7-171cea5fe208', 'name': 'HAE_METER_v3_4', 'internalAddress': '2.4', 'type': 'HAE_METER_v3_4', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_4', 'CurrentElectricityFlow': '638.00', 'CurrentElectricityQuantity': '13110645.00', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:09.875 Toon: elec_delivered_nt: 638.00, 13110645.00
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': 'ab5142fb-9f72-4a21-a412-ebca6e225828', 'name': 'HAE_METER_v3_5', 'internalAddress': '2.5', 'type': 'HAE_METER_v3_5', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_5', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '7967441.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:09.875 Toon: elec_received_nt: 0.00, 7967441.00
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': '3002274d-633d-4222-b7a0-927415fad553', 'name': 'HAE_METER_v3_6', 'internalAddress': '2.6', 'type': 'HAE_METER_v3_6', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_6', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '13168550.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:09.875 Toon: elec_delivered_lt: 0.00, 13168550.00
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': '471a324b-cfdd-42a3-b487-6dcab6d292d5', 'name': 'HAE_METER_v3_7', 'internalAddress': '2.7', 'type': 'HAE_METER_v3_7', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_7', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '3133593.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:09.875 Toon: elec_received_lt: 0.00, 3133593.00
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': '3011b15c-c8e6-45dd-acbc-029edbd3dfb5', 'name': 'HAE_METER_v3_8', 'internalAddress': '2.8', 'type': 'HAE_METER_v3_8', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_8', 'CurrentHeatQuantity': 'NaN', 'CurrentSensorStatus': 'UNKNOWN', 'CurrentHeatFlow': 'NaN'}
2023-01-24 18:33:09.875 Toon: Zwave message: {'uuid': 'ab75c594-5d2b-48a1-823e-4181f252da6b', 'name': 'settings_device', 'internalAddress': 'settings_device', 'type': 'settings_device'}
2023-01-24 18:33:09.875 Toon: zwaveDelivered: 638;26279195
2023-01-24 18:33:09.878 Toon: Update 0:'638;26279195' (Toon - Electriciteit)
2023-01-24 18:33:09.878 Toon: zwaveReceived: 0;11101034
2023-01-24 18:33:09.881 Toon: Update 0:'13110645;13168550;7967441;3133593;638;0' (Toon - P1 Electriciteit)
2023-01-24 18:33:09.966 Toon: onDisconnect called: ThermostatInfo
2023-01-24 18:33:09.966 Toon: onDisconnect called: BoilerInfo
2023-01-24 18:33:09.966 Toon: onDisconnect called: toonConnZwaveInfo
2023-01-24 18:33:29.063 Toon: onHeartbeat called
2023-01-24 18:33:29.121 Toon: onConnect called
2023-01-24 18:33:29.121 Toon: getThermostatInfo created
2023-01-24 18:33:29.121 Toon: Connecting to: 192.168.1.200:80/happ_thermstat?action=getThermostatInfo
2023-01-24 18:33:29.121 Toon: onConnect called
2023-01-24 18:33:29.121 Toon: getBoilerInfo created
2023-01-24 18:33:29.121 Toon: Connecting to: 192.168.1.200:80/boilerstatus/boilervalues.txt
2023-01-24 18:33:29.124 Toon: onConnect called
2023-01-24 18:33:29.124 Toon: getZwaveInfo created
2023-01-24 18:33:29.124 Toon: Connecting to: 192.168.1.200:80/hdrv_zwave?action=getDevices.json
2023-01-24 18:33:29.127 Toon: onConnect called
2023-01-24 18:33:29.127 Toon: toonTSCinfo created
2023-01-24 18:33:29.127 Toon: Connecting to: 192.168.1.200:80/tsc/sensors
2023-01-24 18:33:29.183 Toon: onMessage called
2023-01-24 18:33:29.183 Toon: {"result":"ok", "currentTemp":"1898", "currentSetpoint":"1900", "currentInternalBoilerSetpoint":"41", "programState":"0", "activeState":"-1", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"1","otCommError":"0","currentModulationLevel":"0"}
2023-01-24 18:33:29.183 Toon: onMessageThermostatInfo called
2023-01-24 18:33:29.183 Toon: Toon getThermostatInfo command executed with status: ok
2023-01-24 18:33:29.186 Toon: Update 0:'41.0' (Toon - Ketel setpoint)
2023-01-24 18:33:29.186 Toon: onMessage called
2023-01-24 18:33:29.186 Toon: {"sampleTime":"24-01-2023 18:34:00","boilerSetpoint":43.51,"roomTempSetpoint":19,"boilerPressure":1.8,"roomTemp":18.97,"boilerOutTemp":null,"boilerInTemp":null,"boilerModulationLevel":0}
2023-01-24 18:33:29.186 Toon: onMessageBoilerInfo called
2023-01-24 18:33:29.186 Toon: boilerpressure: 1.8
2023-01-24 18:33:29.186 Toon: onMessage called
2023-01-24 18:33:29.186 Toon: {"temperature":19.0, "humidity":43.8, "tvoc":15, "eco2":506, "intensity":0}
2023-01-24 18:33:29.186 Toon: onMessagetoonTSCinfo called
2023-01-24 18:33:29.189 Toon: Update 0:'19.0;43;0' (Toon - Luchtvochtigheid)
2023-01-24 18:33:29.189 Toon: onMessage called
2023-01-24 18:33:29.189 Toon: {"dev_2": {"uuid": "670f6fb2-c7af-4ddb-a3fd-b88c88df7cc5", "name": "HAE_METER_v3", "internalAddress": "2", "type": "HAE_METER_v3", "supportsCrc": "1", "ccList": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "supportedCC": "5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e", "nodeFlags": [], "IsConnected": "1", "HealthValue": "10", "DeviceName": "HAE_METER_v3", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.1": {"uuid": "d9c5dbad-517f-4107-8c07-3be0596e42b3", "name": "HAE_METER_v3_1", "internalAddress": "2.1", "type": "HAE_METER_v3_1", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "CurrentGasFlow": "95.00", "CurrentGasQuantity": "9515438.00", "DeviceName": "HAE_METER_v3_1", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.2": {"uuid": "7eb33e27-9d1d-419c-ac0b-3fadfb7baa67", "name": "HAE_METER_v3_2", "internalAddress": "2.2", "type": "HAE_METER_v3_2", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_2", "CurrentElectricityFlow": "NaN", "CurrentElectricityQuantity": "NaN", "CurrentSensorStatus": "DISABLED"}, "dev_2.3": {"uuid": "f42d1623-6d57-49e7-b43b-5bfb5104f09f", "name": "HAE_METER_v3_3", "internalAddress": "2.3", "type": "HAE_METER_v3_3", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_3", "CurrentElectricityFlow": "4.00", "CurrentElectricityQuantity": "232667.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.4": {"uuid": "e1818976-b7f0-4dbe-a9c7-171cea5fe208", "name": "HAE_METER_v3_4", "internalAddress": "2.4", "type": "HAE_METER_v3_4", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_4", "CurrentElectricityFlow": "639.00", "CurrentElectricityQuantity": "13110649.00", "CurrentSensorStatus": "OPERATIONAL"}, "dev_2.5": {"uuid": "ab5142fb-9f72-4a21-a412-ebca6e225828", "name": "HAE_METER_v3_5", "internalAddress": "2.5", "type": "HAE_METER_v3_5", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_5", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "7967441.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.6": {"uuid": "3002274d-633d-4222-b7a0-927415fad553", "name": "HAE_METER_v3_6", "internalAddress": "2.6", "type": "HAE_METER_v3_6", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_6", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "13168550.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.7": {"uuid": "471a324b-cfdd-42a3-b487-6dcab6d292d5", "name": "HAE_METER_v3_7", "internalAddress": "2.7", "type": "HAE_METER_v3_7", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_7", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "3133593.00", "CurrentSensorStatus": "UNKNOWN"}, "dev_2.8": {"uuid": "3011b15c-c8e6-45dd-acbc-029edbd3dfb5", "name": "HAE_METER_v3_8", "internalAddress": "2.8", "type": "HAE_METER_v3_8", "supportsCrc": "0", "ccList": "5e 59 85 8e 3c 3d 3e", "supportedCC": "5e 59 85 8e 3c 3d 3e", "nodeFlags": [], "DeviceName": "HAE_METER_v3_8", "CurrentHeatQuantity": "NaN", "CurrentSensorStatus": "UNKNOWN", "CurrentHeatFlow": "NaN"}, "dev_settings_device": {"uuid": "ab75c594-5d2b-48a1-823e-4181f252da6b", "name": "settings_device", "internalAddress": "settings_device", "type": "settings_device"}}
2023-01-24 18:33:29.189 Toon: onMessageZwaveInfo called
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': '670f6fb2-c7af-4ddb-a3fd-b88c88df7cc5', 'name': 'HAE_METER_v3', 'internalAddress': '2', 'type': 'HAE_METER_v3', 'supportsCrc': '1', 'ccList': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'supportedCC': '5e 86 72 32 56 5a 59 85 73 7a 60 8e 22 70 8b 3c 3d 3e', 'nodeFlags': [], 'IsConnected': '1', 'HealthValue': '10', 'DeviceName': 'HAE_METER_v3', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': 'd9c5dbad-517f-4107-8c07-3be0596e42b3', 'name': 'HAE_METER_v3_1', 'internalAddress': '2.1', 'type': 'HAE_METER_v3_1', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'CurrentGasFlow': '95.00', 'CurrentGasQuantity': '9515438.00', 'DeviceName': 'HAE_METER_v3_1', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:29.189 Toon: Zwave Gas usage: 95.00 Gas counter: 9515438.00
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': '7eb33e27-9d1d-419c-ac0b-3fadfb7baa67', 'name': 'HAE_METER_v3_2', 'internalAddress': '2.2', 'type': 'HAE_METER_v3_2', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_2', 'CurrentElectricityFlow': 'NaN', 'CurrentElectricityQuantity': 'NaN', 'CurrentSensorStatus': 'DISABLED'}
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': 'f42d1623-6d57-49e7-b43b-5bfb5104f09f', 'name': 'HAE_METER_v3_3', 'internalAddress': '2.3', 'type': 'HAE_METER_v3_3', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_3', 'CurrentElectricityFlow': '4.00', 'CurrentElectricityQuantity': '232667.00', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': 'e1818976-b7f0-4dbe-a9c7-171cea5fe208', 'name': 'HAE_METER_v3_4', 'internalAddress': '2.4', 'type': 'HAE_METER_v3_4', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_4', 'CurrentElectricityFlow': '639.00', 'CurrentElectricityQuantity': '13110649.00', 'CurrentSensorStatus': 'OPERATIONAL'}
2023-01-24 18:33:29.189 Toon: elec_delivered_nt: 639.00, 13110649.00
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': 'ab5142fb-9f72-4a21-a412-ebca6e225828', 'name': 'HAE_METER_v3_5', 'internalAddress': '2.5', 'type': 'HAE_METER_v3_5', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_5', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '7967441.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:29.189 Toon: elec_received_nt: 0.00, 7967441.00
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': '3002274d-633d-4222-b7a0-927415fad553', 'name': 'HAE_METER_v3_6', 'internalAddress': '2.6', 'type': 'HAE_METER_v3_6', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_6', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '13168550.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:29.189 Toon: elec_delivered_lt: 0.00, 13168550.00
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': '471a324b-cfdd-42a3-b487-6dcab6d292d5', 'name': 'HAE_METER_v3_7', 'internalAddress': '2.7', 'type': 'HAE_METER_v3_7', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_7', 'CurrentElectricityFlow': '0.00', 'CurrentElectricityQuantity': '3133593.00', 'CurrentSensorStatus': 'UNKNOWN'}
2023-01-24 18:33:29.189 Toon: elec_received_lt: 0.00, 3133593.00
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': '3011b15c-c8e6-45dd-acbc-029edbd3dfb5', 'name': 'HAE_METER_v3_8', 'internalAddress': '2.8', 'type': 'HAE_METER_v3_8', 'supportsCrc': '0', 'ccList': '5e 59 85 8e 3c 3d 3e', 'supportedCC': '5e 59 85 8e 3c 3d 3e', 'nodeFlags': [], 'DeviceName': 'HAE_METER_v3_8', 'CurrentHeatQuantity': 'NaN', 'CurrentSensorStatus': 'UNKNOWN', 'CurrentHeatFlow': 'NaN'}
2023-01-24 18:33:29.189 Toon: Zwave message: {'uuid': 'ab75c594-5d2b-48a1-823e-4181f252da6b', 'name': 'settings_device', 'internalAddress': 'settings_device', 'type': 'settings_device'}
2023-01-24 18:33:29.190 Toon: zwaveDelivered: 639;26279199
2023-01-24 18:33:29.191 Toon: Update 0:'639;26279199' (Toon - Electriciteit)
2023-01-24 18:33:29.191 Toon: zwaveReceived: 0;11101034
2023-01-24 18:33:29.196 Toon: Update 0:'13110649;13168550;7967441;3133593;639;0' (Toon - P1 Electriciteit)
2023-01-24 18:33:29.254 Toon: onDisconnect called: ThermostatInfo
2023-01-24 18:33:29.254 Toon: onDisconnect called: BoilerInfo
2023-01-24 18:33:29.254 Toon: onDisconnect called: toonTSCinfo
2023-01-24 18:33:29.254 Toon: onDisconnect called: toonConnZwaveInfo
Sorry...
I think you need this info
2023-01-24 18:31:05.151 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:31:05.209 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:31:25.122 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:31:25.189 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:31:45.142 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:31:45.210 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:32:05.135 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:32:05.191 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:32:25.165 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:32:25.221 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:32:45.133 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:32:45.188 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-24 18:33:05.120 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-24 18:33:05.181 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
Yup that is the one. What did you change to get it?
Uhhh..... nothing in the plugin
I did a fresh pull or i overlooked the correct line
Can you post the loglines around those in debug? I would expect a line with "onMessageThermostatInfo called" and "'Toon getThermostatInfo command executed with status: error" due to this part of code:
Domoticz.Debug("onMessageThermostatInfo called")
result='error'
if 'result' in Response:
result=Response['result']
Domoticz.Debug("Toon getThermostatInfo command executed with status: " + result)
2023-01-24 21:14:49.272 Toon: getConnSetControl created 2023-01-24 21:14:49.272 Toon: Connecting to: 192.168.1.200:80/happ_thermstat?action=changeSchemeState&state=2&temperatureState=2 2023-01-24 21:14:49.272 Toon: onDisconnect called: ThermostatInfo 2023-01-24 21:14:49.272 Toon: onDisconnect called: BoilerInfo 2023-01-24 21:14:49.273 Toon: onDisconnect called: toonTSCinfo 2023-01-24 21:14:49.273 Toon: onDisconnect called: toonConnZwaveInfo 2023-01-24 21:14:49.325 Toon: onMessage called 2023-01-24 21:14:49.325 Toon: {"result":"ok"} 2023-01-24 21:14:49.325 Toon: onMessage: toonConnSetControl 2023-01-24 21:14:49.325 Toon: Toon set command executed with status: ok 2023-01-24 21:14:55.220 Toon: onDisconnect called: toonConnSetControl 2023-01-24 21:15:09.100 Toon: onHeartbeat called 2023-01-24 21:15:09.154 Toon: onConnect called 2023-01-24 21:15:09.154 Toon: getThermostatInfo created 2023-01-24 21:15:09.154 Toon: Connecting to: 192.168.1.200:80/happ_thermstat?action=getThermostatInfo 2023-01-24 21:15:09.155 Toon: onConnect called 2023-01-24 21:15:09.155 Toon: getBoilerInfo created 2023-01-24 21:15:09.155 Toon: Connecting to: 192.168.1.200:80/boilerstatus/boilervalues.txt 2023-01-24 21:15:09.156 Toon: onConnect called 2023-01-24 21:15:09.156 Toon: getZwaveInfo created 2023-01-24 21:15:09.156 Toon: Connecting to: 192.168.1.200:80/hdrv_zwave?action=getDevices.json 2023-01-24 21:15:09.157 Toon: onConnect called 2023-01-24 21:15:09.157 Toon: toonTSCinfo created 2023-01-24 21:15:09.157 Toon: Connecting to: 192.168.1.200:80/tsc/sensors 2023-01-24 21:15:09.209 Toon: onMessage called 2023-01-24 21:15:09.209 Toon: {"result":"ok", "currentTemp":"1841", "currentSetpoint":"1700", "currentInternalBoilerSetpoint":"6", "programState":"0", "activeState":"2", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"0","otCommError":"0","currentModulationLevel":"0"} 2023-01-24 21:15:09.209 Toon: onMessageThermostatInfo called 2023-01-24 21:15:09.209 Toon: Toon getThermostatInfo command executed with status: ok 2023-01-24 21:15:09.209 Toon: onMessage called 2023-01-24 21:15:09.209 Toon: {"sampleTime":"24-01-2023 21:15:00","boilerSetpoint":6,"roomTempSetpoint":17,"boilerPressure":1.5,"roomTemp":18.46,"boilerOutTemp":null,"boilerInTemp":null,"boilerModulationLevel":0} 2023-01-24 21:15:09.209 Toon: onMessageBoilerInfo called 2023-01-24 21:15:09.209 Toon: boilerpressure: 1.5 2023-01-24 21:15:09.209 Toon: onMessage called 2023-01-24 21:15:09.210 Toon: {"temperature":18.4, "humidity":44.7, "tvoc":20, "eco2":534, "intensity":0}
I just restarted the VM and plugin, but these lines i don't see in th elog anymore
2023-01-24 18:33:05.120 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates 2023-01-24 18:33:05.181 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
Maybe this is easier. The complete logfile
ok, I already found the problem: there was a return True
just before the call to self.getScenesConfig(self.toonConnThermostatInfo)
.... I fixed that and added some logging, can you retry?
Plugin is not starting now
2023-01-24 21:48:25.753 Error: Toon: Transport is not connected, write directive to 'Toon Connection' ignored.
2023-01-24 21:48:26.121 Status: PluginSystem: 1 plugins started.
2023-01-24 21:48:26.225 Error: Domoticz(pid:2890, tid:2909('Plugin_ASIO')) received fatal signal 11 (Segmentation fault)
2023-01-24 21:48:26.225 Error: siginfo address=0x3d900000b4a, address=0x7fb372f954fb
that is really strange. It refers to 'Plugin_ASIO', you have no other plugin by that name? If I load it into Domoticz it works fine?
same issue on production server. Domoticz freezes completely
2023-01-24 22:02:23.927 Status: Zwave USB: Received timeout notification from HomeID: 3480482712, NodeID: 22 (0x16)
2023-01-24 22:02:25.001 Toon: CConnection_connect, connect request from 'Toon' ignored. Plugin is stopping.
2023-01-24 22:02:25.001 Toon: CConnection_connect, connect request from 'Toon' ignored. Plugin is stopping.
2023-01-24 22:02:25.001 Toon: CConnection_connect, connect request from 'Toon' ignored. Plugin is stopping.
2023-01-24 22:02:25.001 Toon: CConnection_connect, connect request from 'Toon' ignored. Plugin is stopping.
2023-01-24 22:02:26.928 Status: Zwave USB: Received timeout notification from HomeID: 3480482712, NodeID: 22 (0
ok, so it doesn't work as expected. I put the return again above the call so if you pull now it will be ok again. I'll look firther tomorrow.
When i Google on Plugin_ASIO and Domoticz it looks like a problem that occurs often with Python plugins I can not make out what it is exactly and how to solve. In some threads it seemed to solved with a new release of Domoticz. On my VM i've running the latest Beta and not any other plugins
when i remove this line, domoticz is running
self.getScenesConfig(self.toonConnThermostatInfo)
Is this command correct ? 2x self. ?
I think it is working now. The info is now in the log
2023-01-26 20:56:36.224 Toon: Update 0:'637;26319800' (Toon - Electriciteit)
2023-01-26 20:56:36.224 Toon: zwaveReceived: 0;11102493
2023-01-26 20:56:36.227 Toon: Update 0:'13143875;13175925;7968900;3133593;637;0' (Toon - P1 Electriciteit)
2023-01-26 20:56:36.227 Toon: onMessage called
2023-01-26 20:56:36.227 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-26 20:56:36.294 Toon: onDisconnect called: ThermostatInfo
2023-01-26 20:56:36.294 Toon: onDisconnect called: BoilerInfo
2023-01-26 20:56:36.294 Toon: onDisconnect called: toonTSCinfo
2023-01-26 20:56:36.294 Toon: onDisconnect called: toonConnZwaveInfo
2023-01-26 20:56:36.294 Toon: onDisconnect called: toonSceneinfo
I think i messed up between Beta and Main branch...... Sorry......
What i had create was the function "toonSceneinfo"on the same principle as the other function. It is giving the info in the log, but is not complete
The "def" function is incomplete
def onMessagetoonSceneinfo(self, Connection, Response):
Domoticz.Debug("onMessagetoonSceneinfo called")
Sorry for the trouble 🥲
OK, made some changes. The info of the scens (the temp) will now be in a list with the ID as the index. You can use that more elegantly than just creating an element per scene (the self.scene1 structure). Can you handle it from here?
Many thanks !!1
Unfortunately i'm not a programmer. Just try to understand it and copy and past things 😄
I get this error:
2023-01-27 19:36:14.138 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-27 19:36:14.199 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-27 19:36:14.211 Error: Toon: for state in Response['states']['state']:
2023-01-27 19:36:34.162 Toon: Connecting to: 192.168.1.200:80/hcb_config?action=getObjectConfigTree&package=happ_thermstat&internalAddress=thermostatStates
2023-01-27 19:36:34.224 Toon: {"states":[{"state":[{"id":["0"],"tempValue":["2000"],"dhw":["1"]},{"id":["1"],"tempValue":["1950"],"dhw":["1"]},{"id":["2"],"tempValue":["1700"],"dhw":["1"]},{"id":["3"],"tempValue":["1800"],"dhw":["1"]},{"id":["4"],"tempValue":["1000"],"dhw":["1"]}]}],"package":["happ_thermstat"],"uuid":["104ba5b4-91d1-466e-b743-198d808298c7"],"type":["states"],"name":["thermostatStates"],"internalAddress":["thermostatStates"],"visibility":["0"],"statesSaved":["1"]}
2023-01-27 19:40:54.183 Error: Toon: Call to function 'onMessage' failed, exception details:
2023-01-27 19:40:54.183 Error: Toon: Traceback (most recent call last):
2023-01-27 19:40:54.183 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 695, in onMessage
2023-01-27 19:40:54.183 Error: Toon: _plugin.onMessage(Connection, Data)
2023-01-27 19:40:54.183 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 569, in onMessage
2023-01-27 19:40:54.183 Error: Toon: self.onMessagetoonSceneinfo(Connection, Response)
2023-01-27 19:40:54.183 Error: Toon: File "/var/domoticz/plugins/domoticz_toon/plugin.py", line 443, in onMessagetoonSceneinfo
2023-01-27 19:40:54.183 Error: Toon: for state in Response['states']['state']:
2023-01-27 19:40:54.183 Error: Toon: TypeError: list indices must be integers or slices, not str
And it it now linked to the scene / temperature as in
if strCurrentSetpoint == self.scene1:
UpdateDevice(Unit=scene, nValue=0, sValue=programs[3])
Ok. I think the setup of getting the scene is correct. I've tried with manual settings and this is working
def onMessagetoonSceneinfo(self, Connection, Response):
Domoticz.Debug("onMessagetoonSceneinfo called")
if 'states' in Response:
#this message contains the scenes
Domoticz.Debug("onMessagetoonSceneinfo processing list of scenes")
# for state in Response['states']['state']:
# self.scenes[state['id'][0]] = int(state['tempValue'][0])
self.scene1='1800'
self.scene2='1700'
self.scene3='1900'
self.scene4='2000'
The only thing is to get the info form the Toon to the plugin
for state in Response['states']['state']:
self.scenes[state['id'][0]] = int(state['tempValue'][0])
I think i fixed the first error
def onMessagetoonSceneinfo(self, Connection, Response):
Domoticz.Debug("onMessagetoonSceneinfo called")
if 'states' in Response:
#this message contains the scenes
Domoticz.Debug("onMessagetoonSceneinfo processing list of scenes")
for state in Response["states"][0]["state"]:
Domoticz.Log("id ="+ state["id"][0] + " Temp =" + state["tempValue"][0])
self.scenes[state["id"][0]] = int(state["tempValue"][0])
This gives in the log 👍
2023-02-04 09:59:22.321 Toon: Toon set command executed with status: ok
2023-02-04 09:59:42.209 Toon: id =0 Temp =2000
2023-02-04 09:59:42.209 Toon: id =1 Temp =1900
2023-02-04 09:59:42.209 Toon: id =2 Temp =1700
2023-02-04 09:59:42.209 Toon: id =3 Temp =1800
2023-02-04 09:59:42.209 Toon: id =4 Temp =1000
But still this error
2023-02-04 10:00:46.187 Error: Toon: self.scenes[state["id"][0]] = (state["tempValue"][0])
2023-02-04 10:00:46.187 Error: Toon: TypeError: list indices must be integers or slices, not str
When chaning the setpoint on the Toon, the Scene is not update accodingly if this has the Scene temperature
So when Scene programmed setting "Sleep" has value 17.0°C When yo change the setpoint from 18.0 to 17.0 the Scene remains on the last set Scene and will not be update to Scene "Sleep"
The scenes are set in
strPrograms = ['Comfort', 'Home', 'Sleep', 'Away','Manual']
So if the setpoint is set to 17.0 is equals Scene1 and it must change Switch strPrograms to "Sleep"