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


(Gad Ofir) #656

agree with DIM i want to help pepole here , and i am not even able to find the orginal instractions …


(Angelos) #657

Give John some time to complete his stuff and he will create a new, nice, clean thread for his developments :slight_smile: See here: Broadlink binding for RMx, A1, SPx and MP. Any interest?

I like his blog posts by the way :slight_smile: http://blog.themillhousegroup.com/2018/12/green-millhouse-ok-google-turn-on.html


(Eyal Cohen) #658

@themillhousegroup

I still have issue with my second rm3 (rm3-2). I suspect it is related to the fact that the connection to the device is not “perfect” (see pings below). Is this something that can be handled in the binding (e.g., increase wit time for response etc.)?

2018-12-07 11:43:12.359 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e0-b2-44: updateItemStatus; checking host availability at rm3-1.lan
2018-12-07 11:43:18.497 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateItemStatus; checking host availability at rm3-2.lan
2018-12-07 11:53:12.369 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e0-b2-44: updateItemStatus; checking host availability at rm3-1.lan
2018-12-07 11:53:21.506 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateItemStatus; checking host availability at rm3-2.lan
2018-12-07 11:53:21.924 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: We've never actually successfully authenticated with this device in this session. Doing so now
2018-12-07 11:53:21.926 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Authenticating with packet count = 52609
2018-12-07 11:53:21.931 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Sending authentication to rm3-2.lan:80
2018-12-07 11:53:21.934 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Sending authentication complete
2018-12-07 11:53:21.936 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Receiving authentication
2018-12-07 11:53:21.976 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Authenticated with id '02000000' and key 'F991BF12F991BF122F0536026678AC71'.
2018-12-07 11:53:21.979 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Authenticated with newly-detected device, will now get its status
2018-12-07 11:53:21.980 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-e3-c1-ca' has been updated.
2018-12-07 11:53:21.982 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateStatus: Offline -> Online
2018-12-07 11:53:21.983 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-e3-c1-ca' has been updated.
2018-12-07 11:53:21.994 [hingStatusInfoChangedEvent] - 'broadlink:rm3:34-ea-34-e3-c1-ca' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address rm3-2.lan to ONLINE
2018-12-07 12:03:12.377 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e0-b2-44: updateItemStatus; checking host availability at rm3-1.lan
2018-12-07 12:03:21.987 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateItemStatus; checking host availability at rm3-2.lan
2018-12-07 12:03:24.999 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Statically-IP-addressed device not found at rm3-2.lan
2018-12-07 12:03:25.003 [ERROR] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateItemStatus: Online -> Offline
2018-12-07 12:03:25.013 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-e3-c1-ca' has been updated.
2018-12-07 12:03:25.022 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-e3-c1-ca' has been updated.
2018-12-07 12:03:25.031 [hingStatusInfoChangedEvent] - 'broadlink:rm3:34-ea-34-e3-c1-ca' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address rm3-2.lan
2018-12-07 12:13:12.390 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e0-b2-44: updateItemStatus; checking host availability at rm3-1.lan
2018-12-07 12:13:25.028 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: updateItemStatus; checking host availability at rm3-2.lan
2018-12-07 12:13:25.441 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: We've never actually successfully authenticated with this device in this session. Doing so now
2018-12-07 12:13:25.444 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Authenticating with packet count = 52610
2018-12-07 12:13:25.449 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Sending authentication to rm3-2.lan:80
2018-12-07 12:13:25.452 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Sending authentication complete
2018-12-07 12:13:25.455 [TRACE] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Receiving authentication
2018-12-07 12:13:30.465 [DEBUG] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: No further authentication response received for device
2018-12-07 12:13:30.468 [ERROR] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Authenticate - failed to receive.
2018-12-07 12:13:30.473 [ERROR] [nk.handler.BroadlinkBaseThingHandler] - broadlink:rm3:34-ea-34-e3-c1-ca: Attempting to authenticate prior to getting device status FAILED


