UI Button with dynamic topic based on state

You might find the template node useful.

E.g.

UPDATE schedule SET weekend_off = {{payload}} WHERE ID = '{{flow.my_id}}'

You can access msg, flow and global variables. Read the help info on the side bar

1 Like