Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy


#546

no worries. if you dont mind please take a look at the user logs. if there is any there thats not a jquery error … probably something i need to fix. :slight_smile:

did you install the rooms occupancy driver as well?


#547

It seems I forgot to install .95 and also failed to delete .85 of the device driver. That could be my current problem. I'll setup another room and see if I get errors.

Thank YOU


#548

no worries … just update the new driver code to the latest and save it along with saving the latest from both app codes and everything should be good … no need to delete anything. :slight_smile:


#549

@mike.maxwell Is this being worked on?

Or @bangali is there another way of allowing the SONOS device to be able to do notification messages within hubitat?


#550

@BorrisTheCat till HE supports sonos as a speaker device use it as a media device for announcements?


#551

No worries, what's the limitations with that? I didn't think it worked when i tried

Edit: yeah I get this error

[app:8](http://192.168.1.78/logs#app8)2018-10-31 19:47:59.470:errorjava.lang.IllegalArgumentException: Command 'playTrackAndResume' is not supported by device. on line 799 (contactClosedEventHandler)


#552

that was for speaker device or media device?


#553

media player


#554

according to this both playTrackAndRestore and playTrackAndResume should be supported:

so not sure why playTrackAndResume would throw an error. for the device please share a screen shot of the device details.


#555

this ?


#556

up for editing a line of code in rooms manager? :slight_smile:


#557

yep just point and ill shoot :slight_smile:


#558

change that:

musicPlayers.playTrackAndResume(str, vol)

to:

musicPlayers.playTrackAndRestore(str, vol)

save and try.


#559

no logs or errors and it didn't work but it did play the message that was last spoken or the last message in its track data.


#560

but does not resume the playing track?


#561

It resumes the existing playing track and that's it but doesn't speak your message.

ill try PlayTextandRestore


#562

ahh … the passed in string is not spoken.

change that:

musicPlayers.playTrackAndResume(str, vol)

to:

musicPlayers.playTextAndRestore(vol, str)

save and try.

EDIT: the params are reversed on this one.


#563

already done and tried it, it does work but it doesn't restore the music i had playing for the test.

Edit: it does increase the volume speak then restore the volume though


#564

while the music is playing please share the state variables for sonos.


#565
### State Variables

* restoreTrack :  **0**
* restoreLevel :  **0**
* restoreURI :  **0**
* model :  **Sonos PLAY:3**
* uri :  **x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0**
* trackData : **{"audioSource":"Unknown","station":null,"name":null,"artist":null,"album":null,"trackNumber":"1","status":"playing","level":"37","mute":"unmuted","uri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","trackUri":"hls-radio://http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/llnw/bbc_radio_one.m3u8","transportUri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","enqueuedUri":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0","metaData":"BBC Radio 1object.item.audioItem.audioBroadcastSA_RINCON65031_","trackMetaData":"x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0/getaa?s=1&u=x-sonosapi-stream%3as24939%3fsid%3d254%26flags%3d8224%26sn%3d0x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0object.item"}**