UncleSamSwiss / ioBroker.loxone

ioBroker adapter for Loxone Miniserver
Apache License 2.0
27 stars 24 forks source link

Added connection timeout and types improvement #561

Open GermanBluefox opened 1 week ago

GermanBluefox commented 1 week ago

sometimes the reconnection process does not finish itself. Normal log:

2024-06-26 11:07:37.010 - info: loxone.0 (1299) Got terminate signal TERMINATE_YOURSELF
2024-06-26 11:07:37.021 - info: loxone.0 (1299) terminating
2024-06-26 11:07:37.022 - info: loxone.0 (1299) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-06-26 11:07:37.524 - info: loxone.0 (1299) terminating
2024-06-26 11:07:42.865 - info: loxone.0 (767144) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.loxone, node: v16.15.1, js-controller: 5.0.1-alpha.0-20230329-a18b1b33
2024-06-26 11:07:43.286 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:07:44.508 - info: loxone.0 (767144) got structure file; last modified on 2024-06-26 10:52:35
2024-06-26 11:07:46.626 - info: loxone.0 (767144) Unsupported device control IRoomController
2024-06-26 11:07:53.881 - info: loxone.0 (767144) Unsupported device control Heatmixer
2024-06-26 11:07:54.570 - info: loxone.0 (767144) Unsupported device control UpDownDigital
2024-06-26 11:07:57.585 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-00aa-9eac-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.590 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0263-78b4-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.601 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-027a-3658-ffff7asdf74e623.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.607 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-00f2-552b-ffff5asdf105b26.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.629 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0230-e45b-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.650 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0018-0cd5-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.671 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0233-4ea5-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.683 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-00b6-c373-ffff5asdf105b26.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.686 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0121-f841-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.708 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-02d0-7734-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:57.711 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0179-65f1-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.800 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-03cc-3807-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.822 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0052-6dcb-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.834 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-02d4-52ef-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.847 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-010b-9b8f-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.858 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0279-82b0-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.869 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0371-2ec6-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.880 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0325-8cd5-ffff5asdf105b26.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.892 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-02aa-acbd-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.904 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0157-be99-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.916 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0359-d123-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.927 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0335-8a7c-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:58.939 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-016f-23a5-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:59.914 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0349-3fb7-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:59.939 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0193-5c6f-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:59.957 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0324-0849-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:59.978 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-03c6-9509-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:07:59.998 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0256-c6ff-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:08:00.020 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0234-0887-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:08:00.041 - info: loxone.0 (767144) State value to set for "loxone.0.aabbccdd-0325-adad-ffff5asdf000000.sceneList" has to be stringified but received type "object"
2024-06-26 11:14:19.046 - info: loxone.0 (767144) Socket closed 2008
2024-06-26 11:14:24.050 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:24.596 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:29.598 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:29.971 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:34.975 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:35.289 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:40.290 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:40.632 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:45.634 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:45.802 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:50.805 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:51.275 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:14:56.276 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:14:56.545 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:15:01.547 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:15:01.761 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:15:06.763 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:15:06.776 - error: loxone.0 (767144) Couldn't open socket
2024-06-26 11:15:11.777 - info: loxone.0 (767144) Trying to connect
2024-06-26 11:15:14.970 - info: loxone.0 (767144) got structure file; last modified on 2024-06-26 11:14:21
2024-06-26 11:15:16.798 - info: loxone.0 (767144) Unsupported device control IRoomController
2024-06-26 11:15:17.094 - info: loxone.0 (767144) Unsupported device control IRoomController

Error log:

2024-06-20 11:08:24.363 - info: loxone.0 (1299) State value to set for "loxone.0.sdfsfsdf-0325-adasdfsdfsd94000000.sceneList" has to be stringified but received type "object"
2024-06-20 11:17:21.130 - info: loxone.0 (1299) Socket closed 2008
2024-06-20 11:17:26.132 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:27.438 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:32.439 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:32.870 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:37.872 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:37.923 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:42.924 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:43.201 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:48.203 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:48.659 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:53.660 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:17:54.710 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:17:59.710 - info: loxone.0 (1299) Trying to connect
2024-06-20 11:18:00.179 - error: loxone.0 (1299) Couldn't open socket
2024-06-20 11:18:05.180 - info: loxone.0 (1299) Trying to connect

After last message no more messages appear and the adapter stays in "orange" state. After restart the connection is immediately established.

To force reconnection it is additional timer added.