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

Broadlink integration creating 3-5 seconds unwanted delays in script #93787

Closed
dansity opened this issue May 30, 2023 · 2 comments
Closed

Broadlink integration creating 3-5 seconds unwanted delays in script #93787

dansity opened this issue May 30, 2023 · 2 comments

Comments

@dansity
Copy link

dansity commented May 30, 2023

The problem

I have a Broadlink RM Pro as an RF remote to move my shutters. I need a few presses on the remote to set 3 of my shutters as I like so I made a script. In my script it is important to quickly press up then stop button for the shutter so it stays in position.
The broadlink integration can only do it with 5sec timing between presses. The broadlink device runs locally, not through the cloud, HA reports the delay. Sending the command manually through services results in an immediate execution without delay.
As I have observed only scripts are delayed.

The script I want to run is below.

What version of Home Assistant Core has the issue?

2023.5.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Broadlink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/broadlink/

Diagnostics information

No response

Example YAML snippet

alias: Zsaluziák le naphoz
sequence:
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: fenti_zsaluzia
      command: down
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: balalso_zsaluzia
      command: down
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: jobbalso_zsaluzia
      command: down
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: fenti_zsaluzia
      command: up
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: fenti_zsaluzia
      command: stop
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - delay:
      hours: 0
      minutes: 0
      seconds: 14
      milliseconds: 0
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: balalso_zsaluzia
      command: up
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: jobbalso_zsaluzia
      command: up
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: balalso_zsaluzia
      command: stop
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
  - service: remote.send_command
    data:
      num_repeats: 1
      delay_secs: 0.4
      hold_secs: 0.1
      device: jobbalso_zsaluzia
      command: stop
    target:
      device_id: 24e9f4b18b1767607ec2baecffd0e785
mode: single
icon: mdi:sun-thermometer

Anything in the logs that might be useful for us?

(script.zsaluziak_le_naphoz) turned on
Távirányítás: Send Command Broadlink RM Pro
4 seconds later
Távirányítás: Send Command Broadlink RM Pro
5 seconds later
Távirányítás: Send Command Broadlink RM Pro
5 seconds later
Delay for 30 seconds
30 seconds later
Távirányítás: Send Command Broadlink RM Pro
4 seconds later
Távirányítás: Send Command Broadlink RM Pro
5 seconds later
Delay for 14 seconds
14 seconds later
Távirányítás: Send Command Broadlink RM Pro
5 seconds later
Távirányítás: Send Command Broadlink RM Pro
3 seconds later
Távirányítás: Send Command Broadlink RM Pro
5 seconds later
Távirányítás: Send Command Broadlink RM Pro
Finished at 2023. május 29. 13:56:26 (runtime: 85.15 seconds)

Additional information

I have the same script created in broadlink cloud app and the delays are much smaller. Around 1 second. HA is adding extra delay to the script

@home-assistant
Copy link

Hey there @Danielhiversen, @felipediel, @L-I-Am, mind taking a look at this issue as it has been labeled with an integration (broadlink) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of broadlink can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign broadlink Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


broadlink documentation
broadlink source
(message by IssueLinks)

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants