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

My Nexa Bridge (not X) won't find any devices #34

Closed
sonite opened this issue Mar 29, 2024 · 29 comments · Fixed by #35
Closed

My Nexa Bridge (not X) won't find any devices #34

sonite opened this issue Mar 29, 2024 · 29 comments · Fixed by #35
Labels
1.6.x Non-X Bridge bug Something isn't working duplicate This issue or pull request already exists

Comments

@sonite
Copy link
Contributor

sonite commented Mar 29, 2024

The device setup in HACS took a while, possibly due to a timeout issue, but eventually, it was configured with the correct IP address and in legacy mode. The Hub was successfully added and detected the name of my Nexa Bridge as "NexaB." However, despite this, the setup repeatedly fails.

Upon inspecting the logs, it appears that the GET request does not receive any response.

HA Logs
2024-03-29 15:25:13.368 WARNING (MainThread) [homeassistant.const] ELECTRIC_POTENTIAL_VOLT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:13.384 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:13.399 WARNING (MainThread) [homeassistant.const] ELECTRIC_CURRENT_AMPERE was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:13.413 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:13.426 WARNING (MainThread) [homeassistant.const] POWER_KILO_WATT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.KILO_WATT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:13.438 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-29 15:25:16.817 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 15:25:18.761 WARNING (MainThread) [homeassistant.setup] Setup of media_source is taking over 10 seconds.
2024-03-29 15:25:18.762 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2024-03-29 15:25:20.660 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2024-03-29 15:25:35.061 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform energy is taking over 10 seconds.
2024-03-29 15:25:38.109 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 15:25:39.177 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-03-29 15:25:39.242 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 15:25:39.249 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 15:25:39.253 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 15:25:39.672 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 15:25:40.162 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 15:25:40.222 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: null
2024-03-29 15:25:40.227 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: null
2024-03-29 15:25:40.230 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-29 15:25:40.233 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: null
2024-03-29 15:25:40.236 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1008: null
2024-03-29 15:25:40.240 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1009: null
2024-03-29 15:25:40.245 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: null
2024-03-29 15:25:40.248 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-29 15:25:40.251 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-29 15:25:40.254 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: null
2024-03-29 15:25:40.256 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: null
2024-03-29 15:25:40.259 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1015: null
2024-03-29 15:25:40.262 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1016: null
2024-03-29 15:25:40.265 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1017: null
2024-03-29 15:25:40.272 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1018: null
2024-03-29 15:25:40.275 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1019: null
2024-03-29 15:25:40.279 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1021: null
2024-03-29 15:25:40.282 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1022: null
2024-03-29 15:25:40.285 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1023: null
2024-03-29 15:25:40.289 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1024: null
2024-03-29 15:25:40.298 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1025: null
2024-03-29 15:25:40.306 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1026: null
2024-03-29 15:25:40.312 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1027: null
2024-03-29 15:25:40.315 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1028: null
2024-03-29 15:25:40.318 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1029: null
2024-03-29 15:25:40.322 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: null
2024-03-29 15:25:40.324 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1031: null
2024-03-29 15:25:40.327 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1032: null
2024-03-29 15:25:40.336 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: null
2024-03-29 15:25:40.340 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1034: null
2024-03-29 15:25:40.344 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1035: null
2024-03-29 15:25:40.347 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1036: null
2024-03-29 15:25:40.350 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1037: null
2024-03-29 15:25:40.352 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: null
2024-03-29 15:25:40.356 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1039: null
2024-03-29 15:25:40.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1040: null
2024-03-29 15:25:40.362 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: null
2024-03-29 15:25:40.365 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1042: null
2024-03-29 15:25:40.369 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: null
2024-03-29 15:25:40.373 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: null
2024-03-29 15:25:40.376 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-29 15:25:40.379 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1049: null
2024-03-29 15:25:40.382 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1050: null
2024-03-29 15:25:40.385 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: null
2024-03-29 15:25:40.388 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: null
2024-03-29 15:25:40.392 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: null
2024-03-29 15:25:40.395 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-29 15:25:40.399 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1055: null
2024-03-29 15:25:40.401 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1056: null
2024-03-29 15:25:40.404 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-29 15:25:40.407 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: null
2024-03-29 15:25:40.410 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1059: null
2024-03-29 15:25:40.414 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: null
2024-03-29 15:25:40.417 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: null
2024-03-29 15:25:40.420 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: null
2024-03-29 15:25:40.424 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: null
2024-03-29 15:25:40.429 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1064: null
2024-03-29 15:25:40.432 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: null
2024-03-29 15:25:40.435 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: null
2024-03-29 15:25:40.438 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: null
2024-03-29 15:25:40.441 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: null
2024-03-29 15:25:40.444 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: null
2024-03-29 15:25:40.447 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: null
2024-03-29 15:25:40.450 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: null
2024-03-29 15:25:40.453 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-29 15:25:40.457 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-29 15:25:40.460 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: null
2024-03-29 15:25:40.463 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: null
2024-03-29 15:25:40.467 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-29 15:25:40.788 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 15:25:42.401 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: 200
2024-03-29 15:25:42.432 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1008: 200
2024-03-29 15:25:43.831 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-29 15:25:44.261 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1009: 200
2024-03-29 15:25:44.365 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-29 15:25:44.740 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1018: 200
2024-03-29 15:25:45.559 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: 200
2024-03-29 15:25:45.578 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: 200
2024-03-29 15:25:45.829 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: 200
2024-03-29 15:25:45.848 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1017: 200
2024-03-29 15:25:45.868 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: 200
2024-03-29 15:25:45.889 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1056: 200
2024-03-29 15:25:46.043 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1032: 200
2024-03-29 15:25:46.148 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1050: 200
2024-03-29 15:25:46.493 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: 200
2024-03-29 15:25:46.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1024: 200
2024-03-29 15:25:46.741 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: 200
2024-03-29 15:25:46.860 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1036: 200
2024-03-29 15:25:46.979 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-29 15:25:47.047 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: 200
2024-03-29 15:25:47.086 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1055: 200
2024-03-29 15:25:47.196 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: 200
2024-03-29 15:25:47.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: 200
2024-03-29 15:25:49.130 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1025: 200
2024-03-29 15:25:49.148 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1049: 200
2024-03-29 15:25:49.165 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: 200
2024-03-29 15:25:49.181 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: 200
2024-03-29 15:25:49.195 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1031: 200
2024-03-29 15:25:49.209 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: 200
2024-03-29 15:25:49.227 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-29 15:25:49.302 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: 200
2024-03-29 15:25:49.395 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1035: 200
2024-03-29 15:25:49.468 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1064: 200
2024-03-29 15:25:49.620 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-29 15:25:49.688 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: 200
2024-03-29 15:25:49.760 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-29 15:25:49.775 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: 200
2024-03-29 15:25:49.868 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1027: 200
2024-03-29 15:25:49.913 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: 200
2024-03-29 15:25:49.994 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: 200
2024-03-29 15:25:50.072 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: 200
2024-03-29 15:25:50.199 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-29 15:25:50.213 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1029: 200
2024-03-29 15:25:50.320 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1034: 200
2024-03-29 15:25:50.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1037: 200
2024-03-29 15:25:50.431 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: 200
2024-03-29 15:25:50.445 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: 200
2024-03-29 15:25:50.567 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: 200
2024-03-29 15:25:50.615 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-29 15:25:50.710 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1022: 200
2024-03-29 15:25:50.776 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1042: 200
2024-03-29 15:25:50.853 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: 200
2024-03-29 15:25:50.891 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1040: 200
2024-03-29 15:25:50.906 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: 200
2024-03-29 15:25:50.956 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1059: 200
2024-03-29 15:25:50.989 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1015: 200
2024-03-29 15:25:51.009 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: 200
2024-03-29 15:25:51.076 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: 200
2024-03-29 15:25:51.110 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1039: 200
2024-03-29 15:26:03.152 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 25.042 seconds (success: False)

But if I browse http://192.168.1.2/v1/info i get:

Postman Log
systemType "Bridge1"
builddate "2020-02-04T12:50:18CET"
gitversion "8a57926552033f755c83e3e9e97419edf3eaf6a7"
version "1.6.7"
gwid "4a9731"
sunrise "05:23"
sunset "18:30"
location  
status "success"
city "ACity"
ip "62.116.111.111"
lat 61.6741
lon 18.1483
manualOverride false
currentTime "2024-03-29T14:43:06+0100"
name "NexaB"
externalIp "62.116.111.111"
remoteSupportPort 0
internalIp "192.168.1.2"
zwaveRole "Primary"
zwaveOnOtherNetwork false
ok433 true
zwaveOK true
cloudOK true
cloudLatency 46
upgraded false

For http://192.168.1.2/v1/nodes/1082 i get:

Postman Log
id 1082
type "NexaTransmitter"
hideInApp false
ignoreInRoomAction false
broken false
locked false
name "Sensor garageport"
roomId 5
groupNode 0
prio 0
favorite false
nexaInfo  
addr 45146357
subaddr 6
capabilities  
0 "notificationContact"
tags []
lastEvents {}
@andersevenrud
Copy link
Owner

Hi.

You're probably correct about the timeout. You could try modifying the configurations:

POLL_INTERVAL = 30
POLL_TIMEOUT = 25
CALL_TIMEOUT = 30

  • POLL_INTERVAL: How often to poll for updates
  • POLL_TIMEOUT: Total timeout for polling all nodes
  • CALL_TIMEOUT: Timeout per request (node)

It's the POLL_TIMEOUT that seems to be hit here. Try increasing it and restarting HA.

Sadly I don't have access to a Legacy bridge setup, so I cannot look into the performance issues that this product seemingly has. More info:

@sonite

This comment was marked as outdated.

@andersevenrud
Copy link
Owner

Kind of strange that /v1/nodes/does not work while /v1/nodes/:id does. I suppose you could try to remove the ending slash, so /v1/nodes instead.

In any case, you probably don't have to mess around with api calls. Since you have so many nodes set up, you probably just have to increase the timeout.

If this solves the issue it might be worth looking into increasing it by default for Legacy users.

@sonite
Copy link
Contributor Author

sonite commented Mar 29, 2024

Yes, you where right. removing the ending slash produced expected output!

@sonite

This comment was marked as outdated.

@andersevenrud
Copy link
Owner

Sadly, still times out like #32 I see. Just like in Try something much higher, like:

POLL_TIMEOUT = 240
CALL_TIMEOUT = 60

I'm going to have to think a little bit on this one and see if there is not a more efficient way of handling the polling on Legacy bridges.

From looking at logs reported in this repo it seems that the bridge randomly gets super slow to respond. The X does not exhibit any issues like this (and also does not need to be polled in the same way).

You've provided some good data here, and maybe there's something in here that gives me some pointers.

@andersevenrud
Copy link
Owner

andersevenrud commented Mar 29, 2024

I would be very interested in seeing if setting CALL_TIMEOUT = None makes any difference here. After digging through some docs it seems like this value might not get applied to all kinds of timeouts when set to a number, which might be why the ReadTimeout error gets emitted. With None it should all depend on POLL_TIMEOUT, which is nice in this case because a variable has been eliminated.

Probably still need to set POLL_TIMEOUT to a high value (like my previous comment) though.

@andersevenrud andersevenrud added bug Something isn't working duplicate This issue or pull request already exists labels Mar 29, 2024
@andersevenrud
Copy link
Owner

andersevenrud commented Mar 29, 2024

Could you provide a sample of /v1/nodes and a couple of different variants of /v1/nodes/:id ?

I'm currently contemplating disabling the value polling on legacy bridges and rely entirely on the websocket broadcasting. This comes with one downside however: the initial sensor values when HA starts up will not be up to date and there is no fallback in case a websocket does not publish updated values.

Edit: This also might mess with the setup procedure because of lack of values...I have to set up a test environment for this myself. There might be a way to get around this with doing some kind of pause between calls on setup to prevent request flooding and timeouts... or just force readings to be zero by default.

However, this would take care of all of the timeout stuff because nodes does not need to enumerated.

Would you mind testing this on your setup ? It's just a matter of commenting out (or remove) the following block of code:

if FORCE_NODE_ENUM or self.legacy:
return await asyncio.gather(*[
self.fetch_node(r["id"]) for r in result
])

@sonite
Copy link
Contributor Author

sonite commented Mar 29, 2024

You've really excelled here. Apologies for my limited coding skills. Could the issue possibly be related to the number of entities? I had around 64 units, but these units were somewhat artificial or of inferior quality. Several years ago, my temperature sensor inexplicably duplicated, and I'm unsure why. Interestingly, I noticed a duplicate of one of my rooms in the web interface but not in the app. I didn't pay much attention to it as everything seemed to be functioning fine. I've been managing this setup for years, and it was only yesterday that I realized, "Hey, I need to upgrade to a home automation system," and suddenly time caught up with me. By the way... it appears that timing isn't the only crux of the matter. See... despite removing numerous units, the problem persists. I'm confident that if my unit were clean, it would progress.

POLL_INTERVAL = 30

POLL_TIMEOUT = 240

CALL_TIMEOUT = 60

DOne

removed:

        if FORCE_NODE_ENUM or self.legacy:
           return await asyncio.gather(*[
               self.fetch_node(r["id"]) for r in result
           ])

