nibe-mqtt icon indicating copy to clipboard operation
nibe-mqtt copied to clipboard

Feature Request: Mode for non-translated values

Open mschlenstedt opened this issue 2 years ago • 2 comments

The script currently tranlates values to words, e. g.:

"43427": {
    "title": "Compressor State EP14",
    "info": "20 = Stopped, 40 = Starting, 60 = Running, 100 = Stopping",
    "size": "u8",
    "factor": 1,
    "name": "compressor-state-ep14-43427",
    "mappings": {
      "20": "Stopped",
      "40": "Starting",
      "60": "Running",
      "100": "Stopping"
    }
  },

Here value 20 is translated to "Stopped" and send to the Broker. In smarthome systems these words must be filtered and back-translated to values to use them in logic functions.

I would prefer a "non-translating" mode, so that the original values (here: "20") is sent via MQTT.

mschlenstedt avatar Dec 03 '22 07:12 mschlenstedt

Example please. HomeAssistant works great with strings.

yozik04 avatar Dec 03 '22 13:12 yozik04

Loxone cannot use strings in Virtual Inputs for example. And also if you would like to build a logic with AND or OR gatter it cannot handle text.

I think this is true for many SPS systems.

This is an example how SPS program looks like in Loxone:

image

mschlenstedt avatar Dec 03 '22 14:12 mschlenstedt