i want to contol broadlink ir devices, and i found this
i install this on my openhabian, and its working great from its GUI, i can record and send IR commands, i have problem to config the mqtt binding to send command to this, i tried to config it like this
Did you install the mqtt binding?
The mqtt.cfg in the /services folder need to look like this:
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
mybroker.url=tcp://127.0.0.1:1883
# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a random default is generated.
mybroker.clientId=openhab
i read the mqtt bindind, and also the link you give me, i know how to set the config file of the mqtt i arleady post it on the first message, i did not know i need to install broker
i’m new in this, and i did not found any documentation on hoe to install ang config the broker on openhab, in the link you provided there are few software for windows, mac and android, but i want to ru this on the pi3 with the openhabian
as i mention, there is " Embedded MQTT Broker" but there is no documentation for this addon and i have no idea how to config it
i only open this thread because i didn’t understand the documentation and not becuse i did not reat it, and for now, i cant find any documentation for the " Embedded MQTT Broker" addon in openhab
Switch mqtt "turn on tv" {mqtt=">[broker:broadlink/tv/peerless/turnon:command:ON:play:0d43b4e42518],>[broker:broadlink/tv/peerless:command:OFF:play:0d43b4e42518]"}
i cant understand how can i send this command to the boadlink scipt i install on the pi3, to get into the gui of the boadlink i go to this address in the browser
192.168.1.101:3000
do i need to config the mosquitto.conf with the ip address and port?
and if yes, what do i need to put in there
You don’t
You still haven’t understood how MQTT works
openHAB will send a message to the broker with a topic
Any client connected to the broker subscribed to taht topic will receive the message
You need to tell the broadlink bridge to connect to the broker
Is there an MQTT option if the bridge GUI? So that you can input the broker address and port?
i remove the pass and username from mosquito, and now its finally working (thanks for all the help) and i can see that the broadlink can receive the message, but i have another problem
this is how i define my item (this is taken from the broadlink script page)
Switch tv "turn on tv" {mqtt=">[mosquitto:broadlink/tv/peerless/turnon:command:ON:play:0d43b4e42518],>[mosquitto:broadlink/tv/peerless:command:OFF:play:0d43b4e42518]"}
but i get an error, because the mqtt binding only let me send 5 parameters with “:”, this is the error from the log
is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'
when i remove one of the “:” its send the message, for example without the “0d43b4e42518” but this is the device id, so it receive message but it will not work as i need to send this id number