Hauptmenü

NetALertX - MQTT Readingslist

Begonnen von GunterB, 19 November 2025, 13:08:22

Vorheriges Thema - Nächstes Thema

GunterB

Hallo zusammen,

ich überwache in menem Netztwerk sämtliche Geräte mit NetAlertX (https://jokob-sk.github.io/NetAlertX/).
Die MQTT Ausgabe ist für mich jetzt erst mal ein Problem.

Meine Readingslist sieht erst mal so aus:
netalertx:system-sensors/sensor/netalertx/state:.* { $EVENT }
netalertx:system-sensors/.* { $EVENT }

Jedoch hätte ich gerne eine ordentliche Auflistung der Devices als Reading und nicht nur durchlaufende Werte.

Gibt es eine Möglichkeit, diese JSON Werte sinnvoll auszuwerten?

Code (Mitschnitt) Auswählen
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/last_ip/config', ... (333 bytes))
{"name": "last_ip", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.last_ip}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_last_ip", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:ip-network"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/mac_address/config', ... (353 bytes))
{"name": "mac_address", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.mac_address}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_mac_address", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:folder-key-network"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/is_new/config', ... (338 bytes))
{"name": "is_new", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.is_new}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_is_new", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:bell-alert-outline"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/vendor/config', ... (323 bytes))
{"name": "vendor", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.vendor}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_vendor", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:cog"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/first_connection/config', ... (393 bytes))
{"device_class": "timestamp", "name": "first_connection", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.first_connection}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_first_connection", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:calendar-start"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/sensor/mac_9c_83_AA_BB_CC_DD/last_connection/config', ... (388 bytes))
{"device_class": "timestamp", "name": "last_connection", "state_topic": "system-sensors/sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.last_connection}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_last_connection", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:calendar-end"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/binary_sensor/mac_9c_83_AA_BB_CC_DD/is_present/config', ... (343 bytes))
{"name": "is_present", "state_topic": "system-sensors/binary_sensor/mac_9c_83_AA_BB_CC_DD/state", "value_template": "{{value_json.is_present}}", "unique_id": "mac_9c_83_AA_BB_CC_DD_sensor_is_present", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor"], "manufacturer": "NetAlertX", "name": "Android_AABBCCDD"}, "icon": "mdi:wifi"}
Client mosqsub|28500-raspberry received PUBLISH (d0, q0, r0, m0, 'homeassistant/device_tracker/mac_9c_83_AA_BB_CC_DD/config', ... (524 bytes))
{"state_topic": "system-sensors/device_tracker/mac_9c_83_AA_BB_CC_DD/state", "json_attributes_topic": "system-sensors/device_tracker/mac_9c_83_AA_BB_CC_DD/attributes", "name": "is_home", "payload_home": "home", "payload_not_home": "away", "unique_id": "mac_9c_83_AA_BB_CC_DD_device_tracker_is_home", "icon": "mdi:home", "device": {"identifiers": ["mac_9c_83_AA_BB_CC_DD_sensor", "mac_9c_83_AA_BB_CC_DD_device_tracker_is_home"], "manufacturer": "NetAlertX", "model": "Android_AABBCCDD", "name": "Android_AABBCCDD"}}

Beta-User

Schritt für Schritt zu MQTT2_DEVICE im FHEM-Wiki ist bekannt?

Und im "Workshop" im korrekten Forenbereich für die Anfrage findet sich Baumaterial...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors