Assistance with basic Scene - Sonos Say

Hi,

I wanted to create a Scene that would run once every hour, on the hour, which would utilise the Sonos Say capability to report the position of the sun to me (this is me preparing for the installation of blinds).

Firstly, is there a way to create a Scene trigger that makes the Scene run at 08:00, 09:00, 10:00, 11:00, 12:00 to, say, 20:00?

I have a Scene that can run “Every 1 Hours”, which is good, but its interval is then set by the time of creation, so 07:53, 08:53, 09:53 etc… What I would like is “Every 1 Hours Starting at 08:00”.

Secondly, can my Scene just consist of a Sonos Say command? It doesn’t seem to do anything at all, except report “Success” :wink: when I manually click on run in the Vera Edge admin. console. However, if I run the exact same code in the Apps - Develop Apps section it works, I can hear the ‘announcement’.

[font=courier]luup.call_action (“urn:micasaverde-com:serviceId:Sonos1”,“Say”,{Text=“Heliotrope report”,Language=“en”,Volume=40},4)[/font]

So, do I need to actually do something with a Device in a Scene, or am I able to just have a Scene triggered and then have code in the “Also, execute the following Luup code” section? I note the word “also”. ???

If I put the line of code into a Manual Scene then the announcement works when I click on the run icon. Unsure why that would be different to a Scheduled Scene with the same code, just no Device Actions.

Firstly, is there a way to create a Scene trigger that makes the Scene run at 08:00, 09:00, 10:00, 11:00, 12:00 to, say, 20:00?

I have a Scene that can run “Every 1 Hours”, which is good, but its interval is then set by the time of creation, so 07:53, 08:53, 09:53 etc… What I would like is “Every 1 Hours Starting at 08:00”.

That’s what happens with scene schedules - they get timed from the last Luup restart. The simplest solution would be to use the PLEG plugin rather than a scene. PLEG’s interval Schedules synchronize to exact times so a one-hour interval will fire on the hour. See PLEG Basics for an introduction.

Thank you, I’ll look into PLEG. :slight_smile: