message: [fix] Device discovery
diff: @@ -607,7 +607,7 @@ Gateway.prototype.discoverDevice = function (node, hassDevice) {
  // set the correct command/state topics
  for (const key in payload) {
  if (key.indexOf('topic') >= 0 && topics[payload[key]]) {
  - payload[key] = topics[payload[key]] + (key.indexOf('command') >= 0 ? '/set' : '')
  + payload[key] = topics[payload[key]] + ((key.indexOf('command') >= 0 || key.indexOf('set_')) >= 0 ? '/set' : '')
  }
  }
  }
  @@ -834,9 +834,9 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  payload = cfg.discovery_payload
  - if (!payload.hasOwnProperty('state_topic') || payload.state_topic) payload.state_topic = this.mqtt.getTopic(topic)
  + if (!payload.hasOwnProperty('state_topic') || payload.state_topic === true) payload.state_topic = this.mqtt.getTopic(topic)
  - if (payload.command_topic) payload.command_topic = this.mqtt.getTopic(topic, true)
  + if (payload.command_topic === true) payload.command_topic = this.mqtt.getTopic(topic, true)
  // Set availability topic using node status topic
  // payload.availability_topic = this.mqtt.getTopic(this.nodeTopic(node)) + '/status/hass'
  