What I would like to do is to store every value in a sperate thing. So I have configured a MQTT broker and a Generic MQTT thing. I am able to store data from “temp” in a channel/item. Tags with a space, i can’t store them in a item. For example “InFanSpeed (%” is not possible to store in in a thing/item.
I have the following questions:
How do I store tags with spaces (for expample ‘InFanSpeed (%)’ in a thing/item?
How can i configure the Generic MQTT thing on the most efficient way? Do i need to configure tag by tag manualy? Or can i configure the Generic MQTT thing that it creates automaticaly the things based on the JSON string.
Yes.
openHAB MQTT binding supports self-identifying devices using Homie or HomeAssistant conventions. But not analysing and guessing about arbitrary JSON.
I have also the option to configure HomeAssistant MQTT in my device. I get the first part of below string. It creates one channel, the other channels are missing… What do i wrong?
{"dev":{"identifiers":"nrg-itho-89e4","manufacturer":"Arjen Hiemstra","model":"ITHO Wifi Add-on","name":"ITHO-WIFI(nrg-itho-89e4)","sw_version":"HW: vNON-CVE 1, FW: 2.3-beta2"},"avty_t":"itho/lwt","uniq_id":"nrg-itho-89e4_fan","name":"nrg-itho-89e4_fan","stat_t":"itho/lwt","stat_val_tpl":"{% if value == 'online' %}ON{% else %}OFF{% endif %}","json_attr_t":"itho/ithostatus","cmd_t":"itho/cmd/not_used/but_needed_for_HA","pct_cmd_t":"itho/cmd","pct_cmd_tpl":"{{ value * 2.54 }}","pct_stat_t":"itho/state","pct_val_tpl":"{{ ((value | int) / 2.54) | round}}"}