Hi
I want my "Tag1" to change "Tag2" , should be simple, but it does not work.
I`m new to code, so I cant see what is wrong.
def Tag1_changed(tag, previousValue, currentValue, quality, timestamp):
if currentValue.value == 1:
system.tag.writeBlocking(["Tag2"], [1])
system.tag.addTagChangeListener("Tag1", Tag1_changed)
The goal: Tag1 is MQTT tag that I control from MQTT.
Then I want Tag2 , that is Memory tag in the PLS to trigger from the State of the MQTT tag.