Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have 2 error code, how to fix? #12

Open
ShingCK opened this issue Feb 1, 2024 · 6 comments
Open

have 2 error code, how to fix? #12

ShingCK opened this issue Feb 1, 2024 · 6 comments

Comments

@ShingCK
Copy link

ShingCK commented Feb 1, 2024

have 2 error code, how to fix?

Error 1:
Logger: websocket
Source: custom_components/lifesmart/init.py:591
Integration: LifeSmart (documentation, issues)
First occurred: 上午8:13:18 (235 occurrences)
Last logged: 上午9:05:24
error from callback <function async_setup_entry..on_message at 0x7f608c59e0>: Expecting value: line 1 column 1 (char 0)
websocket connected
error from callback <function async_setup_entry..on_message at 0x7f7f1bf600>: 'NoneType' object has no attribute 'attributes'

Error 2:
Logger: custom_components.lifesmart
Source: custom_components/lifesmart/init.py:414
Integration: LifeSmart (documentation, issues)
First occurred: 上午8:13:18 (133 occurrences)
Last logged: 上午9:05:14

Websocket_error: Expecting value: line 1 column 1 (char 0)
Websocket_error: 'NoneType' object has no attribute 'attributes'

@iKaew
Copy link
Owner

iKaew commented Feb 1, 2024

Can you share what kind of devices you have ?

@iKaew
Copy link
Owner

iKaew commented Feb 1, 2024

Can you also attach a full log?

@ShingCK
Copy link
Author

ShingCK commented Feb 1, 2024

Can you share what kind of devices you have ?

I use Rpi 5,
have lifesmart Nature Mini PRO, Nature Mini PRO(POE), SPOT, CUBE Motion Sensor, CUBE Door/Window Sensor, Gas Sensor, Nature Switch

@ShingCK
Copy link
Author

ShingCK commented Feb 1, 2024

Can you also attach a full log?

how to give you log?

@MapleEve
Copy link

MapleEve commented Apr 9, 2024

2024-04-09 15:16:52.644 ERROR (Thread-2) [websocket] error from callback <function async_setup_entry..on_message at 0x7f94bd5af7e0>: Expecting value: line 1 column 1 (char 0)
2024-04-09 15:16:52.644 ERROR (Thread-2) [custom_components.lifesmart] Websocket_error: Expecting value: line 1 column 1 (char 0)

2024-04-09 15:17:22.754 ERROR (Thread-2) [custom_components.lifesmart] Websocket_error: Expecting value: line 1 column 1 (char 0)
2024-04-09 15:17:32.756 ERROR (Thread-2) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/config/custom_components/lifesmart/init.py", line 539, in run
self._ws.run_forever()
File "/usr/local/lib/python3.12/site-packages/websocket/_app.py", line 422, in run_forever
raise WebSocketException("socket is already opened")
websocket._exceptions.WebSocketException: socket is already opened

@MapleEve
Copy link

MapleEve commented Apr 9, 2024

only 2 wss msg received

{
	'status': 'ok',
	'message': [{
		'ver': '0.0.0.0',
		'fullCls': 'SL_P_IR_V2',
		'me': '0001',
		'lHeart': 1712667118,
		'stat': 1,
		'data': {},
		'agt': 'XXXXX',
		'devtype': 'SL_P_IR',
		'name': 'IR',
		'agt_ver': '1.0.93p22'
	}],
	'code': 0,
	'id': 1
}

{
	"type": "io",
	"msg": {
		"fullCls": "SL_LK_YL_V1",
		"val": 8193,
		"v": 8193,
		"agt": "XXXXX",
		"devtype": "SL_LK_YL",
		"me": "61a9",
		"idx": "HISLK",
		"lsid": "XXXXX",
		"type": 95,
		"userid": "123456",
		"ts": 1712666313800
	},
	"id": 1
}

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

No branches or pull requests

3 participants