Hello friends.
I am new to openhab and have a problem that I don’t really understand, please help me.
I have 1 Broadlink mini 3.
Successfully installed: https://github.com/mjg59/python-broadlink and set up the control to turn off the TV when running manual commands.
In addition, I have learned many other commands in BlackBeanControl.ini file like Vol up, …
Installed addon exec bindings
Now how do I map the button in the sitemap with some command? For example:
item file: String TV_LIVINGROOM “TV”
sitemap file:
well the exec command can be difficult to get working usually for reasons that have nothing to do with OpenHAB (permissions and such). You might want to also check out the executeCommandLine method
Please note this Item configuration is for exec binding version 1, and will not work for the version 2 that is usually installed in openHAB2. That uses things and channels instead.
Thanks @Fiftiz.
i use exec on openhab 2.4 and setup ok one swich ON OFF. but to have many functions of a television or air conditioner. then they will be a lot of switch buttons. According to the reference on the forum, I found there were some comments about sitemaps and they were very convenient.
For example:
Text label = “Swing” icon = “AirCon” {
Selection item = AirCon_Mode mappings = [0 = “Auto”, 1 = "Cool", 2 = “Dry”, 3 = “Fan”]
}
How does the system know, when I choose Mode Auto from the sitemap, will launch the exec command I set it up with cooling mode.