debugging Zwave loggin is not very straightforward as it is. Loggins mention a NodeID, but to find the related Device, we need to open the Zwave integration panel, and check all of the individual devices for their NodeId.
it would be so nice if we could add that in our templates, so, when confronted with a logging and a NodeID, we could immediately find the culprit device.
The nodeId is available on the devices as ID:
Please consider adding that to the available device_attributes, which now is:
{"area_id":"zolder_woonkamer","config_entries":["62213aa5a398677a26e1a3354a861183"],"configuration_url":null,"connections":[],"created_at":"1970-01-01T00:00:00+00:00","disabled_by":null,"entry_type":null,"hw_version":null,"id":"ef847e6d3729aa35d9ab7fdb66e38284","identifiers":[["zwave_js","3967834106-33-271:1538:4099"],["zwave_js","3967834106-33"]],"labels":[],"manufacturer":"Fibargroup","model":"FGWP102","model_id":null,"modified_at":"2024-08-08T09:40:48.457475+00:00","name_by_user":"Afzuigkap Zolder","name":"Metered Wall Plug Switch","primary_config_entry":"62213aa5a398677a26e1a3354a861183","serial_number":null,"sw_version":"3.2","via_device_id":"d49973230a844c7efce127d6bea7733c"},
aware it is buried here:
["zwave_js","3967834106-33"]]
but that is not very obvious to find.
fighting with things like:
{{device_attr('ef847e6d3729aa35d9ab7fdb66e38284','identifiers')}}
{{device_attr('ef847e6d3729aa35d9ab7fdb66e38284','name_by_user')}}
{{integration_entities('zwave_js')}}
needs a lot of manual editing (and doesnt yet come close to finding the device or name_by_user based on the available NodeId in the logging.
A mapping would be very welcome
please consider
(btw, purposely not adding to Display NodeID as a column in the ZWaveJS Integration Devices page, because that, even though essentially the same quest, explicitly mentions a solution, which Id rather leave to the devs to consider.
in the zwave_js.legacy_zwave_migration NodeID are listed like:
"sensor.afzuigkap_zolder_totaal": {
"node_id": 33,
"endpoint_index": 0,
"command_class": 50,
"value_property_name": "value",
"value_property_key_name": "Electric_kWh_Consumed",
"value_id": "33-50-0-value-65537",
"device_id": "ef847e6d3729aa35d9ab7fdb66e38284",
"domain": "sensor",
"entity_id": "sensor.afzuigkap_zolder_totaal",
"unique_id": "3967834106.33-50-0-value-65537",
"unit_of_measurement": "kwh"
},
which make it available without an issue, on any of the entities listed. Cant use that file anylonger, just showing it for reference