Done

I will soone add results

@sonite

This comment was marked as resolved.

@andersevenrud
Copy link
Owner

I created a branch with some changes to reflect what I wrote in my previous comment, but hopefully without crashing (i.e. Bridge X Coordinator data: 'lastEvents' error) : #35 .

Apologies for my limited coding skills

No worries. I probably should apologise for assuming that anyone creating an issue here has coding experience... HA is one of the places that kind of blurs the lines when it comes to experience 😅

@andersevenrud

This comment was marked as outdated.

@andersevenrud
Copy link
Owner

andersevenrud commented Mar 29, 2024

Could the issue possibly be related to the number of entities?

You've hit the nail on the head here. This is the bottleneck of the legacy bridge. To get all the current/previous values every single node has to be polled (/v1/nodes/:id) -- while on the X it's all in /v1/nodes data.

There is a websocket running on the bridge that pushes all latest values as they are updates, but the rate on this data is set on the node (device). Which means in some cases it can be hours between new values. A good example is one of my temperature sensors that only updates with a threshold of 1 degree C. So on a hot summer day it basically stays the same until the sun goes down.

@andersevenrud

This comment was marked as outdated.

@sonite

This comment was marked as resolved.

@andersevenrud

This comment was marked as outdated.

@sonite

This comment was marked as resolved.

@andersevenrud

This comment was marked as outdated.

@sonite

This comment was marked as outdated.

@andersevenrud
Copy link
Owner

Thanks!

Okay. Since it's getting a bit late here I think I just have to put this down and get back to you tomorrow.

I'll have a proper development environment to simulate all of this so you don't have to be a guinea pig.

@sonite
Copy link
Contributor Author

sonite commented Mar 29, 2024

No worries. Late here as well! You are doing great!

@sonite
Copy link
Contributor Author

sonite commented Mar 29, 2024

This outcome isn't quite a success. However, I've eliminated all temporary and fake sensors, as well as some scheduled tasks. After reverting to your original code, Nexa now detects 8 devices and 9 entities. There seemed to be some obstacle, potentially related to sensor dependencies rather than legacy device, but I can't confirm for sure. Timing if you have a lot of sensors/entities to run through... sure. But I'm almost postive about different sensor tables.

