Skip to content
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

comfoairq.0.info.connection object not changing to "true" after reconnection #16

Open
1 of 2 tasks
lonestar2001 opened this issue Nov 17, 2021 · 1 comment
Open
1 of 2 tasks

Comments

@lonestar2001
Copy link

lonestar2001 commented Nov 17, 2021

The problem

When first starting the adapter, the connection status (comfoairq.0.info.connection) changes to "true", which is fine.
After a while the debug comment states that the connection will be disconnected which is also visible in the corresponding object with comfoairq.0.info.connection changing to false

Then, when it got reconnected after 20 seconds, it will not change the status anymore, leaving the adapter in the overview in this "warning" state but correctly working. The comfoairq.0.info.connection stays at "false" until you restart the adapter yourself.

That's not an urgent issue, since it is working and responding, but you cannot work with the object comfoairq.0.info.connection at all.

Version of ioBroker js-controller

3.3.14

Version of Adapter

0.1.0

Operating system running ioBroker

MacOS

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

comfoairq.0 2021-11-17 18:08:38.407 debug received: {"time":"2021-11-17T17:08:38.407Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":294,"name":"SENSOR_HUMIDITY_SUPPLY","data":47}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.406 debug received: {"time":"2021-11-17T17:08:38.406Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":292,"name":"SENSOR_HUMIDITY_OUTDOOR","data":77}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.386 debug received: {"time":"2021-11-17T17:08:38.386Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":291,"name":"SENSOR_HUMIDITY_EXHAUST","data":80}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.386 debug received: {"time":"2021-11-17T17:08:38.386Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":290,"name":"SENSOR_HUMIDITY_EXTRACT","data":47}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.380 debug received: {"time":"2021-11-17T17:08:38.380Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":276,"name":"SENSOR_TEMPERATURE_OUTDOOR","data":4.7}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.380 debug received: {"time":"2021-11-17T17:08:38.380Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":275,"name":"SENSOR_TEMPERATURE_EXHAUST","data":9.7}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.378 debug received: {"time":"2021-11-17T17:08:38.378Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":274,"name":"SENSOR_TEMPERATURE_EXTRACT","data":22}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.378 debug received: {"time":"2021-11-17T17:08:38.378Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":227,"name":"SENSOR_BYPASS_STATE","data":0}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.377 debug received: {"time":"2021-11-17T17:08:38.377Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":221,"name":"SENSOR_TEMPERATURE_SUPPLY","data":19.8}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.376 debug received: {"time":"2021-11-17T17:08:38.376Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":56,"name":"SENSOR_OPERATING_MODE","data":1}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.367 debug received: {"time":"2021-11-17T17:08:38.367Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":66,"name":"SENSOR_BYPASS_ACTIVATION_MODE","data":2}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.367 debug received: {"time":"2021-11-17T17:08:38.367Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":65,"name":"SENSOR_FAN_SPEED_MODE","data":2}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.367 debug received: {"time":"2021-11-17T17:08:38.366Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":16,"name":"SENSOR_AWAY_INDICATOR","data":1}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.357 debug received: {"time":"2021-11-17T17:08:38.357Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.357 debug received: {"time":"2021-11-17T17:08:38.356Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.356 debug received: {"time":"2021-11-17T17:08:38.356Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.347 debug received: {"time":"2021-11-17T17:08:38.346Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.346 debug received: {"time":"2021-11-17T17:08:38.346Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.345 debug received: {"time":"2021-11-17T17:08:38.345Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.345 debug received: {"time":"2021-11-17T17:08:38.345Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.345 debug received: {"time":"2021-11-17T17:08:38.345Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.344 debug received: {"time":"2021-11-17T17:08:38.344Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.344 debug received: {"time":"2021-11-17T17:08:38.344Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.343 debug received: {"time":"2021-11-17T17:08:38.343Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.343 debug received: {"time":"2021-11-17T17:08:38.343Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.343 debug received: {"time":"2021-11-17T17:08:38.342Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.240 debug received: {"time":"2021-11-17T17:08:38.240Z","kind":32,"result":{"error":"OK","kind":"CnNodeNotification","data":{"nodeId":35,"productId":5,"zoneId":255,"mode":"NODE_NORMAL"}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.240 debug CnNodeNotification --> OK
comfoairq.0 2021-11-17 18:08:38.240 debug received: {"time":"2021-11-17T17:08:38.239Z","kind":32,"result":{"error":"OK","kind":"CnNodeNotification","data":{"nodeId":1,"productId":1,"zoneId":1,"mode":"NODE_NORMAL"}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.240 debug CnNodeNotification --> OK
comfoairq.0 2021-11-17 18:08:38.239 debug received: {"time":"2021-11-17T17:08:38.239Z","kind":53,"result":{"error":"OK","kind":"StartSessionConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:38.213 debug bridge : connected to comfoAir unit -> 2021-11-17 18:08:38
comfoairq.0 2021-11-17 18:08:38.211 debug ** starting reconnection -> 2021-11-17 18:08:38
comfoairq.0 2021-11-17 18:08:18.345 debug comfo: DISCONNECTED -> 2021-11-17 18:08:18
comfoairq.0 2021-11-17 18:08:18.344 debug bridge : TCP socket closed -> 2021-11-17 18:08:18
comfoairq.0 2021-11-17 18:08:18.344 debug bridge : TCP socket ended -> 2021-11-17 18:08:18
comfoairq.0 2021-11-17 18:08:18.265 debug comfo: timeout
comfoairq.0 2021-11-17 18:08:18.264 debug bridge : TCP socket timeout -> 2021-11-17 18:08:18
comfoairq.0 2021-11-17 18:08:08.263 debug received: {"time":"2021-11-17T17:08:08.263Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":227,"name":"SENSOR_BYPASS_STATE","data":0}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.257 debug received: {"time":"2021-11-17T17:08:08.257Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":294,"name":"SENSOR_HUMIDITY_SUPPLY","data":47}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.257 debug received: {"time":"2021-11-17T17:08:08.257Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":276,"name":"SENSOR_TEMPERATURE_OUTDOOR","data":4.7}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.256 debug received: {"time":"2021-11-17T17:08:08.256Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":275,"name":"SENSOR_TEMPERATURE_EXHAUST","data":9.7}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.255 debug received: {"time":"2021-11-17T17:08:08.255Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":274,"name":"SENSOR_TEMPERATURE_EXTRACT","data":22}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.254 debug received: {"time":"2021-11-17T17:08:08.254Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":221,"name":"SENSOR_TEMPERATURE_SUPPLY","data":19.8}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.253 debug received: {"time":"2021-11-17T17:08:08.253Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":66,"name":"SENSOR_BYPASS_ACTIVATION_MODE","data":2}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.247 info State value to set for "comfoairq.0.version.gateway" has to be type "string" but received type "number"
comfoairq.0 2021-11-17 18:08:08.244 debug received: {"time":"2021-11-17T17:08:08.244Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":292,"name":"SENSOR_HUMIDITY_OUTDOOR","data":77}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.244 debug received: {"time":"2021-11-17T17:08:08.244Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":291,"name":"SENSOR_HUMIDITY_EXHAUST","data":80}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.243 debug received: {"time":"2021-11-17T17:08:08.243Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":290,"name":"SENSOR_HUMIDITY_EXTRACT","data":47}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.238 debug received: {"time":"2021-11-17T17:08:08.238Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":65,"name":"SENSOR_FAN_SPEED_MODE","data":2}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.238 debug received: {"time":"2021-11-17T17:08:08.238Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":56,"name":"SENSOR_OPERATING_MODE","data":1}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.234 debug received: {"time":"2021-11-17T17:08:08.233Z","kind":40,"result":{"error":"OK","kind":"CnRpdoNotification","data":{"pdid":16,"name":"SENSOR_AWAY_INDICATOR","data":1}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.221 info State value to set for "comfoairq.0.version.comfonet" has to be type "string" but received type "number"
comfoairq.0 2021-11-17 18:08:08.220 debug received: {"time":"2021-11-17T17:08:08.218Z","kind":68,"result":{"error":"OK","kind":"VersionConfirm","data":{"gatewayVersion":1049610,"serialNumber":"DEM0116300449","comfoNetVersion":1073750016}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.218 debug received: {"time":"2021-11-17T17:08:08.218Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.218 debug received: {"time":"2021-11-17T17:08:08.218Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.217 debug received: {"time":"2021-11-17T17:08:08.217Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.214 debug received: {"time":"2021-11-17T17:08:08.214Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.214 debug received: {"time":"2021-11-17T17:08:08.214Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.214 debug received: {"time":"2021-11-17T17:08:08.214Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.213 debug received: {"time":"2021-11-17T17:08:08.213Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.213 debug received: {"time":"2021-11-17T17:08:08.213Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.213 debug received: {"time":"2021-11-17T17:08:08.213Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.213 debug received: {"time":"2021-11-17T17:08:08.213Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.212 debug received: {"time":"2021-11-17T17:08:08.212Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.212 debug received: {"time":"2021-11-17T17:08:08.212Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.212 debug received: {"time":"2021-11-17T17:08:08.211Z","kind":39,"result":{"error":"OK","kind":"CnRpdoConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.209 debug Registered sensor "294" with result: {}
comfoairq.0 2021-11-17 18:08:08.208 debug Registered sensor "292" with result: {}
comfoairq.0 2021-11-17 18:08:08.208 debug Registered sensor "291" with result: {}
comfoairq.0 2021-11-17 18:08:08.208 debug Registered sensor "290" with result: {}
comfoairq.0 2021-11-17 18:08:08.208 debug Registered sensor "276" with result: {}
comfoairq.0 2021-11-17 18:08:08.207 debug Registered sensor "275" with result: {}
comfoairq.0 2021-11-17 18:08:08.207 debug Registered sensor "274" with result: {}
comfoairq.0 2021-11-17 18:08:08.206 debug Registered sensor "227" with result: {}
comfoairq.0 2021-11-17 18:08:08.206 debug Registered sensor "221" with result: {}
comfoairq.0 2021-11-17 18:08:08.206 debug Registered sensor "66" with result: {}
comfoairq.0 2021-11-17 18:08:08.205 debug Registered sensor "65" with result: {}
comfoairq.0 2021-11-17 18:08:08.205 debug Registered sensor "56" with result: {}
comfoairq.0 2021-11-17 18:08:08.205 debug Registered sensor "16" with result: {}
comfoairq.0 2021-11-17 18:08:08.202 debug startSessionResult:{}
comfoairq.0 2021-11-17 18:08:08.112 debug received: {"time":"2021-11-17T17:08:08.112Z","kind":32,"result":{"error":"OK","kind":"CnNodeNotification","data":{"nodeId":35,"productId":5,"zoneId":255,"mode":"NODE_NORMAL"}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.112 debug CnNodeNotification --> OK
comfoairq.0 2021-11-17 18:08:08.111 debug received: {"time":"2021-11-17T17:08:08.110Z","kind":32,"result":{"error":"OK","kind":"CnNodeNotification","data":{"nodeId":1,"productId":1,"zoneId":1,"mode":"NODE_NORMAL"}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.111 debug CnNodeNotification --> OK
comfoairq.0 2021-11-17 18:08:08.109 debug received: {"time":"2021-11-17T17:08:08.108Z","kind":53,"result":{"error":"OK","kind":"StartSessionConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.107 debug received: {"time":"2021-11-17T17:08:08.103Z","kind":52,"result":{"error":"OK","kind":"RegisterAppConfirm","data":{}},"error":"OK"}
comfoairq.0 2021-11-17 18:08:08.107 debug RegisterAppConfirm --> OK
comfoairq.0 2021-11-17 18:08:08.100 debug startSession
comfoairq.0 2021-11-17 18:08:08.099 debug registerAppResult: {}
comfoairq.0 2021-11-17 18:08:08.074 debug bridge : connected to comfoAir unit -> 2021-11-17 18:08:08
comfoairq.0 2021-11-17 18:08:08.063 debug register the app...
comfoairq.0 2021-11-17 18:08:08.063 debug register disconnect handler...
comfoairq.0 2021-11-17 18:08:08.062 debug register receive handler...
comfoairq.0 2021-11-17 18:08:08.061 debug Active sensors by configuration: [16,56,65,66,221,227,274,275,276,290,291,292,294]
comfoairq.0 2021-11-17 18:08:08.035 info starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.comfoairq, node: v12.22.1, js-controller: 3.3.14
@lonestar2001 lonestar2001 changed the title Bug report comfoairq.0.info.connection object not changing to "true" after reconnection Nov 17, 2021
@lonestar2001
Copy link
Author

Related to the above mentioned problem:

Somehow, the adapter connects to the device for 10 seconds, disconnect and reconnects after a break of 20 seconds. During that time, no state-changes are received. This is repeated all the time.

If this is by design, is it also possible to enable another option, e.g.

  • Only connects once in the beginning
  • Never disconnect from the device
  • Check every 30-60 seconds, if the adapter is still connected (e.g. other client connected to LAN module)
    Reconnect if other client has disconnected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant