Skip to content

Commit ac5545b

Browse files
committed
Use 5580 as default port
It aligns with what Matter uses (5540) but be a bit more httpy.
1 parent 322a98e commit ac5545b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

custom_components/matter_experimental/config_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
STEP_USER_DATA_SCHEMA = vol.Schema(
2222
{
23-
vol.Required(CONF_URL, default="http://127.0.0.1:8080/chip_ws"): str,
23+
vol.Required(CONF_URL, default="http://172.30.32.1:5580/chip_ws"): str,
2424
}
2525
)
2626

matter_server/client/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
_LOGGER = logging.getLogger(__name__)
1313

1414
DEFAULT_HOST = "127.0.0.1" if len(sys.argv) < 2 else sys.argv[1]
15-
DEFAULT_PORT = "8080" if len(sys.argv) < 3 else sys.argv[2]
15+
DEFAULT_PORT = "5580" if len(sys.argv) < 3 else sys.argv[2]
1616
HOST = os.getenv("CHIP_WS_SERVER_HOST", DEFAULT_HOST)
1717
PORT = int(os.getenv("CHIP_WS_SERVER_PORT", DEFAULT_PORT))
1818
URL = f"http://{HOST}:{PORT}/chip_ws"

matter_server/server/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
def main() -> int:
1818
host = os.getenv("CHIP_WS_SERVER_HOST", "::,0.0.0.0").split(",")
19-
port = int(os.getenv("CHIP_WS_SERVER_PORT", "8080"))
19+
port = int(os.getenv("CHIP_WS_SERVER_PORT", "5580"))
2020
storage_path = os.getenv(
2121
"CHIP_WS_STORAGE",
2222
str(Path.home() / ".chip-storage/python-kv.json"),

0 commit comments

Comments
 (0)