PING rm3-2.lan (192.168.0.102): 56 data bytes
64 bytes from 192.168.0.102: icmp_seq=0 ttl=255 time=51.937 ms
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
64 bytes from 192.168.0.102: icmp_seq=3 ttl=255 time=59.792 ms
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6

(John Marshall) #659

Wow @smhgit that’s certainly going to be a challenge to handle!

In order to deal with such an unreliable connection, every single time we send a packet to the device, we’ll have to be able to retry it if we didn’t receive a reply.

I’ll admit my first instinct was “too hard, don’t do it” … but … my goal for this binding has always for it to be really robust and reliable. Dealing with lossy networks is definitely something that reliable software does. So leave it with me, and let’s see what I can do for BETA-10 :slight_smile:


(Eyal Cohen) #660

@themillhousegroup

Great, thx! i thought of trying to improve the connection but I will keep it that way so you will have a debug site for your next version :slight_smile:


(Eyal Cohen) #661

@themillhousegroup

One more thing, currently I check for broadlink device online with network binding:

Switch Rm3_1_Online "RM3 [MAP(online.map):%s]" { channel="network:pingdevice:34-ea-34-e0-b2-44:online" }

Can something like LIFX thing status can be added to the binding?


(Bud Kernell) #662

You are a myth John !
Thank you for your time and your interest!


(Bud Kernell) #663

Hi.
I have a strong connection and 2 rm3.
But randomly i lost connection with my black beans.
Maybe the problem is not only a poor connection.
:confused:


(Dario) #664

Hey @themillhousegroup

I have a question that might be of use.

Once sorted the rules and groups, i shoudl be able to command 3 fans+3dimmable lights+3led nightlights with your binding.

Whereas if i issue a group command like “switch all the sockets on” that conearns z-wave devices, each with its own timing, but they will switch on, i wander what would happen if i was going to make a group of the rf433 fans and issue the command “turn all the fans on”.
Is there some kind of a buffer of queueing of commands included within the binding (as the RM3 suerly can’t send 3 rf433 signals at once) or would it be better to chain such a command in a rule with a staggered start?

thank you for your hard work, really appreciated.


(Jorg Coevert) #665

I’ve got the same issue with the errors in the log file.
The SP3 works ok manually and with rules, also status of the device seems ok, but these communication errors stay in the logs…

2018-12-09 07:30:58.125 [.event.RuleStatusInfoEvent] - 02e707eb-7160-4b21-871e-2dab536ac5de updated: IDLE
2018-12-09 07:30:58.131 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from ON to OFF
2018-12-09 07:46:08.758 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 07:46:38.966 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 09:16:57.097 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 09:17:27.232 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 09:38:04.929 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 09:38:35.062 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 11:14:22.922 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 11:14:53.081 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 13:48:24.617 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 13:48:54.817 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 14:38:06.372 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 14:38:36.582 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE

2018-12-09 14:48:13.330 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13
2018-12-09 14:48:43.460 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.178.13 to ONLINE
2018-12-09 16:30:10.081 [.event.RuleStatusInfoEvent] - b8777c82-9aa2-4b48-a410-ec6855f71e98 updated: RUNNING
2018-12-09 16:30:10.095 [ome.event.ItemCommandEvent] - Item 'BroadlinkSW_B' received command ON
2018-12-09 16:30:10.100 [.event.RuleStatusInfoEvent] - b8777c82-9aa2-4b48-a410-ec6855f71e98 updated: IDLE
2018-12-09 16:30:10.116 [vent.ItemStateChangedEvent] - BroadlinkSW_B changed from OFF to ON

(John Marshall) #666

Hmmm it looks like it’s flip-flopping every polling interval. @Jorg, could I get you to set the log level to TRACE for the Broadlink binding so (hopefully) I can see why it’s doing that? In the OpenHAB console:

log:set TRACE org.openhab.binding.broadlink

Thanks!


(John Marshall) #667

While I’m here; BETA-10 is now available:

https://dl.bintray.com/themillhousegroup/generic/org.openhab.binding.broadlink-2.4.0-BETA-10.jar

This version fixes a few small issues:

  • RM3 devices can now have a polling frequency specified (this was an omission from the thing-types.xml configuration file)
  • Thing logging extracted to its own class and improved: Device status ONLINE/OFFLINE/undetermined shown in logs as ^/v/? respectively
  • Each ThingHandler’s network socket is now explicitly closed when we lose contact with the device. This seems to help subsequent reconnections.

(Rhapen) #668

Hello guys,
created little tutorial based on my experience setting up RM3 mini. hope it can help someone :wink:
https://diyiot.000webhostapp.com/2018/12/controling-universal-remote-control-broadlink-rm3-by-openhab


(Eyal Cohen) #669

Hi @themillhousegroup

I thought the pollingInterval was already there (or at least I use it and it seems working)

Thx for your hard work!!! will download, check and update


(Mihai Badea) #670

Just wanna share that it works with a Broadlink SC1 (https://m.banggood.com/Broadlink-SC1-DIY-Smart-Switch-WiFi-APP-Control-Box-Timing-Switch-Wireless-Remote-Controller-p-1143214.html)
Using beta10, device is found as SP2 - probably the same hardware.
Everything works properly after putting the authentication and IV key.


(Bud Kernell) #671

Hi people,
3 hours without disconnections…it seems this beta is working very well :smile:
I keep watching the logs…
:slight_smile:


(Bud Kernell) #672

One black bean go down…but after that…go up again and works…
thats great :smiley:
Logs:

2018-12-10 22:47:09.347 [hingStatusInfoChangedEvent] - 'broadlink:rm3:34-ea-34-58-b9-ba' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not find device at IP address 192.168.2.120
==> /var/log/openhab2/openhab.log <==
2018-12-10 22:47:24.154 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:78-0f-77-18-3c-81[^]: updateItemStatus; checking host availability at 192.168.2.121
2018-12-10 22:47:39.339 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: updateItemStatus; checking host availability at 192.168.2.120
2018-12-10 22:47:39.747 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: We've never actually successfully authenticated with this device in this session. Doing so now
2018-12-10 22:47:39.752 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Authenticating with packet count = 58181
2018-12-10 22:47:39.756 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: building message with count: 58182, id: 00000000, key: 097628343FE99E23765C1513ACCF8B02
2018-12-10 22:47:39.763 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Sending authentication to 192.168.2.120:80
2018-12-10 22:47:39.769 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: No existing socket ... creating
2018-12-10 22:47:39.774 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Sending authentication complete
2018-12-10 22:47:39.779 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Receiving authentication
==> /var/log/openhab2/events.log <==
2018-12-10 22:47:39.828 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-58-b9-ba' has been updated.
==> /var/log/openhab2/openhab.log <==
2018-12-10 22:47:39.879 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Authenticated with id '01000000' and key '821FA60FB9921C7FEF05936E2679095E'.
==> /var/log/openhab2/events.log <==
2018-12-10 22:47:39.881 [me.event.ThingUpdatedEvent] - Thing 'broadlink:rm3:34-ea-34-58-b9-ba' has been updated.
==> /var/log/openhab2/openhab.log <==
2018-12-10 22:47:39.885 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: Authenticated with newly-detected device, will now get its status
2018-12-10 22:47:39.890 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:rm3:34-ea-34-58-b9-ba[v]: updateStatus: Offline -> Online

(Jorg Coevert) #673

Hi John,
You are a real wizard in this!
Here’s me new log after I installed the BETA-10.

For both devices I use
Authentication Key: 097628343fe99e23765c1513accf8b02
IV: 562e17996d093d28ddb3ba695a2e6f58

Hope you can see what’s wrong.

==> /var/log/openhab2/openhab.log <==
2018-12-12 22:44:11.849 [DEBUG] [org.openhab.binding.broadlink       ] - ServiceEvent UNREGISTERING - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=399, service.bundleid=241, service.scope=bundle, component.name=org.openhab.binding.broadlink.internal.discovery.BroadlinkDiscoveryService, component.id=269} - org.openhab.binding.broadlink
2018-12-12 22:44:11.874 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent STOPPED - org.openhab.binding.broadlink
2018-12-12 22:44:11.879 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent UNRESOLVED - org.openhab.binding.broadlink
2018-12-12 22:44:11.887 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent UNINSTALLED - org.openhab.binding.broadlink
2018-12-12 22:44:11.907 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent INSTALLED - org.openhab.binding.broadlink
2018-12-12 22:44:12.092 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent RESOLVED - org.openhab.binding.broadlink
2018-12-12 22:44:12.103 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent [unknown:512] - org.openhab.binding.broadlink
2018-12-12 22:44:12.134 [DEBUG] [org.openhab.binding.broadlink       ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=411, service.bundleid=247, service.scope=bundle, component.name=org.openhab.binding.broadlink.internal.BroadlinkHandlerFactory, component.id=279} - org.openhab.binding.broadlink
2018-12-12 22:44:12.142 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent STARTING - org.openhab.binding.broadlink
2018-12-12 22:44:12.147 [DEBUG] [org.openhab.binding.broadlink       ] - BundleEvent STARTED - org.openhab.binding.broadlink
2018-12-12 22:44:12.177 [DEBUG] [org.openhab.binding.broadlink       ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=412, service.bundleid=247, service.scope=bundle, component.name=org.openhab.binding.broadlink.internal.discovery.BroadlinkDiscoveryService, component.id=280} - org.openhab.binding.broadlink
2018-12-12 22:44:12.187 [INFO ] [.discovery.BroadlinkDiscoveryService] - BroadlinkDiscoveryService - Constructed
2018-12-12 22:44:12.332 [DEBUG] [ink.internal.BroadlinkHandlerFactory] - Creating Thing handler for 'broadlink:sp2'

==> /var/log/openhab2/events.log <==
2018-12-12 22:44:12.374 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

==> /var/log/openhab2/openhab.log <==
2018-12-12 22:44:12.389 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: initializing
2018-12-12 22:44:12.424 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: Authenticating with packet count = 21506
2018-12-12 22:44:12.434 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: building message with count: 21507, id: 00000000, key: 097628343FE99E23765C1513ACCF8B02
2018-12-12 22:44:12.441 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: Sending authentication to 192.168.178.18:80
2018-12-12 22:44:12.444 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: No existing socket ... creating
2018-12-12 22:44:12.448 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: Sending authentication complete
2018-12-12 22:44:12.450 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: Receiving authentication
2018-12-12 22:44:12.499 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[?]: Authenticated with id '01000000' and key '00000000000000000000000000000000'.
2018-12-12 22:44:12.503 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: initialization complete

==> /var/log/openhab2/events.log <==
2018-12-12 22:44:12.506 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-aa-72' changed from INITIALIZING to ONLINE

==> /var/log/openhab2/openhab.log <==
2018-12-12 22:44:12.509 [DEBUG] [ink.internal.BroadlinkHandlerFactory] - Creating Thing handler for 'broadlink:sp2'

==> /var/log/openhab2/events.log <==
2018-12-12 22:44:12.517 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-b0-71' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING

==> /var/log/openhab2/openhab.log <==
2018-12-12 22:44:12.516 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: initializing
2018-12-12 22:44:12.556 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: Authenticating with packet count = 53641
2018-12-12 22:44:12.558 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: building message with count: 53642, id: 00000000, key: 097628343FE99E23765C1513ACCF8B02
2018-12-12 22:44:12.565 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: Sending authentication to 192.168.178.30:80
2018-12-12 22:44:12.567 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: No existing socket ... creating
2018-12-12 22:44:12.569 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: Sending authentication complete
2018-12-12 22:44:12.571 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: Receiving authentication
2018-12-12 22:44:12.619 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[?]: Authenticated with id '01000000' and key '56F2C22AFE76EA2226BA9E7ED2D6E68A'.
2018-12-12 22:44:12.622 [DEBUG] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: initialization complete

==> /var/log/openhab2/events.log <==
2018-12-12 22:44:12.624 [hingStatusInfoChangedEvent] - 'broadlink:sp2:34-ea-34-f5-b0-71' changed from INITIALIZING to ONLINE

==> /var/log/openhab2/openhab.log <==
2018-12-12 22:44:13.509 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: updateItemStatus; checking host availability at 192.168.178.18
2018-12-12 22:44:13.527 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: building message with count: 21508, id: 01000000, key: 00000000000000000000000000000000
2018-12-12 22:44:13.531 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket to 192.168.178.18:80
2018-12-12 22:44:13.534 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket complete
2018-12-12 22:44:13.537 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Receiving status for socket
2018-12-12 22:44:13.625 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: updateItemStatus; checking host availability at 192.168.178.30
2018-12-12 22:44:13.638 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: building message with count: 53643, id: 01000000, key: 56F2C22AFE76EA2226BA9E7ED2D6E68A
2018-12-12 22:44:13.642 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket to 192.168.178.30:80
2018-12-12 22:44:13.645 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket complete
2018-12-12 22:44:13.648 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Receiving status for socket
2018-12-12 22:44:43.573 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: updateItemStatus; checking host availability at 192.168.178.18
2018-12-12 22:44:43.590 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: building message with count: 21509, id: 01000000, key: 00000000000000000000000000000000
2018-12-12 22:44:43.595 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket to 192.168.178.18:80
2018-12-12 22:44:43.600 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket complete
2018-12-12 22:44:43.604 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Receiving status for socket
2018-12-12 22:44:43.688 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: updateItemStatus; checking host availability at 192.168.178.30
2018-12-12 22:44:43.724 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: building message with count: 53644, id: 01000000, key: 56F2C22AFE76EA2226BA9E7ED2D6E68A
2018-12-12 22:44:43.728 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket to 192.168.178.30:80
2018-12-12 22:44:43.731 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket complete
2018-12-12 22:44:43.734 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Receiving status for socket
2018-12-12 22:45:13.645 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: updateItemStatus; checking host availability at 192.168.178.18
2018-12-12 22:45:13.661 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: building message with count: 21510, id: 01000000, key: 00000000000000000000000000000000
2018-12-12 22:45:13.666 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket to 192.168.178.18:80
2018-12-12 22:45:13.671 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Sending status for socket complete
2018-12-12 22:45:13.673 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-aa-72[^]: Receiving status for socket
2018-12-12 22:45:13.771 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: updateItemStatus; checking host availability at 192.168.178.30
2018-12-12 22:45:13.786 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: building message with count: 53645, id: 01000000, key: 56F2C22AFE76EA2226BA9E7ED2D6E68A
2018-12-12 22:45:13.792 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket to 192.168.178.30:80
2018-12-12 22:45:13.796 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Sending status for socket complete
2018-12-12 22:45:13.798 [TRACE] [.handler.AbstractLoggingThingHandler] - broadlink:sp2:34-ea-34-f5-b0-71[^]: Receiving status for socket

(Iandronowicz) #674

Working great with 3 Sp3’s! Good work… really appreciate it!

Why is the min polling interval so high? 30 secs seems like a lot of time… can’t it be like 5s? Is a little bit annoying when I manually turn on or off the SP3 (the sp3 have a on/off physical button) that it takes so long to show on OpenHAB.

Another thing… but it has to do with the apple HomeKit integration with OpenHAB: is there a way to show in apple home app when a device is offline to actually show offline? another one: is there a way to show it in the apple home app with the outlet icon instead of the switch icon?

Thanks!!


(John Marshall) #675

Glad it’s working well for you!

Agreed - the polling frequency is too slow for devices with physical switches - so in the next beta the SPx (single plug) and MPx (power strip) models will have a new lower limit of 1 second.

I probably wouldn’t recommend polling that frequently, but thought if I’m going to reduce the minimum, I may as well go all the way. Your suggestion of 5s seems like a fair compromise for these devices.

I’m still learning my way with the HomeKit/Google Home integration, but I don’t think there is yet a way to represent something being offline. Although I think somebody suggested earlier that it seems like it would be useful if each Thing had a channel that represented exactly that. Then, at some point in the future when HomeKit/Google get the ability, that channel could be exposed to it. It does seem a little redundant though. It would be better if the OpenHAB cloud connector could pass the online/offline status of every exposed Thing to the various automation partners…