I want to be able to make WebSocket API calls to the Matter extension from Postman as per GitHub - home-assistant-libs/python-matter-server: Python server to interact with Matter
I am able to make Home Assistant WebSocket API calls from Postman to ws://homeassistant.local:8123/api/websocket. I can Connect then send an Auth message:
message body
{
"type": "auth",
"access_token": "{{LongLivedtoken}}"
}
reply
{"type":"auth_ok","ha_version":"2024.10.1"}
I’m not clear what url to use for WebSocket APIs to the Matter extension. I have seen a couple of forum questions implying that by default it should be ws://homeassistant.local:5580/ws
When I try to Connect to that url from Postman I get the following error
Could not connect to ws://homeassistant.local:5580/ws
09:06:29
Error: connect ECONNREFUSED 192.168.1.158:5580
Handshake Details
Request Method: GET
Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: lv5RhS5/yvfjqze5wt8Hfw==
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: homeassistant.local:5580
I am running, Home Assistant Core 2024.10.1 , Home Assistant Operating System 10.5, Matter (BETA) Extension, on a Raspberry Pi 3, 64 bit Ubuntu.