Log
2024-03-30 00:07:49.909 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nordpool which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-30 00:07:49.914 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nexa_bridge_x which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-30 00:07:49.918 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-03-30 00:08:35.421 WARNING (MainThread) [homeassistant.const] ELECTRIC_POTENTIAL_VOLT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:35.437 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:35.453 WARNING (MainThread) [homeassistant.const] ELECTRIC_CURRENT_AMPERE was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:35.469 WARNING (MainThread) [homeassistant.const] ENERGY_KILO_WATT_HOUR was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfEnergy.KILO_WATT_HOUR instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:35.484 WARNING (MainThread) [homeassistant.const] POWER_KILO_WATT was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.KILO_WATT instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:35.501 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from nexa_bridge_x, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:08:36.897 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-30 00:08:38.137 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2024-03-30 00:08:38.568 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2024-03-30 00:08:38.569 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2024-03-30 00:08:43.083 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-03-30 00:09:44.835 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:09:45.110 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:09:45.112 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:09:45.116 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:09:45.118 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:09:45.376 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:09:45.514 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:09:45.520 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:09:45.523 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:09:45.526 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:09:45.529 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:09:45.532 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: null
2024-03-30 00:09:45.535 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: null
2024-03-30 00:09:45.539 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: null
2024-03-30 00:09:45.542 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: null
2024-03-30 00:09:45.548 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: null
2024-03-30 00:09:45.553 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:09:45.558 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: null
2024-03-30 00:09:45.562 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: null
2024-03-30 00:09:45.570 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:09:45.575 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:09:45.580 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: null
2024-03-30 00:09:45.584 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: null
2024-03-30 00:09:45.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: null
2024-03-30 00:09:45.590 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: null
2024-03-30 00:09:45.593 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: null
2024-03-30 00:09:45.596 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: null
2024-03-30 00:09:45.599 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: null
2024-03-30 00:09:45.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: null
2024-03-30 00:09:45.606 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: null
2024-03-30 00:09:45.609 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:09:45.613 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:09:45.616 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:09:45.943 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: 200
2024-03-30 00:09:46.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:09:46.454 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: 200
2024-03-30 00:09:46.464 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: 200
2024-03-30 00:09:46.468 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: 200
2024-03-30 00:09:46.484 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:09:46.489 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: 200
2024-03-30 00:09:46.495 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:09:46.530 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: 200
2024-03-30 00:09:46.557 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: 200
2024-03-30 00:09:46.586 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:10:10.137 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 25.026 seconds (success: False)
2024-03-30 00:18:38.216 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:18:38.528 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:18:38.531 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:18:38.538 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:18:38.541 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:18:38.952 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:18:38.955 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:18:38.956 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:18:38.960 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:18:38.963 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:18:38.966 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:18:38.972 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:18:38.975 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:18:38.978 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:18:38.981 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:18:38.984 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:18:39.035 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:18:39.431 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:18:39.666 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-30 00:18:39.723 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-30 00:18:39.729 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:18:39.816 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:18:39.826 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-30 00:18:39.830 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:18:39.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:18:39.872 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:18:39.874 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 1.345 seconds (success: True)
2024-03-30 00:18:39.875 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-03-30 00:18:39.875 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.2:8887
2024-03-30 00:18:39.933 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-03-30 00:18:39.934 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-03-30 00:18:39.934 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-03-30 00:18:39.934 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-03-30 00:18:39.935 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-03-30 00:18:39.935 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-03-30 00:18:39.935 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Garagemottagare
2024-03-30 00:18:39.936 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-03-30 00:18:40.041 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-03-30 00:18:40.042 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.nexa_bridge_x.entities.NexaDimmerEntity'>) sets invalid supported color modes {<ColorMode.ONOFF: 'onoff'>, <ColorMode.BRIGHTNESS: 'brightness'>}, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/andersevenrud/ha-nexa-bridge-x/issues
2024-03-30 00:19:09.829 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:19:09.837 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:19:09.841 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:19:10.158 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:19:10.165 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:19:10.168 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:19:10.171 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:19:10.173 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:19:10.176 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:19:10.179 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:19:10.181 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:19:10.184 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:19:10.187 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:19:10.199 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:19:10.242 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:19:10.653 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:19:10.660 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:19:10.769 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:19:10.820 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-30 00:19:10.840 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-30 00:19:10.980 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:19:10.989 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:19:10.992 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:19:10.996 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-30 00:19:10.998 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 
2024-03-30 00:19:10.999 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 
2024-03-30 00:19:10.999 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 
2024-03-30 00:19:10.999 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 1.171 seconds (success: True)
2024-03-30 00:19:40.830 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:19:40.838 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:19:40.841 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:19:41.126 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:19:41.128 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:19:41.131 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:19:41.133 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:19:41.137 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:19:41.140 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:19:41.142 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:19:41.145 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:19:41.147 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:19:41.150 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:19:41.214 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:19:41.262 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:19:41.609 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:19:41.614 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:19:41.754 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:19:41.759 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:19:41.838 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-30 00:19:41.841 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:19:41.865 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:19:41.873 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-30 00:19:41.939 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-30 00:19:41.944 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 
2024-03-30 00:19:41.945 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 
2024-03-30 00:19:41.946 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 
2024-03-30 00:19:41.946 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 1.117 seconds (success: True)
2024-03-30 00:20:11.830 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:20:11.839 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:20:11.843 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:20:12.184 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:20:12.186 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:20:12.189 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:20:12.194 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:20:12.196 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:20:12.198 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:20:12.201 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:20:12.203 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:20:12.206 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:20:12.208 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:20:12.263 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:20:12.275 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:20:12.616 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:20:12.804 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-30 00:20:12.810 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-30 00:20:12.819 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:20:12.827 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:20:12.882 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:20:12.890 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:20:12.897 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:20:13.035 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-30 00:20:13.037 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 
2024-03-30 00:20:13.038 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 
2024-03-30 00:20:13.039 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 
2024-03-30 00:20:13.039 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 1.210 seconds (success: True)
2024-03-30 00:20:46.552 ERROR (Thread-7) [pychromecast.socket_client] [(192.168.1.4):8009] Error reading from socket.
2024-03-30 00:20:46.552 WARNING (Thread-7) [pychromecast.socket_client] [(192.168.1.4):8009] Error communicating with socket, resetting connection
2024-03-30 00:20:46.561 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:20:46.570 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:20:46.573 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:20:46.956 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:20:47.135 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:20:47.141 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:20:47.144 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:20:47.147 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:20:47.150 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:20:47.153 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:20:47.158 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:20:47.161 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:20:47.165 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:20:47.168 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:20:47.172 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:20:47.807 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: 200
2024-03-30 00:20:47.812 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:20:47.851 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:20:47.993 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-30 00:20:47.995 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:20:48.001 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-30 00:20:48.003 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:20:48.070 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-30 00:20:48.110 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: 200
2024-03-30 00:20:48.112 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 
2024-03-30 00:20:48.113 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 
2024-03-30 00:20:48.113 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 
2024-03-30 00:20:48.114 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 1.576 seconds (success: True)
2024-03-30 00:21:17.830 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-30 00:21:17.838 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-30 00:21:17.842 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-30 00:21:18.101 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-30 00:21:18.104 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-30 00:21:18.108 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-30 00:21:18.111 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-30 00:21:18.115 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-30 00:21:18.118 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-30 00:21:18.120 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-30 00:21:18.123 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-30 00:21:18.127 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-30 00:21:18.130 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-30 00:21:18.223 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-30 00:21:18.264 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-30 00:21:18.563 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: 200
2024-03-30 00:21:18.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-30 00:21:18.806 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-30 00:21:18.810 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-30 00:21:18.815 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200

