MadPatrick / domoticz_toon

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

Refresh rate as a variable #2

Closed MadPatrick closed 1 year ago

MadPatrick commented 1 year ago

Refresh rate is now 10sec, which is pretty often Maybe possible to make this a variable

JanJaapKo commented 1 year ago

As long as we cannot free up some mode parameters, this won't be possible.....

when the read-out trick in #1 works, this will be possible
MadPatrick commented 1 year ago

Ok.

I've updated the plugin in Domoticz. This is the output

2023-01-04 17:44:31.266 Status: Toon: Entering work loop.
2023-01-04 17:44:31.266 Status: NotificationSystem: thread started...
2023-01-04 17:44:31.266 Status: EventSystem: reset all events...
2023-01-04 17:44:31.267 Status: EventSystem: reset all device statuses...
2023-01-04 17:44:31.303 Status: Python EventSystem: Initializing event module.
2023-01-04 17:44:31.303 Status: EventSystem: Queue thread started...
2023-01-04 17:44:31.303 Status: EventSystem: Started
2023-01-04 17:44:31.396 Status: Toon: Initialized version 1.3.1, author 'MadPatrick'
2023-01-04 17:44:31.738 Status: PluginSystem: 1 plugins started.
2023-01-04 17:44:31.438 Error: Toon: Transport is not connected, write directive to 'Toon Connection' ignored.

2023-01-04 17:44:36.102 Toon: onHeartbeat called
2023-01-04 17:44:37.830 Toon: onDisconnect called
2023-01-04 17:44:37.830 Toon: onDisconnect called
2023-01-04 17:44:37.830 Toon: onDisconnect called
2023-01-04 17:44:41.102 Toon: onHeartbeat called
2023-01-04 17:44:41.160 Toon: onConnect called
2023-01-04 17:44:41.160 Toon: getThermostatInfo created
2023-01-04 17:44:41.160 Toon: Connecting to: 192.168.1.200:80/happ_thermstat?action=getThermostatInfo
2023-01-04 17:44:41.160 Toon: onConnect called
2023-01-04 17:44:41.160 Toon: getBoilerInfo created
2023-01-04 17:44:41.160 Toon: Connecting to: 192.168.1.200:80/boilerstatus/boilervalues.txt
2023-01-04 17:44:41.163 Toon: onConnect called
2023-01-04 17:44:41.163 Toon: getZwaveInfo created
2023-01-04 17:44:41.163 Toon: Connecting to: 192.168.1.200:80/hdrv_zwave?action=getDevices.json
2023-01-04 17:44:41.218 Toon: onMessage called
2023-01-04 17:44:41.218 Toon: {"result":"ok", "currentTemp":"1929", "currentSetpoint":"1900", "currentInternalBoilerSetpoint":"6", "programState":"0", "activeState":"-1", "nextProgram":"-1", "nextState":"-1", "nextTime":"0","nextSetpoint":"0","randomConfigId":"1804289383","errorFound":"255","connection":"0","burnerInfo":"0","otCommError":"0","currentModulationLevel":"0"}
2023-01-04 17:44:41.218 Toon: onMessageThermostatInfo called
2023-01-04 17:44:41.218 Toon: Toon getThermostatInfo command executed with status: ok
2023-01-04 17:44:41.220 Toon: Update 0:'0' (Toon - Brander modulatie)
2023-01-04 17:44:41.220 Toon: onMessage called
2023-01-04 17:44:41.220 Toon: {"sampleTime":"04-01-2023 17:45:00","boilerSetpoint":6,"roomTempSetpoint":19,"boilerPressure":1.5,"roomTemp":19.32,"boilerOutTemp":null,"boilerInTemp":null,"boilerModulationLevel":0}
2023-01-04 17:44:41.220 Toon: onMessageBoilerInfo called
2023-01-04 17:44:41.220 Toon: boilerpressure: 1.5
2023-01-04 17:44:41.220 Toon: onMessage called
2023-01-04 17:44:41.220 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": "10.00", "CurrentGasQuantity": "9334311.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": "175612.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": "4241.00", "CurrentElectricityQuantity": "12927820.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": "7949330.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": "13038753.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-04 17:44:41.220 Toon: onMessageZwaveInfo called
2023-01-04 17:44:41.220 Toon: Zwave Gas usage: 10.00
2023-01-04 17:44:41.220 Toon: Zwave Gas counter: 9334311.00
2023-01-04 17:44:41.220 Toon: elec_delivered_nt: 4241.00, 12927820.00
2023-01-04 17:44:41.220 Toon: elec_received_nt: 0.00, 7949330.00
2023-01-04 17:44:41.220 Toon: elec_delivered_lt: 0.00, 13038753.00
2023-01-04 17:44:41.220 Toon: elec_received_lt: 0.00, 3127374.00
2023-01-04 17:44:41.221 Toon: zwaveDelivered: 4241;25966573
2023-01-04 17:44:41.222 Toon: Update 0:'4241;25966573' (Toon - Electricity)
2023-01-04 17:44:41.222 Toon: zwaveReceived: 0;11076704
2023-01-04 17:44:41.224 Toon: Update 0:'12927820;13038753;7949330;3127374;4241;0' (Toon - P1 Electricity)
2023-01-04 17:44:46.072 Toon: onHeartbeat called
2023-01-04 17:44:47.660 Toon: onDisconnect called
2023-01-04 17:44:47.660 Toon: onDisconnect called
2023-01-04 17:44:47.660 Toon: onDisconnect called
MadPatrick commented 1 year ago

What does this message mean ?

2023-01-04 18:51:02.811 Toon: onDisconnect called
2023-01-04 18:51:02.811 Toon: onDisconnect called
2023-01-04 18:51:02.812 Toon: onDisconnect called

and

2023-01-04 18:51:04.740 Toon: onStop called
2023-01-04 18:51:04.740 Status: Toon: Stop directive received.
2023-01-04 18:51:04.745 Status: Toon: Exiting work loop.
2023-01-04 18:51:04.842 Status: Toon: Stopping threads.
2023-01-04 18:51:04.842 Status: Toon: Stopped.
2023-01-04 18:51:04.743 Error: (FindModule) Domoticz/DomoticzEx modules not found in interpreter.
JanJaapKo commented 1 year ago

I've updated the config to use a pull down, this eliminates chance of typo's in config. Should be OK then?

MadPatrick commented 1 year ago

Perfect. We can merge it to Main then. The humidity sensor is now disabled in Beta because it is not working yet I've disable it with #TSC in front of each line