If you have problem with configuration of the binding, my recommendation is to
- install
Map Transformationvia PaperUI - create file
\\openhabserver\openHAB-share\openhab2-conf\transform\broadlink.mapwith content (here for Samsung TV
TV_POWER_ON = 26004600949413371337133713121312131213121312133713371337131213121312131213121337131213121337133713121312133713121337133713121312133713371312130006230d05
TV_POWER_OFF = 260046009595123812381238121212121212121212121238123812381212121212121212121212121212121212381238121212121238123812381238121212121238123812121200062d0d05
HDMI1 = 2600d200939413361436143614111311141013121211133614361436141113111311131212111336141113111336141113371336143614111336143613111336141113111410140006469493143614361436141014101410131113111436143614361410141013111311131114351510141014361411133613361436141113361436141014361411131113111300064793931436143614361411141014101312121113361436143614111410131113111311133614111311143515101436133614361411133614351411133614111410141014000d05000000000000
HDMI2 = 2600d2009493193114361931190c13111311180c180c183114371830180e12121311170d180c180c17321833183018331733190c18311336190c180c170d1311190c1633180d13000646998e193119311435190c180c170d180c1312173219321335180d180c180c170d1312180c18311832143519311931190c183217311411190c180c180c180c1336190c17000642949319311931193014121311180c170d180c183119311831190c1312180c180c180c170d13361931173313371831190d13361831190c180c1311180c190b1733190c13000d05000000000000
HDMI3 = 260046009595123812381238121212121212121212121238123812381212121212121212121212121238121212121212121212381238123812121238123812381238121212121200062d0d05
- add Broadlink device to your network,
- check on the router what is the IP address and MAC number. The name should be similar to
RMMINI-dd-ee-ff(it ends with last 3 digits of the MAC) - upload JAR with the binding (i.e.
org.openhab.binding.broadlink-2.2.0-BETA2.jar) to folder\\openhabserver\openHAB-share\openhab2-addons\ - configure the thing and item
demo.things
Thing broadlink:rm3:aa-bb-cc-dd-ee-ff "Broadlink RM3" [ ipAddress="192.168.1.111",
mapFilename="broadlink.map",
authorizationKey="097628343fe99e23765c1513accf8b02",
port=80,
iv="562e17996d093d28ddb3ba695a2e6f58",
mac="aa:bb:cc:dd:ee:ff" ]
demo.items
String Ir_Controller "IR" { channel="broadlink:rm3:aa-bb-cc-dd-ee-ff:command" }
demo.sitemap
sitemap tv label="TV"
{
Switch item=Ir_Controller label="Power" mappings=[TV_POWER_ON="On", TV_POWER_OFF="Off"]
Switch item=Ir_Controller label="Source" mappings=[HDMI1="1", HDMI2="2", HDMI3="3"]
}
Note MAC number is in three places, adjust IP address as well
It may be necessary to restart OpenHab - use SSH and perform command sudo systemctl restart openhab2.service
Good luck