@andersevenrud
Copy link
Owner

I've eliminated all temporary and fake sensors, as well as some scheduled tasks. After reverting to your original code, Nexa now detects 8 devices and 9 entities.

That's at least some good news.

There seemed to be some obstacle, potentially related to sensor dependencies rather than legacy device

I think there is an underlying issue with the legacy bridge API relating to repeated calls. Since you've removed nodes etc. there amount of calls goes down, which kinda confirms my suspicion -- well, at least a potential bottleneck. Might be more stuff going on here; like your actions could have freed up some resources. Pretty hard to get a concrete answer here since there are no way to grab debug logs from the bridge (without doing hardware hacking).

@andersevenrud
Copy link
Owner

I just set up a development environment and isolated my changes in https://github.com/andersevenrud/ha-nexa-bridge-x/pull/35/files

I got home way later than anticipated, so have not yet been able to test everything, but I did not get the errors you provided in the log dumps when running with these changes 🤔

I'm positve I updated the files

So this is a bit strange. I would recommend trying again, but grab the code yourself (from the PR link above). A little bit safer than me providing alternative links that gets outdated quickly, etc. You can press the three horizontal dots button on each file and do "View File" from the dropdown menu to get everything so you can copy/paste it.

@andersevenrud

This comment was marked as outdated.

@andersevenrud

This comment was marked as outdated.

@andersevenrud
Copy link
Owner

andersevenrud commented Apr 2, 2024

After some more thought I implemented another behaviour for legacy bridge.

The value polling is now sequential and only happens upon initialisation (or when the integration is set up). This process comes with it's own timeout as well so that the first poll has a much longer timeout than the subsequent ones.

I've also updated the default timer values:

POLL_INTERVAL = 60
POLL_TIMEOUT = 60
CALL_TIMEOUT = 30


This combination most certainly will eliminate any stress, and therefore hopefully get away from the bottlenecks of the bridge.

The only downside is that if the websocket connection for some reason gets disconnected for long periods of time, things could get out of sync in HA... However, the chances of this should be extremely small (unless I have made a big oof in the code somewhere for reconnections, etc).

Also, since subsequent value polls are no longer performed there is a potential edge-case here where nodes that fails discovery won't get any initial value. This will be logged as an error though, so keep an eye out.


The PR has been updated with this.

there is a potential edge-case

I kinda have an idea on how to work around this as well by keeping track of failed nodes, but hopefully it won't come to this because introducing even more states is something I wanna avoid.


Edit: We can also experiment with enabling re-polling as usual if my changes seems to work without errors in your logs too. If the bottleneck is gone then there's no need for any of this custom stuff 🙏

@sonite
Copy link
Contributor Author

sonite commented May 2, 2024

I've completed a fresh installation of Home Assistant on a newly purchased Raspberry Pi 5. Following the provided instructions, I installed Nexa Bridge v1.5.1. However, the integration stopped, as usual, when attempting to identify nodes. I had to follow the instructions above and comment out the suggested code: So the issue persists. :/

@andersevenrud
Copy link
Owner

That's quite wild... I also just completed a fresh install on a Raspi 5 I just got.

A same that your still having these issues. The latest release of this integration does not actually contain any of the stuff I've tried to make your legacy bridge work.

If you could try applying the changes in the following PR and give that a go: #35 .

I'm kinda contemplating souring one of these legacy bridges (at least if there's one for cheap) so you don't have to spend time messing around with manual edits and potentially waste time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.6.x Non-X Bridge bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants