2 number items following each other

Good morning all,
i have to number items

Number number_test1 "test1 [%.2f]" 
Number number_test2 "test2 [%.2f]" 

if the state/value of number_test1 is changed I wann also change to the same value item number_test2 like the follow profile? but how???

Thanks for your help

If you haven’t linked any channels, you can’t use the follow profile.
You have to do it with a rule:

rule "Value test1 to test2"
when
  Item number_test1 changed
then
  number_test2.postUpdate(triggeringItem.state)
end

Good luck

1 Like