Skip to content

Multiple Broadlink Devices

Fredrick Bäcker edited this page Mar 11, 2020 · 3 revisions

If having multiple devices all MQTT messages will be broadcast from all devices.

When wanting to send to a specific device, the device id needs to be added.

Example

A broadlink device with the id 780f7717ea86 is used to control a specific device. Use : seperator and then insert the broadlink device id. topic=path:{broadlink-id}

// Command that broadcast thru all broadlink devices
Type switch : outdoor1 "Outdoor 1" [
    commandTopic="broadlink/nexa/tmt-918/button1",
    stateTopic="broadlink/nexa/tmt-918/button1",
    retained=true,
    on="ON",
    off="OFF"
]

// Command that broadcast from a specific broadlink device
Type switch : outdoor1 "Outdoor 1" [
    commandTopic="broadlink/nexa/tmt-918/button1:780f7717ea86",
    stateTopic="broadlink/nexa/tmt-918/button1:780f7717ea86",
    retained=true,
    on="ON",
    off="OFF"
]

Naming devices

It's possible to name device based on id. In the local config file by setting ID : Name.

{
  "devices": {
    "780f7717ea86": "Livingroom"
  }
}
Clone this wiki locally