You probably don’t even need a rule. You can configure the mqtt binding so any time the Item changes state it publishes that change to the configured topic. See the following to get started.
You probably don’t even need a rule. You can configure the mqtt binding so any time the Item changes state it publishes that change to the configured topic. See the following to get started.