From 4f9dd9e81cb59d0d7b9e4542635c738931d95f7a Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 21 Jun 2026 07:29:43 +1000 Subject: [PATCH 1/3] PLG: acc connections attribute to mqtt #1681 --- front/plugins/_publisher_mqtt/mqtt.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/plugins/_publisher_mqtt/mqtt.py b/front/plugins/_publisher_mqtt/mqtt.py index 08ece315..438264b3 100755 --- a/front/plugins/_publisher_mqtt/mqtt.py +++ b/front/plugins/_publisher_mqtt/mqtt.py @@ -165,7 +165,10 @@ class sensor_config: "device": { "identifiers": [f"{self.deviceId}_sensor"], "manufacturer": "NetAlertX", - "name": self.deviceName + "name": self.deviceName, + "connections": [ + ["mac", self.mac] + ], }, "icon": f'mdi:{self.icon}' }) From 691a57dcd981fbe84dce46feb4ad0a1cbe8fe951 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 21 Jun 2026 08:04:05 +1000 Subject: [PATCH 2/3] DOCS: hero image fix and reorganising --- docs/stylesheets/custom.css | 24 ++++++++++++++++++++++++ front/plugins/rest_import/README.md | 2 ++ mkdocs.yml | 10 ++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/docs/stylesheets/custom.css b/docs/stylesheets/custom.css index 4407decd..a8585d21 100644 --- a/docs/stylesheets/custom.css +++ b/docs/stylesheets/custom.css @@ -61,6 +61,30 @@ p.hero-description { object-fit: contain; } +/* Mobile */ +@media (max-width: 768px) { + .hero-wrapper { + flex-direction: column-reverse; /* image first, text second */ + align-items: center; + } + + .hero-content { + max-width: 100%; + text-align: center; + } + + .hero-image { + max-width: 100%; + margin-bottom: 1.5rem; + } + + .hero-logo-crisp { + max-width: 600px; + width: 100%; + height: auto; + } +} + /* --- PROMO CARDS --- */ .promo-card-wrapper { display: flex; diff --git a/front/plugins/rest_import/README.md b/front/plugins/rest_import/README.md index 3ce6c4cb..78d1f2ab 100644 --- a/front/plugins/rest_import/README.md +++ b/front/plugins/rest_import/README.md @@ -48,6 +48,8 @@ Enable **Generate Fake MAC** when the API does not expose MAC addresses (e.g. re ### Example: OPNsense Dnsmasq API +See the [OPNsense configuration guide](https://docs.netalertx.com/PLUGINS) for details. + **Response:** ```json { diff --git a/mkdocs.yml b/mkdocs.yml index 63b012e0..ded5100d 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -44,9 +44,6 @@ nav: - Getting started: - Subnets: SUBNETS.md - Enable Plugins: PLUGINS.md - - Pi-hole Guide: PIHOLE_GUIDE.md - - Home Assistant: HOME_ASSISTANT.md - - Emails: SMTP.md - Backups: BACKUPS.md - Security Features: SECURITY_FEATURES.md - Security Considerations: SECURITY.md @@ -60,7 +57,6 @@ nav: - Performance: PERFORMANCE.md - Reverse DNS: REVERSE_DNS.md - Reverse Proxy: REVERSE_PROXY.md - - Webhooks (n8n): WEBHOOK_N8N.md - Workflows: WORKFLOWS.md - Workflow Examples: WORKFLOW_EXAMPLES.md - Docker Swarm: DOCKER_SWARM.md @@ -85,6 +81,12 @@ nav: - Icons and Topology: - Icons: ICONS.md - Network Topology: NETWORK_TREE.md + - Other guides: + - Pi-hole Guide: PIHOLE_GUIDE.md + - Home Assistant: HOME_ASSISTANT.md + - Emails: SMTP.md + - Rest import: REST_IMPORT.md + - Webhooks (n8n): WEBHOOK_N8N.md - Troubleshooting: - General Tips: DEBUG_TIPS.md - Common Issues: COMMON_ISSUES.md From 39cdbfcc189f1d763b6a170dbb31a0ab7cdc1f81 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 21 Jun 2026 08:10:21 +1000 Subject: [PATCH 3/3] PLG: add connections attribute to mqtt #1681 --- front/plugins/_publisher_mqtt/mqtt.py | 11 ++++++++--- front/plugins/rest_import/README.md | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/front/plugins/_publisher_mqtt/mqtt.py b/front/plugins/_publisher_mqtt/mqtt.py index 438264b3..f40c50dd 100755 --- a/front/plugins/_publisher_mqtt/mqtt.py +++ b/front/plugins/_publisher_mqtt/mqtt.py @@ -156,6 +156,13 @@ class sensor_config: self.state_topic = f'{topic_root}/{self.sensorType}/{self.deviceId}/state' self.unique_id = f'{self.deviceId}_sensor_{self.sensorName}' + if self.mac != "": + connections_snippet = [ + ["mac", self.mac] + ] + else: + connections_snippet = [] + # Update the message dictionary, expanding it without overwriting self.message.update({ "name": self.sensorName, @@ -166,9 +173,7 @@ class sensor_config: "identifiers": [f"{self.deviceId}_sensor"], "manufacturer": "NetAlertX", "name": self.deviceName, - "connections": [ - ["mac", self.mac] - ], + "connections": connections_snippet }, "icon": f'mdi:{self.icon}' }) diff --git a/front/plugins/rest_import/README.md b/front/plugins/rest_import/README.md index 78d1f2ab..6d1d317a 100644 --- a/front/plugins/rest_import/README.md +++ b/front/plugins/rest_import/README.md @@ -48,7 +48,7 @@ Enable **Generate Fake MAC** when the API does not expose MAC addresses (e.g. re ### Example: OPNsense Dnsmasq API -See the [OPNsense configuration guide](https://docs.netalertx.com/PLUGINS) for details. +See the [OPNsense configuration guide](https://docs.netalertx.com/REST_IMPORT) for details. **Response:** ```json