Closed sonite closed 6 months ago
This just suddenly started happening without any changes ?
Good Question. After uninstalling and reinstalling the installation from scratch, the error continues to persist. However, this action seems to temporarily resolve it and clears the error log. Unfortunately, this fix is not permanent, as the main issue presist. Despite the seemingly clean log file and the appearance of my sensors being online, their controllability is only maintained for a brief period, typically around a minute or so.
def is_newer_date(current: str, new: str) -> bool:
"""Check if given timestamp is newer to the current"""
try:
# Regular expression for basic ISO 8601 validation
iso8601_regex = re.compile(
r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$'
)
# Validate the format of the date strings
if not iso8601_regex.match(current):
raise ValueError(f"Current date string is not a valid ISO 8601 format: {current}")
if not iso8601_regex.match(new):
raise ValueError(f"New date string is not a valid ISO 8601 format: {new}")
current_time = parser.isoparse(current)
new_time = parser.isoparse(new)
return new_time > current_time
except ValueError as e:
# Log the error (print in this case, but consider using logging)
_LOGGER.debug(f"Error parsing dates: {e}")
#print(f"Error parsing dates: {e}")
return False
I would love to see why an exception was raised, i.e. the value that caused it.
Unfortunately, this fix is not permanent, as the main issue presist
The main issue as in you still get exceptions in the same place after implementing your change ?
eventually I found the time to enable debugging
2024-05-21 16:20:36.255 WARNING (SyncWorker_5) [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-05-21 16:20:36.256 WARNING (SyncWorker_5) [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-05-21 16:20:36.256 WARNING (SyncWorker_5) [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-05-21 16:20:38.583 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-05-21 16:20:41.277 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-05-21 16:22:24.503 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Destroying websocket api instance
2024-05-21 16:22:24.504 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-21 16:22:24.509 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 16:22:24.790 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 16:22:24.790 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 16:22:24.791 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 16:22:24.792 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 16:22:24.994 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 16:22:25.057 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 16:22:25.058 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null
2024-05-21 16:22:25.150 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 16:22:25.214 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 200
2024-05-21 16:22:25.214 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null
2024-05-21 16:22:25.546 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 200
2024-05-21 16:22:25.546 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null
2024-05-21 16:22:25.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 200
2024-05-21 16:22:25.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null
2024-05-21 16:22:25.822 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 200
2024-05-21 16:22:25.822 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null
2024-05-21 16:22:25.958 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 200
2024-05-21 16:22:25.958 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null
2024-05-21 16:22:26.102 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 200
2024-05-21 16:22:26.102 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null
2024-05-21 16:22:26.246 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 200
2024-05-21 16:22:26.246 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null
2024-05-21 16:22:26.390 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 200
2024-05-21 16:22:26.390 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null
2024-05-21 16:22:26.546 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 200
2024-05-21 16:22:26.546 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null
2024-05-21 16:22:26.842 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 200
2024-05-21 16:22:26.842 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.052 seconds (success: True)
2024-05-21 16:22:26.843 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-21 16:22:26.843 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:8887
2024-05-21 16:22:26.843 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-05-21 16:22:26.843 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-05-21 16:22:26.844 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ
2024-05-21 16:22:26.847 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-05-21 16:22:26.849 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ
2024-05-21 17:34:44.435 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Pause on PRI/Upgrade:
b''
^
2024-05-21 17:47:26.437 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:
b'\x16\x03\x01'
^
2024-05-21 17:47:26.952 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message:
Invalid method encountered:
b'\x16\x03\x01'
^
2024-05-21 18:55:16.267 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:55:16.406 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:55:16.406 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:55:16.407 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 18:55:16.408 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 18:55:16.598 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 18:55:16.610 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 18:55:16.610 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null
2024-05-21 18:55:16.670 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:55:16.758 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 200
2024-05-21 18:55:16.758 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null
2024-05-21 18:55:17.058 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 200
2024-05-21 18:55:17.058 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null
2024-05-21 18:55:17.198 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 200
2024-05-21 18:55:17.198 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null
2024-05-21 18:55:17.338 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 200
2024-05-21 18:55:17.338 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null
2024-05-21 18:55:17.470 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 200
2024-05-21 18:55:17.470 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null
2024-05-21 18:55:17.626 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 200
2024-05-21 18:55:17.626 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null
2024-05-21 18:55:17.818 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 200
2024-05-21 18:55:17.818 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null
2024-05-21 18:55:18.034 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 200
2024-05-21 18:55:18.035 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null
2024-05-21 18:55:18.174 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 200
2024-05-21 18:55:18.174 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null
2024-05-21 18:55:18.466 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 200
2024-05-21 18:55:18.466 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.060 seconds (success: True)
2024-05-21 18:55:18.466 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-21 18:55:18.467 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:8887
2024-05-21 18:55:18.467 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-05-21 18:55:18.467 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-05-21 18:55:18.467 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-05-21 18:55:18.467 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-05-21 18:55:18.468 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-05-21 18:55:18.468 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-05-21 18:55:18.468 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare
2024-05-21 18:55:18.468 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-05-21 18:55:18.468 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ
2024-05-21 18:55:18.471 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-05-21 18:55:18.473 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ
2024-05-21 18:55:28.152 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:28.326 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:28.596 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-21T18:55:28+0200', 'name': 'switchBinary'}
2024-05-21 18:55:28.597 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:55:28.597 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from value
2024-05-21 18:55:29.691 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:29.826 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:31.366 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}
2024-05-21 18:55:31.522 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:31.692 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-21T18:55:31+0200', 'name': 'switchBinary'}
2024-05-21 18:55:31.692 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:55:31.692 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from value
2024-05-21 18:55:32.504 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:32.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:32.904 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-21T18:55:32+0200', 'name': 'switchBinary'}
2024-05-21 18:55:32.905 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:55:32.905 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from value
2024-05-21 18:55:35.012 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:35.206 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:36.110 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}
2024-05-21 18:55:36.354 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:36.569 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-21T18:55:36+0200', 'name': 'switchBinary'}
2024-05-21 18:55:36.569 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:55:36.569 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from value
2024-05-21 18:55:37.514 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:37.662 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:55:37.874 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-21T18:55:37+0200', 'name': 'switchBinary'}
2024-05-21 18:55:37.874 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:55:37.874 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from value
2024-05-21 18:55:41.010 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 18:55:41.182 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:56:18.356 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:56:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 18:56:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 18:56:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 18:56:18.730 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 18:56:18.771 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.415 seconds (success: True)
2024-05-21 18:57:18.356 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:57:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 18:57:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 18:57:18.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 18:57:18.571 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 18:57:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 18:57:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.275 seconds (success: True)
2024-05-21 18:58:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:58:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 18:58:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 18:58:18.582 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 18:58:18.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.686 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 18:58:18.687 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.331 seconds (success: True)
2024-05-21 18:59:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 18:59:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 18:59:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 18:59:18.614 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 18:59:18.653 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 18:59:18.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 18:59:18.707 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.351 seconds (success: True)
2024-05-21 19:00:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 19:00:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 19:00:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 19:00:18.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 19:00:18.610 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 19:00:18.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 19:00:18.675 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.319 seconds (success: True)
2024-05-21 19:01:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 19:01:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 19:01:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 19:01:18.562 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 19:01:18.576 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.630 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 19:01:18.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.274 seconds (success: True)
2024-05-21 19:02:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 19:02:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 19:02:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 19:02:18.594 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 19:02:18.608 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 19:02:18.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 19:02:18.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 19:02:18.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 19:02:18.658 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 19:02:18.659 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.303 seconds (success: True)
2024-05-21 19:03:18.357 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-21 19:03:18.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-21 19:03:18.359 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-21 19:03:18.574 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-21 19:03:18.590 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-21 19:03:18.638 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-03-31T10:45:14+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:00+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:06+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T03:56:07+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T07:00:00+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-14T00:13:09+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T16:14:39+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-21T18:50:42+0200
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-21 19:03:18.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-08T08:04:59+0200
2024-05-21 19:03:18.640 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-21 19:03:18.640 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.283 seconds (success: True)
2024-05-21 19:03:38.678 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 19:03:39.130 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 19:03:45.309 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 19:03:45.462 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 19:03:50.004 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-21 19:03:50.330 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-21 18:56:18.770 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Error parsing dates: Current date string is not a valid ISO 8601 format: 2024-05-16T19:36:49+0200
Python's dateutil is able to parse this
>>> import dateutil.parser
>>> dateutil.parser.isoparse("2024-05-16T19:36:49+0200")
datetime.datetime(2024, 5, 16, 19, 36, 49, tzinfo=tzoffset(None, 7200))
I'm not sure your regular expression check is complete.
I wonder what these are about though. It's some kind of binary data. Are they coming from this integration ?
2024-05-21 17:34:44.435 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
Pause on PRI/Upgrade:
b''
^
I wonder what these are about though. It's some kind of binary data. Are they coming from this integration ?
2024-05-21 17:34:44.435 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 350, in data_received messages, upgraded, tail = self._request_parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadHttpMessage: 400, message: Pause on PRI/Upgrade: b'' ^
I never saw that until I copied/paste the above code to understand if the datetime had an error or not. I've only done the ordinary restart of the HA, not a complete reboot. I'll remove, reset, reboot, re-install just to be sure. Sorry (I'm not your regular expression check is complete.).
It's possible to catch that exception and print some debug info about the values:
def is_newer_date(current: str, new: str) -> bool:
"""Check if given timestamp is newer to the current"""
try:
current_time = dateutil.parser.isoparse(current)
new_time = dateutil.parser.isoparse(new)
return new_time > current_time
except ValueError as ve:
_LOGGER.debug(f'Failed to parse current:{current}, new:{new}')
return False
This will also prevent the crash, but it won't really do anything if the function does not return True
.
I wonder what these are about though. It's some kind of binary data. Are they coming from this integration ?
Seems like others have this error as well https://github.com/home-assistant/core/issues/103398, but does not run this integration....so probably unrelated 😅
I've studied the logs you provided (and it seems like you uncommented a debug log line which was nice) and it seems at least like events work as they should because your switch operations from HA does get sent and the Websocket confirms it.
The websocket also contains a valid timestamp for the event. So it must be something with the initial (later "current") timestamp stored from the initial poll that is somehow invalid 🤔
So it must be something with the initial (later "current") timestamp stored from the initial poll that is somehow invalid
I think I figured it out... an oversight on my end. Implementing a fix for it now.
Could you try the following PR ? https://github.com/andersevenrud/ha-nexa-bridge-x/pull/46
Sorry for being novice in programming, but it seems like how the variable "new" is set, produce the error
new_time = dateutil.parser.isoparse(new)
Why? I introduced this and my logg shows that last print that works is "parsing current_time timestap: {current_time}". We should see "parsing new timestap: {new_time}" in the log as well, but it breaks.
def is_newer_date(current: str, new: str) -> bool:
"""Check if given timestamp is newer to the current"""
if current == "0":
_LOGGER.debug(f"parsing if current null: {current}")
return True
current_time = dateutil.parser.isoparse(current)
_LOGGER.debug(f"parsing current: {current}")
_LOGGER.debug(f"parsing current_time timestap: {current_time}")
new_time = dateutil.parser.isoparse(new)
_LOGGER.debug(f"parsing new timestap: {new_time}")
_LOGGER.debug(f"parsing new_time timestap: {new}")
#The function returns True if new_time is later than current_time. Otherwise, it returns False.
return new_time > current_time
Produces:
2024-05-22 14:16:24.308 WARNING (SyncWorker_4) [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-05-22 14:16:24.309 WARNING (SyncWorker_4) [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-05-22 14:16:24.309 WARNING (SyncWorker_4) [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-05-22 14:16:26.653 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-05-22 14:16:29.255 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-05-22 14:17:11.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Destroying websocket api instance
2024-05-22 14:17:11.639 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-22 14:17:11.646 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 14:17:11.778 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 14:17:11.778 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 14:17:11.780 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 14:17:11.780 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 14:17:12.006 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 14:17:12.014 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 14:17:12.015 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null
2024-05-22 14:17:12.122 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 14:17:12.194 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 200
2024-05-22 14:17:12.194 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null
2024-05-22 14:17:12.526 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 200
2024-05-22 14:17:12.526 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null
2024-05-22 14:17:12.683 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 200
2024-05-22 14:17:12.683 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null
2024-05-22 14:17:12.822 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 200
2024-05-22 14:17:12.822 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null
2024-05-22 14:17:12.958 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 200
2024-05-22 14:17:12.958 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null
2024-05-22 14:17:13.094 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 200
2024-05-22 14:17:13.094 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null
2024-05-22 14:17:13.242 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 200
2024-05-22 14:17:13.243 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null
2024-05-22 14:17:13.378 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 200
2024-05-22 14:17:13.378 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null
2024-05-22 14:17:13.522 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 200
2024-05-22 14:17:13.522 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null
2024-05-22 14:17:13.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 200
2024-05-22 14:17:13.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.056 seconds (success: True)
2024-05-22 14:17:13.835 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-22 14:17:13.835 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:8887
2024-05-22 14:17:13.835 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-05-22 14:17:13.835 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-05-22 14:17:13.836 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ
2024-05-22 14:17:13.839 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-05-22 14:17:13.842 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ
2024-05-22 14:18:13.189 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 14:18:13.190 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 14:18:13.191 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 14:18:13.397 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 14:18:13.410 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 14:18:13.466 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 14:18:13.467 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] parsing current: 2024-05-16T19:36:49+0200
2024-05-22 14:18:13.467 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] parsing current_time timestap: 2024-05-16 19:36:49+02:00
2024-05-22 14:18:13.467 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/dateutil/parser/isoparser.py", line 208, in _parse_isodate
return self._parse_isodate_common(dt_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dateutil/parser/isoparser.py", line 217, in _parse_isodate_common
raise ValueError('ISO string too short')
ValueError: ISO string too short
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 698, in _async_update_data
self.update_nodes_from_data(data)
File "/config/custom_components/nexa_bridge_x/nexa.py", line 643, in update_nodes_from_data
current_node.set_values_from_node(node)
File "/config/custom_components/nexa_bridge_x/nexa.py", line 546, in set_values_from_node
if is_newer_date(current_time, new_time):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 69, in is_newer_date
new_time = dateutil.parser.isoparse(new)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dateutil/parser/isoparser.py", line 37, in func
return f(self, str_in, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dateutil/parser/isoparser.py", line 134, in isoparse
components, pos = self._parse_isodate(dt_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dateutil/parser/isoparser.py", line 210, in _parse_isodate
return self._parse_isodate_uncommon(dt_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dateutil/parser/isoparser.py", line 255, in _parse_isodate_uncommon
raise ValueError('ISO string too short')
ValueError: ISO string too short
2024-05-22 14:18:13.470 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.282 seconds (success: False)
2024-05-22 14:19:13.191 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 14:19:13.192 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 14:19:13.193 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 14:19:13.406 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 14:19:13.422 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 14:19:13.486 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 14:19:13.486 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] parsing current: 2024-05-16T19:36:49+0200
2024-05-22 14:19:13.486 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] parsing current_time timestap: 2024-05-16 19:36:49+02:00
2024-05-22 14:19:13.487 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
I introduced this and my logg shows that last print that works is "parsing current_time timestap: {current_time}". We should see "parsing new timestap: {new_time}" in the log as well, but it breaks
You need to catch the exception just like I did here:
https://github.com/andersevenrud/ha-nexa-bridge-x/issues/45#issuecomment-2123236815
This code will display both values when something goes wrong.
There is something unreliable with how " new time" is set and I'm trying to figure out what. New is defined as a string but seem to get an numeric value of 0 and then we get a whole bunch of error messages as seen above. This should not be a legacy device issue. I have added debug.loggers to the functions set_value and set_values_from_node since they are calling the function is_newer_date.
Strangely this works while posting this, but I don't trust it. I'll delete and reinstall the integration later to tonight to see if this works again
def is_newer_date(current: str, new: str) -> bool:
"""Check if given timestamp is newer to the current"""
if current == "0":
return True
current_time = dateutil.parser.isoparse(current)
#force new=0 to be initated with ISO value (wont handle numeric)
if new == "0":
new = current
new_time = dateutil.parser.isoparse(new)
#The function returns True if new_time is later than current_time. Otherwise, it returns False.
return new_time > current_time
2024-05-22 15:54:18.972 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 15:54:19.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 15:54:19.363 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 15:54:19.364 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 15:54:19.364 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 15:54:19.666 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 15:54:19.684 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 15:54:19.685 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null
2024-05-22 15:54:19.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 15:54:19.793 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 200
2024-05-22 15:54:19.793 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null
2024-05-22 15:54:20.114 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 200
2024-05-22 15:54:20.114 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null
2024-05-22 15:54:20.250 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 200
2024-05-22 15:54:20.250 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null
2024-05-22 15:54:20.436 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 200
2024-05-22 15:54:20.436 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null
2024-05-22 15:54:20.558 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 200
2024-05-22 15:54:20.558 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null
2024-05-22 15:54:20.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 200
2024-05-22 15:54:20.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null
2024-05-22 15:54:20.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 200
2024-05-22 15:54:20.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null
2024-05-22 15:54:21.031 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 200
2024-05-22 15:54:21.031 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null
2024-05-22 15:54:21.238 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 200
2024-05-22 15:54:21.238 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null
2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 200
2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.264 seconds (success: True)
2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:8887
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ
2024-05-22 15:54:21.641 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-05-22 15:54:21.642 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ
2024-05-22 15:54:21.676 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-05-22 15:55:21.334 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 15:55:21.336 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 15:55:21.337 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 15:55:21.524 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 15:55:21.530 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 15:55:21.586 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-16T19:36:49+0200
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-03-31T10:45:14+0200
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:00+0200
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:05+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:06+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T07:00:00+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-14T00:13:09+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:53:31+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:46:38+0200
2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T15:40:47+0200
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-08T08:04:59+0200
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.255 seconds (success: True)
2024-05-22 16:55:43.197 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-22 16:55:43.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:43+0200', 'name': 'switchBinary'}
2024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:42:40+0200
2024-05-22 16:55:43.567 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:43+0200
2024-05-22 16:55:43.567 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True
2024-05-22 16:55:45.833 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}
2024-05-22 16:55:46.734 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:46.919 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:46+0200', 'name': 'switchBinary'}
2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:43+0200
2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:46+0200
2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False
2024-05-22 16:55:49.323 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-22 16:55:49.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:49.937 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:49+0200', 'name': 'switchBinary'}
2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:46+0200
2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:49+0200
2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True
2024-05-22 16:55:51.665 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}
2024-05-22 16:55:51.854 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:52+0200', 'name': 'switchBinary'}
2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:49+0200
2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:52+0200
2024-05-22 16:55:52.049 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False
2024-05-22 16:55:53.607 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}
2024-05-22 16:55:53.754 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:53+0200', 'name': 'switchBinary'}
2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:52+0200
2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:53+0200
2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True
2024-05-22 16:55:55.735 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}
2024-05-22 16:55:55.870 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 200
2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:56+0200', 'name': 'switchBinary'}
2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value
2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:53+0200
2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:56+0200
2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False
2024-05-22 16:56:22.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 16:56:22.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 16:56:22.336 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 16:56:22.540 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 16:56:22.554 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-16T19:36:49+0200
2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-03-31T10:45:14+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:00+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:05+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:06+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T07:00:00+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-14T00:13:09+0200
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:53:31+0200
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:46:38+0200
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T16:55:56+0200
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-08T08:04:59+0200
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 0
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node
2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.270 seconds (success: True)
My PR fixes that issue with "0" date FYI. It is now a proper ISO.
On Wed, 22 May 2024, 17:04 sonite, @.***> wrote:
There is something unreliable with how " new time" is set and I'm trying to figure out what. New is defined as a string but seem to get an numeric value of 0 and then we get a whole bunch of error messages as seen above. This should not be a legacy device issue. I have added debug.loggers to the functions set_value and set_values_from_node since they are calling the function is_newer_date.
Strangely this works while posting this, but I don't trust it. I'll delete and reinstall the integration later to tonight to see if this works again
def is_newer_date(current: str, new: str) -> bool: """Check if given timestamp is newer to the current""" if current == "0": return True current_time = dateutil.parser.isoparse(current)
force new=0 to be initated with ISO value (wont handle numeric)
if new == "0": new = current new_time = dateutil.parser.isoparse(new) #The function returns True if new_time is later than current_time. Otherwise, it returns False. return new_time > current_time
2024-05-22 15:54:18.972 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null2024-05-22 15:54:19.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 2002024-05-22 15:54:19.363 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null2024-05-22 15:54:19.364 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null2024-05-22 15:54:19.364 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null2024-05-22 15:54:19.666 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 2002024-05-22 15:54:19.684 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 2002024-05-22 15:54:19.685 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null2024-05-22 15:54:19.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 2002024-05-22 15:54:19.793 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 2002024-05-22 15:54:19.793 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null2024-05-22 15:54:20.114 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 2002024-05-22 15:54:20.114 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null2024-05-22 15:54:20.250 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 2002024-05-22 15:54:20.250 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null2024-05-22 15:54:20.436 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 2002024-05-22 15:54:20.436 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null2024-05-22 15:54:20.558 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 2002024-05-22 15:54:20.558 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null2024-05-22 15:54:20.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 2002024-05-22 15:54:20.702 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null2024-05-22 15:54:20.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 2002024-05-22 15:54:20.834 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null2024-05-22 15:54:21.031 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 2002024-05-22 15:54:21.031 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null2024-05-22 15:54:21.238 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 2002024-05-22 15:54:21.238 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 2002024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.264 seconds (success: True)2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket2024-05-22 15:54:21.622 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:88872024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor2024-05-22 15:54:21.631 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ2024-05-22 15:54:21.641 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor2024-05-22 15:54:21.642 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ2024-05-22 15:54:21.676 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues2024-05-22 15:55:21.334 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null2024-05-22 15:55:21.336 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null2024-05-22 15:55:21.337 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null2024-05-22 15:55:21.524 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 2002024-05-22 15:55:21.530 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 2002024-05-22 15:55:21.586 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 2002024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-16T19:36:49+02002024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-03-31T10:45:14+02002024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:00+02002024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.587 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:05+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:06+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T07:00:00+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-14T00:13:09+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:53:31+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:46:38+02002024-05-22 15:55:21.588 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T15:40:47+02002024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node 2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-08T08:04:59+02002024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node 2024-05-22 15:55:21.589 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.255 seconds (success: True)2024-05-22 16:55:43.197 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}2024-05-22 16:55:43.358 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:43+0200', 'name': 'switchBinary'}2024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:43.566 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:42:40+02002024-05-22 16:55:43.567 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:43+02002024-05-22 16:55:43.567 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True2024-05-22 16:55:45.833 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}2024-05-22 16:55:46.734 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:46.919 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:46+0200', 'name': 'switchBinary'}2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:43+02002024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:46+02002024-05-22 16:55:46.920 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False2024-05-22 16:55:49.323 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}2024-05-22 16:55:49.706 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:49.937 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:49+0200', 'name': 'switchBinary'}2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:46+02002024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:49+02002024-05-22 16:55:49.938 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True2024-05-22 16:55:51.665 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}2024-05-22 16:55:51.854 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:52+0200', 'name': 'switchBinary'}2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:49+02002024-05-22 16:55:52.048 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:52+02002024-05-22 16:55:52.049 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False2024-05-22 16:55:53.607 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOn"}2024-05-22 16:55:53.754 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': True, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:53+0200', 'name': 'switchBinary'}2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:52+02002024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:53+02002024-05-22 16:55:53.968 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> True2024-05-22 16:55:55.735 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: {"cap": "switchBinary", "method": "turnOff"}2024-05-22 16:55:55.870 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] POST http://192.168.1.122/v1/nodes/2/call: 2002024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Coordinator update message: {'value': False, 'sourceNode': 2, 'fromWS': False, 'time': '2024-05-22T16:55:56+0200', 'name': 'switchBinary'}2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Set current state value2024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] last saved time: 2024-05-22T16:55:53+02002024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new possible time: 2024-05-22T16:55:56+02002024-05-22 16:55:56.105 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Updating 'switchBinary' from value -> False2024-05-22 16:56:22.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null2024-05-22 16:56:22.335 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null2024-05-22 16:56:22.336 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null2024-05-22 16:56:22.540 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 2002024-05-22 16:56:22.554 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 2002024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 2002024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-16T19:36:49+02002024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.602 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1003] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-03-31T10:45:14+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1011] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:00+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1048] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:05+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1054] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T03:53:06+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1057] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T07:00:00+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1080] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-14T00:13:09+02002024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.603 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1081] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:53:31+02002024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T00:46:38+02002024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [1089] Ignoring 'switchLevel' from node 2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-22T16:55:56+02002024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'switchBinary' from node 2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Sets values from another nod2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] current_time: 2024-05-08T08:04:59+02002024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] new_time: 02024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] [2] Ignoring 'notification' from node 2024-05-22 16:56:22.604 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.270 seconds (success: True)
— Reply to this email directly, view it on GitHub https://github.com/andersevenrud/ha-nexa-bridge-x/issues/45#issuecomment-2125032627, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABHODDPFLJL7VNJGAISCYDZDSXYHAVCNFSM6AAAAABIBHM2ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRVGAZTENRSG4 . You are receiving this because you commented.Message ID: @.***>
Thanks.
Your PR fixes produces this:
2024-05-22 17:25:23.873 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-05-22 17:25:23.874 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-05-22 17:25:23.874 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-05-22 17:25:25.626 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:25:25.991 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:25:25.991 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:25:25.992 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:25:25.993 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:25:26.193 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:25:26.193 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: null
2024-05-22 17:25:26.195 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:25:26.372 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-05-22 17:25:26.377 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:25:26.811 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1003: 200
2024-05-22 17:25:26.811 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: null
2024-05-22 17:25:27.188 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1: 200
2024-05-22 17:25:27.188 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: null
2024-05-22 17:25:27.322 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1011: 200
2024-05-22 17:25:27.322 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: null
2024-05-22 17:25:27.454 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1048: 200
2024-05-22 17:25:27.454 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: null
2024-05-22 17:25:27.631 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1054: 200
2024-05-22 17:25:27.632 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: null
2024-05-22 17:25:27.730 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1057: 200
2024-05-22 17:25:27.730 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: null
2024-05-22 17:25:27.870 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1080: 200
2024-05-22 17:25:27.870 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: null
2024-05-22 17:25:28.026 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1081: 200
2024-05-22 17:25:28.026 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: null
2024-05-22 17:25:28.162 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/1089: 200
2024-05-22 17:25:28.162 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: null
2024-05-22 17:25:28.446 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes/2: 200
2024-05-22 17:25:28.446 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 2.455 seconds (success: True)
2024-05-22 17:25:28.446 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Closing websocket
2024-05-22 17:25:28.446 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Connecting to websocket: ws://192.168.1.122:8887
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1003: Bjork
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1011: Spegel
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1048: Groventre ute
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1054: Garage ute
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1057: Stuga
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1080: Mottagare ute
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1081: Billaddare
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 1089: 2Lampor
2024-05-22 17:25:28.456 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found switch 2: GarageportZ
2024-05-22 17:25:28.464 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found light 1089: 2Lampor
2024-05-22 17:25:28.465 INFO (MainThread) [custom_components.nexa_bridge_x.entities] Found binary sensor 2: GarageportZ
2024-05-22 17:25:28.491 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-05-22 17:26:28.278 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:26:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:26:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:26:28.475 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:26:28.490 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:26:28.538 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:26:28.538 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:26:28.541 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.263 seconds (success: False)
2024-05-22 17:27:28.278 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:27:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:27:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:27:28.527 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:27:28.534 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:27:28.590 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:27:28.590 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:27:28.592 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.314 seconds (success: False)
2024-05-22 17:28:28.279 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:28:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:28:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:28:28.482 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:28:28.514 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:28:28.578 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:28:28.578 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:28:28.580 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.301 seconds (success: False)
2024-05-22 17:29:28.279 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:29:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:29:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:29:28.514 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:29:28.526 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:29:28.594 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:29:28.594 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:29:28.596 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.318 seconds (success: False)
2024-05-22 17:30:28.279 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:30:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:30:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:30:28.498 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:30:28.510 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:30:28.574 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:30:28.574 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:30:28.576 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.297 seconds (success: False)
2024-05-22 17:31:28.279 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:31:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:31:28.282 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:31:28.470 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:31:28.491 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:31:28.554 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:31:28.555 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:31:28.556 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.277 seconds (success: False)
2024-05-22 17:32:28.278 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:32:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:32:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:32:28.482 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:32:28.495 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:32:28.562 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:32:28.562 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:32:28.564 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.286 seconds (success: False)
2024-05-22 17:33:28.278 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: null
2024-05-22 17:33:28.280 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: null
2024-05-22 17:33:28.281 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: null
2024-05-22 17:33:28.665 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/nodes: 200
2024-05-22 17:33:28.674 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/energy: 200
2024-05-22 17:33:28.750 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.1.122/v1/info: 200
2024-05-22 17:33:28.751 ERROR (MainThread) [custom_components.nexa_bridge_x.nexa] Unexpected error fetching Nexa Bridge X Coordinator data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in _async_update_data
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 710, in <lambda>
list(map(lambda n: NexaNode(n, self.legacy), nodes)),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 512, in __init__
self.values = values_from_events(node, legacy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/nexa_bridge_x/nexa.py", line 103, in values_from_events
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
2024-05-22 17:33:28.752 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 0.474 seconds (success: False)
AttributeError: 'dict' object has no attribute 'name'
Oof. My mistake. I really never should push any code right before going to bed.
Correct is:
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node["name"])
not
_LOGGER.warning("Node '%s' contained no events, reverting to capabilities", node.name)
PR has been updated.
Pretty sure I figured out why your stuff went gray in HA. I've updated the PR with a fix.
This was probably also the root cause of everything that you've encountered...
Sorry about all of this back and forth, but it's really hard to test this without a physical device in hand. My Python is also weak 😅
Another thing is that I've gone over the logs were polls were successful and it seems that after the previous release of this integration things have sped up considerably. If you still run into gray-outs then we can do a small experiment by enabling force poll (which is just a one-line modification).
Pretty sure I figured out why your stuff went gray in HA. I've updated the PR with a fix.
This was probably also the root cause of everything that you've encountered...
Sorry about all of this back and forth, but it's really hard to test this without a physical device in hand. My Python is also weak 😅
Another thing is that I've gone over the logs were polls were successful and it seems that after the previous release of this integration things have sped up considerably. If you still run into gray-outs then we can do a small experiment by enabling force poll (which is just a one-line modification).
I'm very happy that you are so engaged and still okay with me pestering you. Without you, this project wouldn't have taken off. The speed-up can partly be because of my mock-up installation on an RPi 3 before I received my RPi 5. It's only now that my energy subscription has switched to hourly prices, and I wish to turn my car charging on and off depending on these prices and therefor detects these errors. Good Job!
me pestering you
No trouble at all! Without these bug reports I would never have known something was wrong, and I can't stand having something broken available for public.
The speed-up can partly be because of my mock-up installation
Could be. The Raspi5 is a beast! Usually the bottleneck is the network connection; especially wifi.
Really looking forward from your results of trying out the new changes. I'm almost certain it will do the trick!
I went ahead and published a new release with the changes I made (and some small additional cleanups just now).
This should take care of your issue. Please let me know if you still experience any grayed out entries in HA.
A date format issue has been detected:
This causes Nexa to stop polling the detected devices.