Broadlink binding for RMx, A1, SPx and MP. Any interest?

just got my RM4 pro and added the latest version (Beta 16). Added device manually (IP and MAC) and get this error.
Am I missing something as no docs on git that i can see.

==> /QPKGs/OpenHab/userdata/logs/openhab.log <==

2020-12-15 14:14:43.702 [ERROR] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Authentication failed: 

2020-12-15 14:14:43.703 [ERROR] [handler.BroadlinkRemoteModel4Handler] - Broadlink Exception: 

java.net.ProtocolException: Response from device is not valid. (0x22=0xFF,0x23=0xFF,0x24=0xFF)

	at org.openhab.binding.broadlink.internal.BroadlinkProtocol.decodePacket(BroadlinkProtocol.java:195) ~[bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.decodeDevicePacket(BroadlinkBaseThingHandler.java:180) ~[bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.authenticate(BroadlinkBaseThingHandler.java:140) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.transitionToOnline(BroadlinkBaseThingHandler.java:263) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.updateItemStatus(BroadlinkBaseThingHandler.java:216) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler$1.run(BroadlinkBaseThingHandler.java:104) [bundleFile:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_241]

	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_241]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_241]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_241]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_241]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_241]

	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]

2020-12-15 14:14:43.704 [ERROR] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Attempting to authenticate prior to getting device status FAILED. Will mark as offline

2020-12-15 14:14:43.705 [WARN ] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Online -> Offline due to: Couldn't authenticate

2020-12-15 14:15:08.492 [INFO ] [ntesisbox.internal.IntesisBoxHandler] - keep alive sent

2020-12-15 14:15:08.512 [INFO ] [ntesisbox.internal.IntesisBoxHandler] - keep alive sent

2020-12-15 14:15:08.600 [INFO ] [ntesisbox.internal.IntesisBoxHandler] - keep alive sent

2020-12-15 14:15:13.728 [ERROR] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Authentication failed: 

2020-12-15 14:15:13.728 [ERROR] [handler.BroadlinkRemoteModel4Handler] - Broadlink Exception: 

java.net.ProtocolException: Response from device is not valid. (0x22=0xFF,0x23=0xFF,0x24=0xFF)

	at org.openhab.binding.broadlink.internal.BroadlinkProtocol.decodePacket(BroadlinkProtocol.java:195) ~[bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.decodeDevicePacket(BroadlinkBaseThingHandler.java:180) ~[bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.authenticate(BroadlinkBaseThingHandler.java:140) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.transitionToOnline(BroadlinkBaseThingHandler.java:263) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler.updateItemStatus(BroadlinkBaseThingHandler.java:216) [bundleFile:?]

	at org.openhab.binding.broadlink.handler.BroadlinkBaseThingHandler$1.run(BroadlinkBaseThingHandler.java:104) [bundleFile:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_241]

	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_241]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_241]

	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_241]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_241]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_241]

	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_241]

2020-12-15 14:15:13.729 [ERROR] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Attempting to authenticate prior to getting device status FAILED. Will mark as offline

2020-12-15 14:15:13.729 [WARN ] [handler.BroadlinkRemoteModel4Handler] - rm4:c0611c45[v]: Online -> Offline due to: Couldn't authenticate

==> /QPKGs/OpenHab/userdata/logs/events.log <==

Hi All,

Running the beta 16 version of the binding on OH 2.5.11 Release and keep coming across the following errors. As far as I can tell, the devices aren’t dropping off the LAN so at a loss. Can anybody shed any light?

2020-12-23 11:38:37.008 [WARN ] [dlink.handler.BroadlinkRemoteHandler] - rm3:34:EA:34:58:C7:78[^]: Online -> Offline due to: Couldn’t find statically-IP-addressed device

2020-12-23 11:38:37.009 [hingStatusInfoChangedEvent] - ‘broadlink:rm3:34:EA:34:58:C7:78’ changed from ONLINE to OFFLINE: Couldn’t find statically-IP-addressed device

2020-12-23 11:38:58.070 [hingStatusInfoChangedEvent] - ‘broadlink:rm3:34:EA:34:58:C7:78’ changed from OFFLINE: Couldn’t find statically-IP-addressed device to ONLINE

2020-12-23 11:39:47.573 [WARN ] [dlink.handler.BroadlinkRemoteHandler] - rm3:34:EA:34:58:C7:78[^]: Online -> Offline due to: Couldn’t find statically-IP-addressed device

