Expose NodeID on the Zwave devices

Here’s a Markdown card I’ve been using for awhile now. I took inspiration from another post (which I can’t recall).

Markdown card YAML
type: markdown
content: >
  ##
  [Configuration](/config/zwave_js/dashboard?historyBack=1&config_entry=ef37a31dab38dcfee3fd3d1ecd1f3692)


  ## [Nodes](/config/devices/dashboard?historyBack=1&domain=zwave_js)


  {%- set ns = namespace(nodes=[]) %}

  {%- for dev_id in integration_entities('zwave_js') | map('device_id') | unique
  %}

  {%- set node_id = (device_attr(dev_id, 'identifiers') | first |
  last).split('-')[1] %}

  {%- set ns.nodes = ns.nodes + [(node_id | int, dev_id)] %}

  {%- endfor %}

  ID  | Manufacturer | Product / ZUI Custom Name | Product code | HA Custom Name
  | Location / Area | FW

  ---:|:-------------|:--------------------------|:-------------|:---------------|:----------------|---:

  {%- for node_id, dev_id in ns.nodes | sort(attribute='0') %}

  {{ ["[**%d**](/config/devices/device/%s)" | format(node_id, dev_id),
      device_attr(dev_id, 'manufacturer'),
      device_attr(dev_id, 'name'),
      device_attr(dev_id, 'model'),
      device_attr(dev_id, 'name_by_user') or "",
      area_name(dev_id) or "",
      device_attr(dev_id, 'sw_version')] | join("|") }}
  {%- endfor %}

The “Configuration” link goes straight to the integration configuration page. This is faster than going through Settings for me.

The “Nodes” link goes straight to the device listing page filtered by integration.

Notes about the node table:

  1. Devices are sorted by Node ID, and the ID links to the device page. Number is formatted to support Long Range node IDs, but practically speaking I doubt I’ll ever go past 3 digits.
  2. I print both name attributes, because I use Z-Wave JS UI and wanted to make sure the names were synchronized.

The Configuration link and the table would need to be updated if you have multiple integrations (Z-Wave networks) by taking consider of the Home ID. The Home ID is the first part of the device identifier split by -.