message: fix: notification event not publiished to mqtt
  * fix: notification event not publiished to mqtt
  Fixes
  * fix: reset timeout
diff: @@ -619,6 +619,7 @@ function onNodeValueNotification (zwaveNode, args) {
  args.newValue = args.value
  // specify that this is stateless
  args.stateless = true
  +
  onNodeValueUpdated.call(this, zwaveNode, args)
  }
  @@ -1066,7 +1067,7 @@ function updateValueMetadata (zwaveNode, zwaveValue, zwaveValueMeta) {
  *
  * @param { import('zwave-js').ZWaveNode } zwaveNode
  * @param { import('zwave-js').TranslatedValueID } zwaveValue
  - * @param {Map<string, import('../types/index.js').Z2MValueId} oldValues old valueIds, used to check if the value was existing or not
  + * @param { Map<string, import('../types/index.js').Z2MValueId | undefined } oldValues old valueIds, used to check if the value was existing or not
  */
  function addValue (zwaveNode, zwaveValue, oldValues) {
  const node = this.nodes.get(zwaveNode.id)
  @@ -1173,9 +1174,12 @@ function updateValue (zwaveNode, args) {
  }
  this.emit('valueChanged', valueId, node, prevValue !== newValue)
  + } else {
  + // notifications don't hava a defined valueId, manually create a value
  + addValue.call(this, zwaveNode, args)
  + }
  - const self = this
  -
  + // if valueId is stateless, automatically reset the value after 1 sec
  if (valueId.stateless) {
  if (this.statelessTimeouts[valueId.id]) {
  clearTimeout(this.statelessTimeouts[valueId.id])
  @@ -1183,10 +1187,10 @@ function updateValue (zwaveNode, args) {
  this.statelessTimeouts[valueId.id] = setTimeout(() => {
  valueId.value = undefined
  - self.emit('valueChanged', valueId, node, false)
  + this.emit('valueChanged', valueId, node, false)
  }, 1000)
  }
  - }
  +
  node.lastActive = Date.now()
  }
  }
  