Closed sonite closed 6 months ago
Hi.
You're probably correct about the timeout. You could try modifying the configurations:
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:
Hm... can it have with credentials to do? GET http://192.168.1.2/v1/nodes/ I've tired Postman with no credentials and basic auth, both with the same repsonse:
{
"code": 401,
"description": "The request requires user authentication",
"homeRef": "/",
"reasonPhrase": "Unauthorized",
"uri": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2"
}
When I try with Digest Auth i get:
{
"code": 404,
"description": "The server has not found anything matching the request URI",
"homeRef": "/",
"reasonPhrase": "Not Found",
"uri": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5"
}
And now with: GET http://192.168.1.2/v1/nodes/1089
{
"id": 1089,
"type": "NexaDimmer",
"hideInApp": false,
"ignoreInRoomAction": false,
"broken": false,
"locked": false,
"name": "2Lampor",
"roomId": 3,
"groupNode": 0,
"prio": 0,
"favorite": false,
"capabilities": [
"switchBinary",
"switchLevel"
],
"tags": [],
"lastEvents": {
"switchBinary": {
"value": false,
"sourceNode": 1089,
"fromWS": false,
"time": "2024-03-29T15:28:04+0100",
"name": "switchBinary"
},
"switchLevel": {
"value": 0.27,
"isInt": false,
"sourceNode": 1089,
"fromWS": false,
"time": "2024-03-29T15:28:04+0100",
"name": "switchLevel"
},
"methodCall": {
"cap": "switchBinary",
"value": false,
"targetNode": 1089,
"targetRoomId": 0,
"method": "setValue",
"sourceNode": 1089,
"fromWS": false,
"time": "2024-03-29T15:28:04+0100",
"name": "methodCall"
}
}
}
Test results 1/1 Pass: Status code is 200
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.
Yes, you where right. removing the ending slash produced expected output!
POLL_INTERVAL = 60
POLL_TIMEOUT = 60
CALL_TIMEOUT = 70
RECONNECT_SLEEP = 10
2024-03-29 17:39:59.888 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: nexa_bridge_x
2024-03-29 17:44:09.956 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 17:44:10.234 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 17:44:10.236 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 17:44:10.242 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 17:44:10.244 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 17:44:10.712 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 17:44:10.903 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 17:44:11.087 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 17:44:11.094 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: null
2024-03-29 17:44:11.098 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: null
2024-03-29 17:44:11.100 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-29 17:44:11.103 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: null
2024-03-29 17:44:11.108 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1008: null
2024-03-29 17:44:11.111 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1009: null
2024-03-29 17:44:11.113 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: null
2024-03-29 17:44:11.119 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-29 17:44:11.121 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-29 17:44:11.127 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: null
2024-03-29 17:44:11.131 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: null
2024-03-29 17:44:11.134 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1015: null
2024-03-29 17:44:11.139 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1016: null
2024-03-29 17:44:11.144 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1017: null
2024-03-29 17:44:11.148 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1018: null
2024-03-29 17:44:11.151 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1019: null
2024-03-29 17:44:11.155 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1021: null
2024-03-29 17:44:11.158 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1022: null
2024-03-29 17:44:11.163 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1023: null
2024-03-29 17:44:11.167 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1024: null
2024-03-29 17:44:11.170 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1025: null
2024-03-29 17:44:11.172 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1026: null
2024-03-29 17:44:11.175 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1027: null
2024-03-29 17:44:11.178 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1028: null
2024-03-29 17:44:11.181 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1029: null
2024-03-29 17:44:11.184 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: null
2024-03-29 17:44:11.188 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1031: null
2024-03-29 17:44:11.191 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1032: null
2024-03-29 17:44:11.194 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: null
2024-03-29 17:44:11.196 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1034: null
2024-03-29 17:44:11.199 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1035: null
2024-03-29 17:44:11.203 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1036: null
2024-03-29 17:44:11.209 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1037: null
2024-03-29 17:44:11.212 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: null
2024-03-29 17:44:11.215 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1039: null
2024-03-29 17:44:11.220 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1040: null
2024-03-29 17:44:11.223 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: null
2024-03-29 17:44:11.226 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1042: null
2024-03-29 17:44:11.229 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: null
2024-03-29 17:44:11.236 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: null
2024-03-29 17:44:11.241 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-29 17:44:11.244 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1049: null
2024-03-29 17:44:11.247 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1050: null
2024-03-29 17:44:11.251 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: null
2024-03-29 17:44:11.256 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: null
2024-03-29 17:44:11.259 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: null
2024-03-29 17:44:11.263 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-29 17:44:11.266 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1055: null
2024-03-29 17:44:11.269 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1056: null
2024-03-29 17:44:11.272 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-29 17:44:11.277 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: null
2024-03-29 17:44:11.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1059: null
2024-03-29 17:44:11.283 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: null
2024-03-29 17:44:11.286 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: null
2024-03-29 17:44:11.289 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: null
2024-03-29 17:44:11.293 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: null
2024-03-29 17:44:11.296 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1064: null
2024-03-29 17:44:11.300 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: null
2024-03-29 17:44:11.303 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: null
2024-03-29 17:44:11.306 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: null
2024-03-29 17:44:11.312 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: null
2024-03-29 17:44:11.316 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: null
2024-03-29 17:44:11.320 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: null
2024-03-29 17:44:11.324 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: null
2024-03-29 17:44:11.327 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-29 17:44:11.332 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-29 17:44:11.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: null
2024-03-29 17:44:11.339 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: null
2024-03-29 17:44:11.342 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-29 17:44:11.891 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: 200
2024-03-29 17:44:12.257 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: 200
2024-03-29 17:44:12.389 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: 200
2024-03-29 17:44:12.459 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: 200
2024-03-29 17:44:12.479 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1016: 200
2024-03-29 17:44:12.547 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: 200
2024-03-29 17:44:12.553 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1035: 200
2024-03-29 17:44:12.816 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1026: 200
2024-03-29 17:44:12.910 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1064: 200
2024-03-29 17:44:12.982 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: 200
2024-03-29 17:44:13.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1027: 200
2024-03-29 17:44:13.124 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1034: 200
2024-03-29 17:44:13.156 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: 200
2024-03-29 17:44:13.306 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: 200
2024-03-29 17:44:13.413 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1017: 200
2024-03-29 17:44:13.456 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1042: 200
2024-03-29 17:44:13.464 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1032: 200
2024-03-29 17:44:13.503 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: 200
2024-03-29 17:44:13.538 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: 200
2024-03-29 17:44:13.551 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: 200
2024-03-29 17:44:13.642 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: 200
2024-03-29 17:44:13.651 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: 200
2024-03-29 17:44:13.723 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1055: 200
2024-03-29 17:44:13.803 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1049: 200
2024-03-29 17:44:13.813 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1040: 200
2024-03-29 17:44:13.875 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: 200
2024-03-29 17:44:13.984 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: 200
2024-03-29 17:44:14.099 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1059: 200
2024-03-29 17:44:14.106 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: 200
2024-03-29 17:44:14.135 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: 200
2024-03-29 17:44:14.166 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: 200
2024-03-29 17:44:14.220 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: 200
2024-03-29 17:44:14.276 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: 200
2024-03-29 17:44:14.301 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1039: 200
2024-03-29 17:44:14.340 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: 200
2024-03-29 17:44:14.428 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: 200
2024-03-29 17:44:14.493 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: 200
2024-03-29 17:44:14.544 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1018: 200
2024-03-29 17:44:14.553 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: 200
2024-03-29 17:44:14.638 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-29 17:44:14.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: 200
2024-03-29 17:44:14.795 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: 200
2024-03-29 17:44:14.808 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-29 17:44:14.819 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: 200
2024-03-29 17:44:14.832 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: 200
2024-03-29 17:45:10.272 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 60.037 seconds (success: False)
Later with this (Could I have an entity/automation/Schedule that is not captured correctly):
POLL_INTERVAL = 30
POLL_TIMEOUT = 120
CALL_TIMEOUT = 30
RECONNECT_SLEEP = 5
2024-03-29 17:51:48.360 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 17:51:48.381 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 17:51:48.401 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 17:51:48.418 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 17:51:48.437 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 17:51:48.456 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 17:51:57.632 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-29 17:51:57.633 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds.
2024-03-29 17:51:57.633 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2024-03-29 17:51:57.634 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2024-03-29 17:52:04.953 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 17:52:37.688 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 654, in _async_update_data
results = await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 337, in fetch_nodes
return await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 345, in fetch_node
return await self.request("get", f"nodes/{node}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 295, in request
response = await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2024-03-29 17:53:14.748 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 654, in _async_update_data
results = await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 337, in fetch_nodes
return await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 345, in fetch_node
return await self.request("get", f"nodes/{node}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 295, in request
response = await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2024-03-29 17:53:56.212 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 654, in _async_update_data
results = await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 337, in fetch_nodes
return await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 345, in fetch_node
return await self.request("get", f"nodes/{node}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 295, in request
response = await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2024-03-29 17:54:47.946 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 654, in _async_update_data
results = await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 337, in fetch_nodes
return await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 345, in fetch_node
return await self.request("get", f"nodes/{node}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 295, in request
response = await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2024-03-29 17:54:54.776 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 17:54:55.031 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 17:54:55.033 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 17:54:55.037 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 17:54:55.041 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 17:54:55.433 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 17:54:55.438 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 17:54:55.441 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 17:54:55.448 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: null
2024-03-29 17:54:55.451 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: null
2024-03-29 17:54:55.454 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1003: null
2024-03-29 17:54:55.458 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: null
2024-03-29 17:54:55.461 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1008: null
2024-03-29 17:54:55.466 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1009: null
2024-03-29 17:54:55.469 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: null
2024-03-29 17:54:55.474 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1: null
2024-03-29 17:54:55.478 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1011: null
2024-03-29 17:54:55.481 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1013: null
2024-03-29 17:54:55.484 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: null
2024-03-29 17:54:55.487 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1015: null
2024-03-29 17:54:55.490 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1016: null
2024-03-29 17:54:55.493 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1017: null
2024-03-29 17:54:55.496 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1018: null
2024-03-29 17:54:55.498 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1019: null
2024-03-29 17:54:55.504 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1021: null
2024-03-29 17:54:55.506 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1022: null
2024-03-29 17:54:55.510 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1023: null
2024-03-29 17:54:55.513 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1024: null
2024-03-29 17:54:55.517 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1025: null
2024-03-29 17:54:55.520 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1026: null
2024-03-29 17:54:55.523 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1027: null
2024-03-29 17:54:55.528 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1028: null
2024-03-29 17:54:55.531 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1029: null
2024-03-29 17:54:55.535 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1030: null
2024-03-29 17:54:55.539 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1031: null
2024-03-29 17:54:55.542 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1032: null
2024-03-29 17:54:55.545 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: null
2024-03-29 17:54:55.548 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1034: null
2024-03-29 17:54:55.551 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1035: null
2024-03-29 17:54:55.554 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1036: null
2024-03-29 17:54:55.557 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1037: null
2024-03-29 17:54:55.560 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: null
2024-03-29 17:54:55.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1039: null
2024-03-29 17:54:55.569 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1040: null
2024-03-29 17:54:55.572 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: null
2024-03-29 17:54:55.575 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1042: null
2024-03-29 17:54:55.578 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: null
2024-03-29 17:54:55.583 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: null
2024-03-29 17:54:55.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1048: null
2024-03-29 17:54:55.591 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1049: null
2024-03-29 17:54:55.615 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1050: null
2024-03-29 17:54:55.618 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: null
2024-03-29 17:54:55.620 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1052: null
2024-03-29 17:54:55.623 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1053: null
2024-03-29 17:54:55.626 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1054: null
2024-03-29 17:54:55.629 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1055: null
2024-03-29 17:54:55.632 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1056: null
2024-03-29 17:54:55.634 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: null
2024-03-29 17:54:55.637 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: null
2024-03-29 17:54:55.640 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1059: null
2024-03-29 17:54:55.643 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: null
2024-03-29 17:54:55.646 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1061: null
2024-03-29 17:54:55.652 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: null
2024-03-29 17:54:55.656 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1063: null
2024-03-29 17:54:55.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1064: null
2024-03-29 17:54:55.663 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1065: null
2024-03-29 17:54:55.667 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1083: null
2024-03-29 17:54:55.670 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1084: null
2024-03-29 17:54:55.673 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: null
2024-03-29 17:54:55.676 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: null
2024-03-29 17:54:55.680 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1087: null
2024-03-29 17:54:55.684 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: null
2024-03-29 17:54:55.688 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: null
2024-03-29 17:54:55.691 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1081: null
2024-03-29 17:54:55.694 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: null
2024-03-29 17:54:55.698 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: null
2024-03-29 17:54:55.701 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: null
2024-03-29 17:54:56.177 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1002: 200
2024-03-29 17:54:58.013 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1009: 200
2024-03-29 17:54:58.032 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1008: 200
2024-03-29 17:54:58.124 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1007: 200
2024-03-29 17:54:58.187 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1022: 200
2024-03-29 17:54:58.203 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1016: 200
2024-03-29 17:54:58.238 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1024: 200
2024-03-29 17:54:58.322 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1010: 200
2024-03-29 17:54:58.339 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1050: 200
2024-03-29 17:54:58.370 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1026: 200
2024-03-29 17:54:58.376 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1036: 200
2024-03-29 17:54:58.394 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1014: 200
2024-03-29 17:54:58.400 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1043: 200
2024-03-29 17:54:58.407 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1025: 200
2024-03-29 17:54:58.413 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1033: 200
2024-03-29 17:54:58.443 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1038: 200
2024-03-29 17:54:58.557 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1057: 200
2024-03-29 17:54:58.565 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1058: 200
2024-03-29 17:54:58.575 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1060: 200
2024-03-29 17:54:58.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1051: 200
2024-03-29 17:54:58.902 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1023: 200
2024-03-29 17:54:58.913 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1000: 200
2024-03-29 17:54:58.959 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1041: 200
2024-03-29 17:54:59.011 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1056: 200
2024-03-29 17:54:59.126 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1086: 200
2024-03-29 17:54:59.192 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1028: 200
2024-03-29 17:54:59.217 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1062: 200
2024-03-29 17:54:59.242 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1044: 200
2024-03-29 17:54:59.304 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1089: 200
2024-03-29 17:54:59.320 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1085: 200
2024-03-29 17:54:59.370 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1088: 200
2024-03-29 17:54:59.386 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1020: 200
2024-03-29 17:54:59.398 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1082: 200
2024-03-29 17:54:59.455 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes/1080: 200
2024-03-29 17:55:25.971 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions
yield
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 373, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 216, in handle_async_request
raise exc from None
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 196, in handle_async_request
response = await connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
return await self._connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 143, in handle_async_request
raise exc
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 113, in handle_async_request
) = await self._receive_response_headers(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 186, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_async/http11.py", line 224, in _receive_event
data = await self._network_stream.read(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadTimeout
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 654, in _async_update_data
results = await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 337, in fetch_nodes
return await asyncio.gather(*[
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 345, in fetch_node
return await self.request("get", f"nodes/{node}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 295, in request
response = await self._client.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1574, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1661, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1689, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1726, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1763, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 372, in handle_async_request
with map_httpcore_exceptions():
File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadTimeout
2024-03-29 17:55:26.009 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 30.977 seconds (success: False)
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.
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.
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:
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
Next will be CALL_TIMOUT = 0
2024-03-29 22:53:17.355 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-29 22:53:17.360 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-29 22:53:17.368 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-29 22:53:49.117 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-29 22:53:49.117 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds.
2024-03-29 22:53:49.118 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2024-03-29 22:53:49.118 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2024-03-29 22:53:49.119 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2024-03-29 22:53:49.119 WARNING (MainThread) [homeassistant.setup] Setup of schedule is taking over 10 seconds.
2024-03-29 22:53:49.859 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2024-03-29 22:53:57.808 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2024-03-29 22:54:00.389 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nordpool is taking over 10 seconds.
2024-03-29 22:54:00.829 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform energy is taking over 10 seconds.
2024-03-29 22:54:01.023 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547337457216] from 192.168.1.187 (Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 16.7.0)): Disconnected: Did not receive auth message within 10 seconds
2024-03-29 22:54:04.895 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 22:55:06.013 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 22:55:06.030 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 22:55:06.049 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 22:55:06.069 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 22:55:06.086 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 22:55:06.104 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 22:55:07.239 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:13.131 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:17.697 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:24.477 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:27.291 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 22:55:27.490 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 22:55:27.493 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 22:55:27.498 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 22:55:27.501 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 22:55:27.836 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 22:55:27.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 22:55:27.926 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 22:55:27.928 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:27.941 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.450 seconds (success: False)
2024-03-29 22:55:33.435 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 22:55:33.663 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 22:55:33.670 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 22:55:33.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 22:55:33.680 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 22:55:33.986 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 22:55:34.027 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 22:55:34.071 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 22:55:34.074 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 665, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 478, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 74, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 22:55:34.088 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.424 seconds (success: False)
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) : https://github.com/andersevenrud/ha-nexa-bridge-x/pull/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 😅
Oh, and the code I uploaded there requires no editing on your end. You can just copy-paste from:
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.
My apologies. I made stupid typo in my last commit.
Updated files:
I don't currently even use the X bridge and do not have a proper development environment set up on my machine because I'm away for the easter, so I'm kind of shooting in the dark a little bit here 😅
Your new code exhibits:
2024-03-29 23:14:17.490 WARNING (SyncWorker_2) [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-29 23:14:17.495 WARNING (SyncWorker_2) [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-29 23:14:17.501 WARNING (SyncWorker_2) [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-29 23:14:51.180 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-29 23:14:59.510 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 23:15:01.615 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nordpool is taking over 10 seconds.
2024-03-29 23:15:46.358 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 23:15:46.380 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 23:15:46.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 23:15:46.423 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 23:15:46.440 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 23:15:46.456 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 23:15:48.938 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 89, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 23:15:56.129 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 89, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 23:16:01.657 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 89, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 23:16:07.476 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 89, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 23:16:16.266 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:16:16.513 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:16:16.515 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:16:16.518 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 23:16:16.524 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 23:16:17.021 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 23:16:17.097 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:16:17.272 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 23:16:17.275 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: 'lastEvents'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 89, in values_from_events
for key, data in node["lastEvents"].items():
~~~~^^^^^^^^^^^^^^
KeyError: 'lastEvents'
2024-03-29 23:16:17.290 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.776 seconds (success: False)
Your new code exhibits
Sorry about that. Should be fixed with https://github.com/andersevenrud/ha-nexa-bridge-x/issues/34#issuecomment-2027785535
My apologies. I made stupid typo in my last commit.
Updated files:
* https://raw.githubusercontent.com/andersevenrud/ha-nexa-bridge-x/356f75fb6b5c9c191f5b79673ef9a8fabe54bc77/custom_components/nexa_bridge_x/const.py * https://raw.githubusercontent.com/andersevenrud/ha-nexa-bridge-x/356f75fb6b5c9c191f5b79673ef9a8fabe54bc77/custom_components/nexa_bridge_x/nexa.py
I don't currently even use the X bridge and do not have a proper development environment set up on my machine because I'm away for the easter, so I'm kind of shooting in the dark a little bit here 😅
Wow ... you should take easter and not reply :))
2024-03-29 23:35:00.245 WARNING (SyncWorker_3) [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-29 23:35:00.250 WARNING (SyncWorker_3) [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-29 23:35:00.254 WARNING (SyncWorker_3) [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-29 23:35:35.322 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 23:35:35.336 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 23:35:35.351 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 23:35:35.365 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 23:35:35.378 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 23:35:35.392 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 23:35:36.962 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-29 23:35:36.963 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds.
2024-03-29 23:35:47.875 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nordpool is taking over 10 seconds.
2024-03-29 23:35:48.985 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 23:35:54.987 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:36:01.630 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:36:15.508 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:36:15.510 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:36:15.519 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 23:36:15.529 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 23:36:15.993 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 23:36:16.035 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:36:16.041 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 23:36:16.045 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:36:16.104 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.595 seconds (success: False)
2024-03-29 23:36:37.284 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:36:45.902 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:36:46.174 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:36:46.177 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:36:46.181 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 23:36:46.185 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 23:36:46.646 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 23:36:46.692 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:36:46.697 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 23:36:46.699 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:36:46.740 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.565 seconds (success: False)
NameError: name 'datetime' is not defined
D'oh! I really should just wait until I get home to an actual computer and not an Android phone to do this...
Updated code:
you should take easter and not reply :))
Probably. But I really want this work :D
NameError: name 'datetime' is not defined
D'oh! I really should just wait until I get home to an actual computer and not an Android phone to do this...
Updated code:
* https://raw.githubusercontent.com/andersevenrud/ha-nexa-bridge-x/218aba24093cdf38d9396b1b35e492d34a157bf3/custom_components/nexa_bridge_x/nexa.py
you should take easter and not reply :))
Probably. But I really want this work :D
I'm positve I updated the files:
2024-03-29 23:51:40.925 WARNING (SyncWorker_2) [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-29 23:51:40.930 WARNING (SyncWorker_2) [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-29 23:51:40.934 WARNING (SyncWorker_2) [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-29 23:52:23.905 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 23:52:23.919 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 23:52:23.933 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 23:52:23.947 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 23:52:23.960 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 23:52:23.974 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 23:52:33.032 WARNING (MainThread) [homeassistant.setup] Setup of ffmpeg is taking over 10 seconds.
2024-03-29 23:52:33.033 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds.
2024-03-29 23:52:33.033 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2024-03-29 23:52:33.034 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2024-03-29 23:52:34.659 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2024-03-29 23:52:45.676 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 23:52:45.897 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nordpool is taking over 10 seconds.
2024-03-29 23:52:47.373 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:53:03.817 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:53:14.082 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:53:14.452 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:53:14.457 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:53:14.461 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 23:53:14.465 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 23:53:14.745 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 23:53:14.852 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:53:14.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 23:53:14.944 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:53:14.988 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.535 seconds (success: False)
2024-03-29 23:53:36.235 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:54:17.355 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:55:38.555 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:55:51.039 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:56:04.247 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:56:05.441 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:56:05.443 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: null
2024-03-29 23:56:05.449 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: null
2024-03-29 23:56:05.451 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: null
2024-03-29 23:56:05.759 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/energy: 200
2024-03-29 23:56:05.850 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/nodes: 200
2024-03-29 23:56:05.856 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.2/v1/info: 200
2024-03-29 23:56:05.858 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data: name 'datetime' is not defined
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 689, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 502, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
now_timestamp()
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in now_timestamp
now = datetime.now()
^^^^^^^^
NameError: name 'datetime' is not defined. Did you mean: 'dateutil'? Or did you forget to import 'datetime'
2024-03-29 23:56:05.900 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.458 seconds (success: False)
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.
No worries. Late here as well! You are doing great!
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.
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).
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.
I've updated my PR: https://github.com/andersevenrud/ha-nexa-bridge-x/pull/35/files
On legacy it now polls sequentially instead of concurrently. Maybe that brings us somewhere different 🤞
If this doesn't do the trick, the I'll just look at the original solution I started with...
If this doesn't do the trick, the I'll just look at the original solution I started with...
I went ahead and added this to the PR as well. If Nevermind -- i removed this.NO_NODE_ENUM
is set to True
the polling is disabled and it falls back to websockets entirely for values... I have no idea how this will behave though (and quite frankly feel like this is a bad solution), so hoping the sequential polling gives better results 😅
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:
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 🙏
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. :/
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: https://github.com/andersevenrud/ha-nexa-bridge-x/pull/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.
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 | falseFor 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 | {}