message: [feat] Add node location to hass ids
diff: @@ -270,10 +270,10 @@ function getValueID (v) {
  * Get node name from node object
  *
  * @param {*} node The Zwave Node Object
  - * @returns the node name if exists or the node id with node prefix string
  + * @returns A string in the format [<location>-]<name>, if location doesn't exist it will be ignored, if the node name doesn't exists the node id with node prefix string will be used
  */
  function getNodeName (node) {
  - return node.name ? node.name : NODE_PREFIX + node.node_id
  + return (node.loc ? node.loc + '-' : '') + (node.name ? node.name : NODE_PREFIX + node.node_id)
  }
  function deviceInfo (node, nodeName) {
  @@ -501,6 +501,11 @@ Gateway.prototype.discoverDevice = function (node, hassDevice) {
  // Set device information using node info
  payload.device = deviceInfo(node, nodeName)
  + // Set a unique name
  + payload.name = `${nodeName}_${hassDevice.object_id}`
  + // set a unique_id
  + payload.unique_id = `zwave2mqtt_` + '_' + payload.name
  +
  // set values as discovered
  for (let k = 0; k < hassDevice.values.length; k++) {
  this.discovered[node.node_id + '-' + hassDevice.values[k]] = hassDevice
  @@ -699,8 +704,9 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  // Set a unique name
  payload.name = `${nodeName}_${cfg.object_id}`
  +
  // set a unique_id
  - payload.unique_id = this.mqtt.getTopic(topic).split('/').join('_')
  + payload.unique_id = 'zwave2mqtt_' + nodeName + '_' + valueId.value_id
  const discoveryTopic = getDiscoveryTopic(cfg, nodeName)
  