Skip to content

Using variable %topic% in berry script #23550

Discussion options

You must be logged in to vote

Rule variables are indeed not a part of the Berry Tasmota integration. You can access many values via commands, like this:

var topic = tasmota.cmd('Topic')['Topic']
mqtt.publish(f'tasmota/{topic}/LWT','Online')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@waltkind
Comment options

Answer selected by waltkind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants