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

Multiple topics for single property #673

Open
fjolnir opened this issue Mar 14, 2024 · 1 comment
Open

Multiple topics for single property #673

fjolnir opened this issue Mar 14, 2024 · 1 comment

Comments

@fjolnir
Copy link

fjolnir commented Mar 14, 2024

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 and state=heat/cool/auto topics. While mqttthing's thermostat has a single targetHeatingCoolingState=off/heat/cool/auto.

So what I need to do is: when mqttthing sets for example targetHeatingCoolingState=auto is to set both power=on&state=auto, then when mqttthing's targetHeatingCoolingState is off, I only want to set power=off

I looked into using a codec, but didn't make any progress. Is there any way to accomplish this?

@dylexrocks
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants