Running OpenHab 2.5.8. Regarding this setting on an MQTT thing…
Outgoing Value Format
Format a value before it is published to the MQTT broker. The default is to just pass the channel/item state. If you want to apply a prefix, say "MYCOLOR,", you would use "MYCOLOR,%s". If you want to adjust the precision of a number to for example 4 digits, you would use "%.4f".
I have a WiFi ESP chip that I’ve programmed up to turn on various blinds around the house. It will receive for example “HALLOPEN” to a “openhab/blinds/trigger” topic that causes the ESP chip to then switch a MOSFET sending a logical key press to an infrared remote therefore opening the hall blinds. Another example would be send “BEDROOMSCLOSE” to close the bedroom blinds via a different IR remote.
I figured based on the description above, on my Hallway blinds thing for example, I could put “HALL,%s” in the “Outgoing Value Format” box above, in the hope that the thing would prefix the “CLOSE” command on a rollershutter item type that is sent with “HALL” therefore sending “HALLCLOSE” but this does not work.
Am I reading the text of what this setting is supposed to do incorrectly? If so what is the easiest way to achieve this?