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

URL in Series of URL is triggered twice #124

Open
b1t-hunter opened this issue Dec 1, 2023 · 0 comments
Open

URL in Series of URL is triggered twice #124

b1t-hunter opened this issue Dec 1, 2023 · 0 comments

Comments

@b1t-hunter
Copy link

I would like to have a switch that triggers the execution of requests in sequence. In my example, I want to say something over multiple Sonos speakers using the sonos-http-api. Following sequence scheme is used:

[
    "<Request1>", 
    "delay(4000)",
    "<Request2>"
]

I am using the "multipleUrlExecutionStrategy": "series" and would expect that each request in the series is only executed once. However, when the switch is triggered, Request1 is executed twice, once immediately and once after the delay. Request2 is executed after the delay time, so that both requests are executed simultaneously after 4s. Am I misunderstanding the series with delays concept or is this a bug?

Version

  • homebridge: v1.7.0
  • homebridge-http-switch: v0.5.36

Actual Configuration

{
    "accessory": "HTTP-SWITCH",
    "name": "Say Something",
    "switchType": "stateless",
    "timeout": 8000,
    "debug": true,
    "multipleUrlExecutionStrategy": "series",
    "onUrl": [
        {
            "url": "http://localhost:5005/Room1/say/Hello%20in%20Room1"
        },
        "delay(4000)",
        {
            "url": "http://localhost:5005/Room2/say/Hello%20in%20Room2"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant