Closed eelco2k closed 11 months ago
I have a similar setup, and it DOES work if setup correctly.
You’ll need to give more info on your network setup though in order to track down your issue.
Personally, I use vlans, and had to setup routing between subnets, as well as open the correct firewall ports.
I would check if you’re able to get MQTT messages from the nspanel to your MQTT broker.
Go to the IP of your actual panel in your browser, and make sure you have your MQTT settings set correctly, then, check if the MQTT broker is receiving the messages. Manager should discover the panel if they are both communicating with the MQTT broker.
@aaronouthier i also use VLANs. It is connected to MQTT as i see /nspanel/{NSPANELNAME}/command , log , r1_state, r2_state, screen_state, status, status_report, temperature_state. Topics.
also the topics: /nspanel/config/reload = 1 and: /nspanel/mqttmanager/command = "{"mac_origin":"C4:DD:57:11:11:11","method":"set","attribute":"brightness","brightness":0,"entity_ids":[]}"
So it has WiFi and also both can connect to MQTT, but i think something goes wrong with the websocket connection
Perhaps it has something to do with the Docker networking service... i'm using Docker version 20.10.3, build 55f0773 and the container runs on the bridge network driver
when i try from a computer connecting to the websocket i can connect and get these messages:
{"type": "status", "payload": {"id": 1, "mac": "C4:DD:57:11:11:11", "name": "NSPANEL1", "is_us_panel": "False", "address": "172.17.0.1", "state": "online", "rssi": -68, "heap_used_pct": 42, "temperature": 27.42412758, "ip": "10.0.0.43", "warnings": ""}}
{"type": "mqttmanager_status", "mqtt": {"connected": true}, "home_assistant": {"configured": false, "connected": false, "auth_ok": false}, "openhab": {"configured": false, "connected": false}}
browsing to http://10.0.0.43/ gives me no webpage...
On my NSPanel i see below the logo: "Registering to manager...."
Double-check that your router/firewall has explicit rules allowing:
I have setup my PFSense firewall to allow traffic from my main subnet to my IoT subnet as a blanket rule, and from my IoT network to the specific IP of my HomeAssistant OS, which also runs my MQTT.
Since I'm running my MQTT broker within HAOS, I'm not sure what docker networking type it uses.
Weirdly enough putting on same subnet gives me the same error. So VLAN is not the issue that the NSPANEL wont fully start and stays at "Registering to manager..." So i will close this issue for now.
When my docker container runs in 10.0.0.0/24 range, and my NSPANELS for example in 10.0.30.0/24 range, the NSPanels won't popup in the NSPanelManager list.
logs i get: