Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Mode for non-translated values #17

Open
mschlenstedt opened this issue Dec 3, 2022 · 2 comments
Open

Feature Request: Mode for non-translated values #17

mschlenstedt opened this issue Dec 3, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@mschlenstedt
Copy link
Contributor

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
Copy link
Owner

yozik04 commented Dec 3, 2022

Example please. HomeAssistant works great with strings.

@mschlenstedt
Copy link
Contributor Author

mschlenstedt commented Dec 3, 2022

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

@yozik04 yozik04 added the enhancement New feature or request label Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants