Delayed action in a scene not run

Hello all ,

Running a vera 3 with version 5.622 and sonos version 1.3

Overall the sonos plugin is working fine , but i can’t stop the sonos anymore via vera.
Attached a screenshot of the scene ( The screenshot is with “pause” , but I slao tried the “stop”)

When I make a scene with an “immediate stop” the sonos stops playing the radio station.
When I make a scene with a play a radiostation and after some minutes stop playing ( as in the screenshot) , sonos starts immediately , but never stops.

I have tried it will all of my sonos , some hardwired and also the wifi ones , but all the same.

Anyone know’s what’s going on?

( oh , I updated the sonos speakers yesterday to the latest version , but before that is was the same)

Thanks,
Cor

No one ???

Can maybe someone try this as well?

Thanks,
Cor

I just tested with a “Stop” 2 minutes later and unfortunately I can confirm that the Stop action is never called !
That is another bug in the management of scenes by Vera !

Of course I also tested the Stop action in another scene with an immediate run and of course it works.

Thanks for confirming I didn’t do anything wrong.

Is this something which can be corrected?
If not , what would be the best way to circumnavigate this?

  1. 2 scenes ; 1 starting , and after x minutes starting the the stop-scene.
  2. using the harmony hub somehow, to start and stop the sonos, not sure how yet.
  3. maybe a better solution?

Thanks,
Cor

It would be interesting to check if it is the same with a Stop delayed only by for example 15 seconds.
Another thing to test is if the delayed Stop is called when the immediate action is not a Sonos action.

I will not loose my time with these tests as I don’t use Vera scenes anymore.
But let me know of your own results. If you conclude that is a bug in the plugin and not a general bug, I will search.

Yes, an alternative with 2 scenes would be a workaround.

That is indeed interesting.

I just tried:

Create a scene; play a radio station and 15 seconds later “stop” >> sonos did not stop.
Create a scene; Switch on a light in the house , 15 seconds later "stop “sonos” >> this does work! (sonos was started via the sonos app).

Wierd, what does this actually mean? something which can be fixed or do I need to improvise with 2 scenes or my logitech harmony :frowning:

Thanks,
Cor

That could mean that the first Sonos action in the scene could lock the full scene for a reason I ignore.

Can you try with PlayUri as first action and a delayed switch off light.
And try with a more basic Sonos action (short execution time) at first action like a Stop.
Let me know.

That is just unbelievable we discovered that only today !

One idea I have is that PlayUri should be run in a dedicated job, that is using rather than in the plugin.

But let me know first about your other results.

here my findings:

-created a scene: Play uri, 15 seconds later light on >>> works fine
-created a scene: stop sonos, 15 seconds later light on >> works fine ( sonos was started manually).

Your last message about and < run> i don’t understand.

Thanks,
Cor

Can you please do a last try, first stop and PlauURI 2 minutes later.

[quote=“Cor, post:9, topic:188247”]here my findings:

-created a scene: Play uri, 15 seconds later light on >>> works fine
-created a scene: stop sonos, 15 seconds later light on >> works fine ( sonos was started manually).[/quote]

So the first Sonos action does not lock a scene.
Maybe the problem is only with 2 Sonos actions in the same scene…

created a scene to stop the sonos and 2 minutes later “play uri” , this works fine as well.

Cor

[quote=“Cor, post:12, topic:188247”]created a scene to stop the sonos and 2 minutes later “play uri” , this works fine as well.

Cor[/quote]

OK I can try to change something. My idea is that the problem could be with Sonos actions taking time.
I let you know later if I can find a solution.

That would be awesome!

Thanks,
Cor

I tried different things but unsuccessfully :frowning: That looks like a bug in the Vera scene manager !

If your second action is on another device (a second Sonos), the action is run correctly.

I am sorry.

Well , okay , it is like it is.

Than I am going to do it with mulitple scenes.

A question than , Does anyone know how I should implement that?
1 scene to start playing , a second scene to stop after x minutes.
I do have somewhere some luup code to start another scene ina scene, but on the LUUP tab there is no time delay.

Thanks for the help,
Cor

Anyone can help me out how I can start from a scene another scene after x amount of minutes?

Thanks,
Cor

Late answer, but use a switch, or multi string value as a flag. Let that flag trigger the second scene, nut with a 2 min delay.

I run UI5 - Delays in Scenes dont work. Known bug.

I use lua in my scenes… example scene triggers, waits 30 seconds, plays Pandora:

luup.sleep(30000);

local AV_DEV = 53
local LS_SID = “urn:micasaverde-com:serviceId:Sonos1”

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “PlayURI”, {URIToPlay=“pndrradio:2587423987614944900?sn=2”, Volume=20},AV_DEV)