Send command to mqtt tasmota

hi there
simple question

i need to send an command to tasmota via mqtt.


tasmota actor should run “status 5”

tasmota ui (console):

20:47:04 CMD: status 5
20:47:04 MQT: stat/PowWohnzimmer/STATUS5 = {"StatusNET":{"Hostname":"PowWohnzimmer-0839",.....

i read the “Rule Action” part in the docu MQTT Things and Channels - Bindings | openHAB

but i don’t unterstand it, can you help me?

try’d a lot, but don’t get it :frowning:

val mqttActions = getActions("mqtt","mqtt:broker:8b3bc7d56b")
mqttActions.publishMQTT("cmnd/PowWohnzimmer/STATUS 5","",false)

is this posible, and when yes, can you tell me how?

thanks a lot

status is part of the topic, while 5 is the payload.

val mqttActions = getActions("mqtt","mqtt:broker:8b3bc7d56b")
1 Like