2020-12-23 11:39:47.574 [hingStatusInfoChangedEvent] - ‘broadlink:rm3:34:EA:34:58:C7:78’ changed from ONLINE to OFFLINE: Couldn’t find statically-IP-addressed device

Happy new year

Is there a version of the addin compatible to OH 3.0?

3 Likes

meneldor i didn’t see working solution for SP3S. Maybe some hardware problems, to get power consumption data?

Hi everyone,
As per @nakh_Home asked, is there any update about OH3 binding?
Thanks a lot and happy holidays!

Hi All,

see also OH3 UI IR widget

Thanks for all the good work
Happy holidays

Ronny

@Cato_Sognen Hey :slight_smile: I just upgraded to OH3, just missing custom .jars for Plex and the broadlink rm3. Do you think we will get a ported version for OH3? Does anybody else knows the current state of development?

Cheers and happy holidays :slight_smile:

Going to try and get an OH3.0 compatible build out in the next couple of weeks.
Sorry for people who’ve been waiting patiently for this! :frowning:

12 Likes

Hi, thank you for your efforts, I am happy to test the builds with you :slight_smile:

Happy holidays :slight_smile:

Thanks bro… have a nice holiday

I’m hoping to get some time to take a further look at the BG Electrical wall socket in the next few days. I’ve also bought two of their adaptors for cheap off Amazon. Seems to be compatible with the SP4b so I’ll try adding that as a merge request first (low hanging fruit and all that).

Log output:
2020-12-29 14:58:10.295 [ERROR] [nding.broadlink.internal.ModelMapper] - Device identifying itself as '20962' (0x51e2) is not currently supported. Please report this to the developer!

Google result from HomeAssist: SP2-UK broadlink smart plug Unsupported device: 0x51e2 · Issue #44216 · home-assistant/core · GitHub

Model Product Page: Smart Sockets | BG Electrical Accessories

Hello Friends,
When I turn ON a particular Zwave switch, I would like to create a rule that automatically sends a turn ON command to my RF devices using the Broadlink binding.

I tried these two commands format, but I failed to make them work:

[itemName].sendCommand([command])
sendCommand([itemName], [command])

For [itemName], I used the command string item I created for the Broadlink Command Thing (I called the item: rf_control).
For [command], I used one of the RF codes titles I entered in the Broadlink.map file to set the bedroom fan to speed 1 (bedroom_fan_1).

For example, When I switch ON the bedroom’s fan zwave wall switch, I would like the Broadlink binding to send out an rf command to turn ON the bedroom fan to speed 1, so I tried these commands but they didn’t work:
sendCommand(rf_control , bedroom_fan_1)
and
rf_control.sendCommand(bedroom_fan_1)

Any ideas how I should write the command for it to work properly?

Hi Miki,

You could try this

rule "When this item ON then other item ON"
when
    Item itemname changed from OFF to ON
then
    itemname.sendCommand (ON)
end

underneath the itemname.sendCommand (ON) you can add more devices as well

Hi Miki,
rf_control.sendCommand(bedroom_fan_1) means that bedroom_fan_1 is a variable (var).
If bedroom_fan_1 is the map command as I suppose should be written between “”
i.e. rf_control.sendCommand(“bedroom_fan_1”) or sendCommand(rf_control , “bedroom_fan_1”)
Let’s try.
Regards
Lorenzo

1 Like

Thank you, @ciscomike
I indeed used this form of rule.
As @Foxejoe suggested, my problem was I didn’t write the command bedroom_fan_1 within " " (I should have wrote it like this: sendCommand(rf_control , "bedroom_fan_1") .
This solved the problem :slight_smile:

Thanks, Lorenzo :)))
Your suggestion solved the problem :pray: :pray: :pray:

Anyone tested with OH3? I assume we can add the 2.5 jar into the addons folder?

No that won’t work - it has to be an OH3 specific JAR file.

Damn :frowning: guess ill have to wait for an OH3 version

1 Like

I’m also looking forward for the OpenHAB 3 broadlink binding as I have quite a lot of dependency on the RM3 Pro

In the mean time, If you still have an old spare raspi you can have OpenHAB 2.x running with the working 2.5 broadlink binding and just the broadlink items, and access them through 3.0 “remote OpenHAB” binding. It works like a charm!!!