message: fix: 'Just value' payload for bool values
diff: @@ -641,9 +641,11 @@ Gateway.prototype.publishDiscovery = function (hassDevice, nodeId, deleteDevice,
  if (this.config.payloadType === 2) { // Payload is set to "Just Value"
  var p = hassDevice.discovery_payload
  + var template = 'value' + (p.hasOwnProperty('payload_on') && p.hasOwnProperty('payload_off') ? ' | bool' : '')
  +
  for (const k in p) {
  if (typeof p[k] === 'string') {
  - p[k] = p[k].replace(/value_json\.value/g, 'value')
  + p[k] = p[k].replace(/value_json\.value/g, template)
  }
  }
  }
  