Author Topic: Add sonos Alarmclock features to plugin  (Read 2994 times)

Offline hek

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 714
  • Karma: +60/-1
Add sonos Alarmclock features to plugin
« on: January 16, 2013, 10:35:53 am »
Would be super-nice if we could get/set alarmclock feature of the sonos through the plugin aswell.

This feature could be used to fetch wakeup time to trigger Wakeupramp of lights, turn on coffemachine in the morning etc.
...or the other way around.. we could set Sonos wakeup time automatically from google calendar plugin etc...

It is actually already possible to start a radiostation in the morning by using a a scheduled scene instead... bypassing the Alarmclock feature in Sonos. But I imagine its better to releave the Vera from this duty if it is possible. Also the Vera can be turned of and alarm still works.

urn:upnp-org:serviceId:AlarmClock



Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Add sonos Alarmclock features to plugin
« Reply #1 on: January 16, 2013, 10:50:43 am »
This is why I added the Scene trigger to indicate Play status.  You can attach things to be done when it changes to Plays, Stopped, etc.  You can't determine from that if it was triggered from an Alarm though...

Setting alarms via Vera would be clunky (compared to the native interface), but I could understand the request for a Luup API.

If you want to write the changes, and Doc, we can add it in.

Offline hek

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 714
  • Karma: +60/-1
Re: Add sonos Alarmclock features to plugin
« Reply #2 on: January 16, 2013, 11:00:47 am »
We would need a Sonos speaker in our bedroom first  :D

Just realized it was possible to access AlamClock feature and wanted to write this down for the future enhancements list. And yes.. I might add the feature when we start using the alarm function.

...My wifes radioalarm clock is a bit old and flaky... Play:3 is small and nice... just wish it had a display with the actual time aswell :)

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Add sonos Alarmclock features to plugin
« Reply #3 on: January 16, 2013, 11:04:23 am »
No worries.  I added the scene hook because we have a Connect AMP in the bedroom that we use only as an Alarm clock, and I wanted it to turn on the hot water record pump.

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Add sonos Alarmclock features to plugin
« Reply #4 on: January 16, 2013, 11:05:52 am »
Nice post/thread on LinkedIn, BTW...

Offline hek

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 714
  • Karma: +60/-1
Re: Add sonos Alarmclock features to plugin
« Reply #5 on: January 16, 2013, 11:59:51 am »
Ah... you're member of the z-wave group aswell. Please add me as "friend" or whatever its called in the linkedin world....