Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeKit scene sending multiple requests doesn't work properly #440

Closed
marcotti71 opened this issue Jan 14, 2022 · 5 comments
Closed

HomeKit scene sending multiple requests doesn't work properly #440

marcotti71 opened this issue Jan 14, 2022 · 5 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@marcotti71
Copy link

Hi,
I created two scenes in HomeKit that requests one to open, the other to close, 4 devices through my broadlink RM4 Pro S.
Each time I call one of the two scenes it "forgets" to turn on (or off) one or two devices, not necessarily the same ones.
Very rarely it opens (or closes) all of them.
If I turn them on or off manually one by one, it works like a charm.
The devices are:

  • An Onkyo receiver set as "TV" sub-type "Receiver" (same IR hex code to turn it on or off)
  • An Epson projector set as "TV" (two different IR hex codes to turn it on or off, to turn it off need to send the hex code twice, with one second delay)
  • A rollable screen set as "window-covering" (two different RF hex codes to open or close it)
  • An "HDMI Matrix" (to split the audio from the video signal coming from an HDMI source) set as "switch" (same IR hex code to turn it on or off)

I suspect that the RM4 cannot handle too many inputs at the same time.
If this is the case, is there a way to "delay" somehow the trigger of each command adding a "pause" ahead of the command instruction?

Did any of you encountered the same issue?

HomeKit hub: Apple TV 4K - tvOS 15.2

@marcotti71 marcotti71 added the bug Something isn't working label Jan 14, 2022
@marcotti71
Copy link
Author

Forgot to add: in the HomeBridge log (as in the HomeKit UI) it looks like everything is working fine, but the devices actually do not switch

@marcotti71
Copy link
Author

marcotti71 commented Jan 15, 2022

Update: I found a workaround to force it working.
Since the "pause" instruction is discarded if added as first instruction of the command (don't know if by HomeKit, by HomeBridge or by the plugin itself), I started my command with a fake hex code ("1234ab"), then I added the "pause" and finally the real hex code. E.g.:
{ "name": "My Device", "type": "switch", "data": { "on": [ { "data": "1234ab", "pause": 1 }, { "data": "ON_HEX_CODE" } ], "off": [ { "data": "1234ab", "pause": 1 }, { "data": "OFF_HEX_CODE" } ] } }

I chose the sequence I wanted to have and (leaving the first device of my sequence unchanged) I applied the configuration above with a increasing pause for any other device (1 sec for the second device, 2 secs for the third and 3 secs for the fourth... I tried to go with 0.5 secs lag steps, but it was still too quick).

Clearly it is a workaround, but I hope it will help whoever will have the same issue

Cheers
m

@pixeleyesltd
Copy link

I'm experiencing the same issue - though it never used to do this. Any changes in later releases that might cause it?

@stale
Copy link

stale bot commented Mar 22, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 22, 2022
@stale stale bot closed this as completed Mar 30, 2022
@alexzhuaz
Copy link

Same issue here two with 4 devices in one scene.

banboobee added a commit to banboobee/homebridge-broadlink-rm that referenced this issue Aug 12, 2022
banboobee added a commit to banboobee/homebridge-broadlink-rm that referenced this issue Aug 13, 2022
kiwi-cam pushed a commit that referenced this issue Jun 16, 2023
* Resolve the workaround of #440.
kiwi-cam added a commit that referenced this issue Jun 17, 2023
kiwi-cam added a commit that referenced this issue Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants