message: fix: Hass discovery for SENSOR_ALARM cmd class
diff: @@ -799,6 +799,7 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  case 'switch_binary':
  case 'switch_all':
  case 'switch_toggle_binary':
  + if (valueId.index === 0) {
  let rgb = node.values['51-1-0']
  if (rgb) {
  cfg = copy(hassCfg.light_rgb_switch)
  @@ -807,6 +808,7 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  } else {
  cfg = copy(hassCfg.switch)
  }
  + } else return
  break
  case 'switch_multilevel':
  case 'switch_toggle_multilevel':
  @@ -826,9 +828,7 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  } else {
  cfg = copy(hassCfg.light_dimmer)
  }
  - } else {
  - return
  - }
  + } else return
  break
  case 'door_lock':
  if (valueId.index === 0) { // lock state
  @@ -870,7 +870,16 @@ Gateway.prototype.discoverValue = function (node, valueId) {
  break
  case 'sensor_alarm':
  + let alarmMap = {
  + 0: 'general',
  + 1: 'smoke',
  + 2: 'carbon_monoxide',
  + 3: 'carbon_dioxide',
  + 4: 'heat',
  + 5: 'flood'
  + }
  cfg = copy(hassCfg.binary_sensor_alarm)
  + cfg.object_id += alarmMap[valueId.index] ? '_' + alarmMap[valueId.index] : ''
  break
  case 'alarm':
  