Open fjolnir opened 3 months ago
Please correct me if I am wrong, but I don’t think that it is possible to map more than one topic to a characteristic currently. What I would do is to put something in between that aggregates the messages to a single topic. You could this for example with node-red or did you already find another solution?
For devices that expose multiple topics to do something represented by mqtttthing as a single property, it'd be useful to be able to map it to multiple topics.
Example: My air conditioner has separate
power=on/off
andstate=heat/cool/auto
topics. While mqttthing's thermostat has a singletargetHeatingCoolingState=off/heat/cool/auto
.So what I need to do is: when mqttthing sets for example
targetHeatingCoolingState=auto
is to set bothpower=on
&state=auto
, then when mqttthing's targetHeatingCoolingState is off, I only want to setpower=off
I looked into using a codec, but didn't make any progress. Is there any way to accomplish this?