-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on parsing tydom response #176
Comments
I got the exact same issue for the last two weeks: |
same issue here as well. so either message format changed or a rollback to an older version should help? |
Same issue here but for my heating system (detected as boiler). Here the error if it helps:
|
Hello,
I'm testing tydom2mqtt but I have an error at startup:
2024-02-19 20:04:29,562 - tydom.MessageHandler - ERROR - Error on parsing tydom response ('>' not supported between instances of 'float' and 'NoneType') 2024-02-19 20:04:29,563 - tydom.MessageHandler - ERROR - Incoming data ([{"id":1594190006,"endpoints":[{"id":1594190006,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"STOP"},{"name":"setpoint","validity":"upToDate","value":null},{"name":"thermicLevel","validity":"upToDate","value":"STOP"},{"name":"hvacMode","validity":"upToDate","value":"NORMAL"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":21.090},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1594190079,"endpoints":[{"id":1594190079,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"STOP"},{"name":"setpoint","validity":"upToDate","value":null},{"name":"thermicLevel","validity":"upToDate","value":"STOP"},{"name":"hvacMode","validity":"upToDate","value":"STOP"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":20.320},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1594190137,"endpoints":[{"id":1594190137,"error":15,"data":[{"name":"authorization","validity":"expired","value":null},{"name":"setpoint","validity":"expired","value":null},{"name":"thermicLevel","validity":"expired","value":null},{"name":"hvacMode","validity":"expired","value":null},{"name":"timeDelay","validity":"expired","value":null},{"name":"temperature","validity":"expired","value":null},{"name":"tempoOn","validity":"expired","value":false},{"name":"antifrostOn","validity":"expired","value":false},{"name":"loadSheddingOn","validity":"expired","value":false},{"name":"openingDetected","validity":"expired","value":false},{"name":"presenceDetected","validity":"expired","value":false},{"name":"absence","validity":"expired","value":false},{"name":"productionDefect","validity":"expired","value":false},{"name":"batteryCmdDefect","validity":"expired","value":false},{"name":"tempSensorDefect","validity":"expired","value":false},{"name":"tempSensorShortCut","validity":"expired","value":false},{"name":"tempSensorOpenCirc","validity":"expired","value":false},{"name":"boostOn","validity":"expired","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1594190476,"endpoints":[{"id":1594190476,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"STOP"},{"name":"setpoint","validity":"upToDate","value":null},{"name":"thermicLevel","validity":"upToDate","value":"STOP"},{"name":"hvacMode","validity":"upToDate","value":"STOP"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":20.320},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1594190528,"endpoints":[{"id":1594190528,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"STOP"},{"name":"setpoint","validity":"upToDate","value":null},{"name":"thermicLevel","validity":"upToDate","value":"STOP"},{"name":"hvacMode","validity":"upToDate","value":"STOP"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":20.320},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1707832490,"endpoints":[{"id":1707832490,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"HEATING"},{"name":"setpoint","validity":"upToDate","value":null},{"name":"thermicLevel","validity":"upToDate","value":"STOP"},{"name":"hvacMode","validity":"upToDate","value":"STOP"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":20.970},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":true},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"jobs","validity":"upToDate","value":37},{"name":"antiSeizurePeriod","validity":"upToDate","value":0},{"name":"maintenanceNeeded","validity":"upToDate","value":false},{"name":"jobsMP","validity":"upToDate","value":4121},{"name":"indexTimeOn","validity":"upToDate","value":2026},{"name":"activationIndex","validity":"upToDate","value":5},{"name":"timeOnCpt","validity":"upToDate","value":2026},{"name":"activationCpt","validity":"upToDate","value":5},{"name":"softVersion","validity":"upToDate","value":"01.01.00"},{"name":"softPlan","validity":"upToDate","value":"26.51.00.10"},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1707832687,"endpoints":[{"id":1707832687,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"HEATING"},{"name":"setpoint","validity":"upToDate","value":20.500},{"name":"thermicLevel","validity":"upToDate","value":null},{"name":"hvacMode","validity":"upToDate","value":"NORMAL"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":21.100},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]},{"id":1707832743,"endpoints":[{"id":1707832743,"error":0,"data":[{"name":"authorization","validity":"upToDate","value":"HEATING"},{"name":"setpoint","validity":"upToDate","value":19.500},{"name":"thermicLevel","validity":"upToDate","value":null},{"name":"hvacMode","validity":"upToDate","value":"NORMAL"},{"name":"timeDelay","validity":"upToDate","value":0},{"name":"temperature","validity":"upToDate","value":19.780},{"name":"tempoOn","validity":"upToDate","value":false},{"name":"antifrostOn","validity":"upToDate","value":false},{"name":"loadSheddingOn","validity":"upToDate","value":false},{"name":"openingDetected","validity":"upToDate","value":false},{"name":"presenceDetected","validity":"upToDate","value":false},{"name":"absence","validity":"upToDate","value":false},{"name":"productionDefect","validity":"upToDate","value":false},{"name":"batteryCmdDefect","validity":"upToDate","value":false},{"name":"tempSensorDefect","validity":"upToDate","value":false},{"name":"tempSensorShortCut","validity":"upToDate","value":false},{"name":"tempSensorOpenCirc","validity":"upToDate","value":false},{"name":"boostOn","validity":"upToDate","value":false},{"name":"anticipCoeff","validity":"upToDate","value":30}]}]}] ) 2024-02-19 20:04:29,565 - tydom.MessageHandler - ERROR - '>' not supported between instances of 'float' and 'NoneType' Traceback (most recent call last): File "/app/tydom/MessageHandler.py", line 362, in parse_response await self.parse_devices_data(parsed=parsed) File "/app/tydom/MessageHandler.py", line 472, in parse_devices_data await self.parse_endpoint_data(endpoint, i["id"]) File "/app/tydom/MessageHandler.py", line 709, in parse_endpoint_data await new_sh_hvac.update() File "/app/sensors/Boiler.py", line 163, in update "idle" if self.current_temp > self.current_setpoint else "heating", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'float' and 'NoneType' 2024-02-19 20:04:29,572 - tydom.MessageHandler - WARNING - Unknown message type received ([] )
Thanks for your help :)
The text was updated successfully, but these errors were encountered: