I've been looking for a while and haven't found the answer to what is likely a pretty basic question.
I've created a Non-Plugin HS device and it will be controlled by an MQTT payload that sends either "on" or "off" (without quotes). mcsMQTT is receiving the payload, I just need to convert it to a Device control.
My HS device has control values of 0 and 100. The device Status I'm using is "open" and "closed" (not "on" and "off").
Topic :: Payload
automation/arduino_01/binary_sensor/I8 :: on
How can I use mscMQTT to set the device to 0 for a payload of "off" and to 100 for a payload of "on"? I'm assuming that I'd use the "Payload RegEx Match Pattern" and "Payload RegEx Replace Pattern", but have no idea what that would look like.
Thanks for any help you can provide.
--Doug
I've created a Non-Plugin HS device and it will be controlled by an MQTT payload that sends either "on" or "off" (without quotes). mcsMQTT is receiving the payload, I just need to convert it to a Device control.
My HS device has control values of 0 and 100. The device Status I'm using is "open" and "closed" (not "on" and "off").
Topic :: Payload
automation/arduino_01/binary_sensor/I8 :: on
How can I use mscMQTT to set the device to 0 for a payload of "off" and to 100 for a payload of "on"? I'm assuming that I'd use the "Payload RegEx Match Pattern" and "Payload RegEx Replace Pattern", but have no idea what that would look like.
Thanks for any help you can provide.
--Doug
Comment