I have the same issues, previously I used the exec binding with the python script method so my rule simply called the item in question: Switch Woods_1 "Woods Plug 1" {exec=">[ON:python /etc/openhab2/BlackBeanControl/BlackBeanControl.py -c Woods_1_ON] >[OFF:python /etc/openhab2/BlackBeanControl/BlackBeanControl.py -c Woods_1_OFF]"}
Now I have the mapping file/broadlink items and sitemap set up as suggested and I can use the broadlink to control an RF switch via the Sitemap (On and Off buttons).
item file: String Tree_ON "Christmas Tree ON" { channel="broadlink:rm2:34-ea-34-89-15-68:command" }
map file:
But when I try to integrate this into a rule, I get the following errors: Could not transform ‘ON’ with the file ‘broadlink.map’ : Target value not found in map for 'ON’ No entry for ON in map file ‘broadlink.map’ for thing Broadlink RM2 [192.168.10.133]
The rule I’m trying is:
rule "Morning - TREE ON"
when
Time cron "0 42 8 * * ? *"
then
Tree_ON.sendCommand(OFF)
end
Thanks Udo, I tried that now but it still gives me the same error message: Could not transform ‘ON’ with the file ‘broadlink.map’ : Target value not found in map for 'ON’ No entry for ON in map file ‘broadlink.map’ for thing Broadlink RM2 [192.168.10.133]
It seems like the binding is looking for a specific mapping called ON or OFF, even though nothing in my rule/item file mentions this exact reference.
carloszacu
(Carlos Andres Zapata Cuervo (El Loco))
310
hey new guy here, can anyone pm me the Authentication Key and the IV please, I´m having trouble finding them.
I have successfully binded my RM2 and SP2 device to openhab. However, i noticed that the status of the Things always flip flop between Online and Offine status as show in the screen below.
Thanks for creating this binding, I am using it successfully. The RM3 is a great little cheap device for sending IR codes to various devices. I noticed this binding is still not included in the distribution release of OH 2.2. Is it because of intellectual property uncertainties?
thanks for the great binding! It works fine from the sitemap, but I have issues to control the Broadlink via rules.
I get the error “The method or field Broadlink is undefined”, but “Broadlink” is defined as Item and receives propper commands from the sitemap. Why is it not recognized in the rules?
Yes, YZ2_MINUS is defined in the broadlink.map file.
Meanwhile the rule is working, without any change. I only restarted OH due to other reason, and since then it is working…
Hi, I have the Binding installed an it’s shown in Paper UI. Active │ 80 │ 2.2.0.201707060032 │ Broadlink Binding
But my SP2 Switch State turns in short time to Off the Device not.
Power Consumption will never updated.
I’am running OH2.2 on RPI3 with Raspian.
Log Level is Debug org.openhab.binding.broadlink │ DEBUG
But only the manual Item State Change to ON is shown in Log amd a few time later the Item State Change to OFF