[SOLVED] Using the profile "follow", avoiding loops?

Tags: #<Tag:0x00007f185f6a4e78> #<Tag:0x00007f185f6a4db0>

Hi Guys,

would like to use the profilefollow”.

I have e.g. two items:

itemA and itemB.

I would like itemB to follow itemA, but also itemA to follow itemB.

Will this create a loop? Or is that impossible?

The description here says that the FollowProfile ignores state updates.
.

here is the syntax:

<itemType> <itemName> {channel = "<channelUID>", channel = "<followChannelUID>" [profile = "follow"]}

Example:

Switch itemA {channel="xxxx.of.itemA", channel="xxxx.of.itemB" [profile="follow"]}
Switch itemB {channel="xxxx.of.itemB", channel="xxxx.of.itemA" [profile="follow"]}

I could try on my own, but I’m afraid of an overflowing logfile or something else.

You should just try it out. If OH ends up in a look, just kill OH, back out the follow, and start OH again.

I suspect it will work just fine.

1 Like

I did it. It is running. :slight_smile: No loop!

Example:

Switch itemA {channel="xxxx.of.itemA", channel="xxxx.of.itemB" [profile="follow"]} 
Switch itemB {channel="xxxx.of.itemB", channel="xxxx.of.itemA" [profile="follow"]}