I have a normal MQTT channel for a light, with an item link to the channel.
UID: mqtt:topic:mqtt_broker:movie_room_lights
label: Movie Rooms Lights
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:mqtt_broker
channels:
- id: movie_room_lights
channelTypeUID: mqtt:switch
label: Movie Room Lights
description: ""
configuration:
commandTopic: cmnd/movie-room-lights/POWER
stateTopic: stat/movie-room-lights/POWER
The item linked to this works fine.
I also have another channel on a different thing linked to a virtual button on the NS panel
- id: nxpanel_movie_light
channelTypeUID: mqtt:switch
label: Movie Light - 10:1
description: ""
configuration:
commandTopic: cmnd/nspanel/nxpanel
formatBeforePublish: '{"sync":{"pid":10,"bid":1,"state":%s}}'
transformationPattern: 'REGEX:(.*\"pid\": 10.*\"bid\":
1.*)â©JSONPATH:$.button.[?(@.pid==10)].[?(@.bid==1)].state'
stateTopic: tele/nspanel/RESULT
off: "0"
on: "1"
If I link an item to this channel. it works fine. The vitual button on the NS panel toggles the OH button and activing the OH button changed the vitual button on panel.
All good to here.
But at this point, Iâd like to add the second channel to the item on the first channel so everything is in sync. However, when I go there to do that;
and link a channel
If I pick the thing that has the send channel. I dont see it to choose?
How do I link these two channels to be in sync?