arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

[Feature Request] Being able to use arrays as Values like in the photo #522

Closed PalmTamino closed 2 years ago

PalmTamino commented 2 years ago

grafik

rbswift commented 2 years ago

You can use an apply function for the topic something like (not tested):

return (["idle","docked","paused"].includes(message) ? "OFF" : "ON");

see here for details https://github.com/arachnetech/homebridge-mqttthing/blob/master/docs/Configuration.md

PalmTamino commented 2 years ago

Thanks! Got it

Screenshot: https://ibb.co/7R8fFSk