I would like some help with setting up an MQTT command to control the AC unit.
Unfortunately the AC unit does not support Loxone (Sinclair) and Loxone does not make a module for it either. Fortunately the AC unit is supported by node-red. Node-red supports MQTT. I have MQTT installed on a Loxberry where the AC unit and MQTT are coupled together. So from Loxone I just need to send the MQTT command that I want to assemble in Loxone.
From the room temperature control block I have the set temperature, from the climate control block I have the information whether to heat or cool (each separated output). And from all of this I need to produce something like "publish zigbee2mqtt/AC/set {"power": "on", "mode": "heat" OR "cold", "temperature":25, "fanSpeed": "auto", "swingHor": "full", "swingVert": "full"}" on power on and "publish zigbee2mqtt/AC/set {"power": "off"}"
How to easily put together one temperature and two inputs into one Virtual Output command?
Thanks for the ideas
Kommentar