yozik04 / nibe-mqtt

Nibe MQTT integration to use with HomeAssistant MQTT Autodiscovery
GNU General Public License v3.0
29 stars 9 forks source link

Feature Request: Mode for non-translated values #17

Open mschlenstedt opened 1 year ago

mschlenstedt commented 1 year ago

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.

yozik04 commented 1 year ago

Example please. HomeAssistant works great with strings.

mschlenstedt commented 1 year ago

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