Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy

sigh … it was late. good.

please tell her - welcome.

glad to hear you got it working. what was the room state pre-locked? I can probably check if the room should be engaged based on current state of the room devices.

Bangali,

Found an error, or maybe user error. I've been not able to get my rules under "maintain rules" to turn on. Any room.

I checked dozens of times. Everything was right.
Sunset -30 to Sunrise +30 (did not work, it's 1am here)

Then, I changed it to 12:01am to Sunrise +30. (it worked).

I changed back, didnt work. I updated from 0.90.0 to 0.90.4, and still didnt work. I changed the times to 12:01am to sunset, and it worked again.

I'm on the Hubitat version 1.1.5.113

(I updated hub firmware today, but there does seem to be newer version. Had issues updating hub, so wont be doing any more right now, 1am!)

first … please go to sleep.

later today … please reset the rule back to sunset -30 to sunset +30 and check if it works at sunset -30. lets go from there.

i have a few rules using sunset/sunrise all seem to be working fine.

EDIT: also check what is the sunrise/sunset value as shown in the location for the hub.

image

@bangali Little question, when my room changes from asleep to checking (also tried straight to vacant), the lights turn full on. Any idea if thats a setting issue or something else? I'm changing the state with a virtual switch.

what does your checking settings look like?

It didnt do it before the update

nothing changed in the last few updates for the asleep state.

may be the motion sensor is getting immediately triggered so its getting set to occupied instead of going to checking?

1 Like

Bangali,

Any thoughts as to why the sunset to sunrise is not working here? By the way, it's set correctly on locations page, as per your question a few posts up.

Also, the locked room status on open door (my question even further up: Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy) doesnt work, because it leaves the room in a locked state when the door shuts again.

please share the view all settings for the room.

Hi @bangali

I have set up announcements using the app with a SONOS speaker and i'm on the lastest hub firmware but im getting this error.

2018-10-06 17:44:38.010:errorjava.lang.IllegalArgumentException: Command 'playTrackAndResume' is not supported by device. on line 841 (contactClosedEventHandler)

this is supposed to be supported on 1.1.5.115

i see that playTrackAndResume is supported for sonos starting on 1.1.5. since multiple audio devices are supported by rooms manager - you selected the sonos under media player - yes?

is this from the media player log?

yes and No it was in RM

Edit actually let me check on the 2nd yes

thanks.

EDIT: anything in the media player log?

@bravenel wondering why playTrackAndResume is not working on 1.1.5? this is the format of the command being sent to the device which is what i also use on ST. is the syntax different on HE?

	musicPlayers.playTrackAndResume(string, volume)

thank you.

all times the volume never changes as it should.

absolutely nothing when its set as a media player even with logs on only errors in RM

as a speech device no errors in RM and it does the speech but does not restore logs are as follows
dev:672018-10-06 23:39:41.693:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.692:tracerestoreLevel:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.690:tracerestoreTrack:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.689:tracestatus changed:stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.688:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.675:infoDining Room Sonos is stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.671:debugenqueuedUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.669:debugtrackUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:41.666:debugtrackNumber: 1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.849:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.847:tracerestoreLevel:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.845:tracerestoreTrack:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.842:tracestatus changed:playing

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.840:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.837:infoDining Room Sonos playing: Hope you have a great time Steven, Steven has evacuated. by Hubitat from TTS

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.826:infoDining Room Sonos is playing

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.822:debugenqueuedUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.820:debugtrackUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.817:debugtrackNumber: 1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.506:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.504:tracerestoreLevel:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.502:tracerestoreTrack:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.494:tracestatus changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.492:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:38.490:infoDining Room Sonos audio level is 6%

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.934:debugnot parsed:

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.672:debugnot parsed:

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.601:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.600:tracerestoreLevel:6

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.598:tracerestoreTrack:1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.597:tracestatus changed:stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.596:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.588:infoDining Room Sonos is stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.585:debugenqueuedUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.584:debugtrackUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:37.583:debugtrackNumber: 1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.536:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.534:tracerestoreLevel:6

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.532:tracerestoreTrack:1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.530:tracestatus changed:playing

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.528:traceuri changed:http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.524:infoDining Room Sonos playing: Hope you have a great time Steven, Steven has evacuated. by Hubitat from TTS

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.496:infoDining Room Sonos is playing

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.493:debugtransportUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.492:debugenqueuedUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.489:debugtrackUri: http://192.168.1.78:8080/tts/950d61b17b6a123d8f71926b42cc6021.mp3

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.487:debugtrackNumber: 1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.307:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.305:tracerestoreLevel:6

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.303:tracerestoreTrack:1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.300:tracestatus changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.298:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:34.295:infoDining Room Sonos audio level is 6%

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.853:debugnot parsed:

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.760:debugnot parsed:

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.756:tracelevel changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.755:tracerestoreLevel:6

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.753:tracerestoreTrack:1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.752:tracestatus changed:stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.746:traceuri changed:false

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.724:infoDining Room Sonos is stopped

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.721:debugenqueuedUri: x-sonosapi-stream:s24939?sid=254&flags=8224&sn=0

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.720:debugtrackUri: hls-radio://http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/llnw/bbc_radio_one.m3u8

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.719:debugtrackNumber: 1

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.687:debugnot parsed:

[dev:67](http://192.168.1.78/logs#dev67)2018-10-06 23:39:33.652:debugnot parsed:

ok. don’t think the speech device support volume changing.

let’s wait for @bravenel or someone else to respond on why playTrackAndResume is throwing an error.

As you can see, our sonos driver doesn't have this command at this time.

per 1.1.5 update … thought its supported?

Continuing the discussion from Hub Update 1.1.5:

@mike.maxwell also thought PlayTextAndRestore was for audioNotification devices and selecting Sonos as a capability.audioNotification device does not seem to work.

@BorrisTheCat could you please confirm this :point_up_2:t3: by trying to select the Sonos as a speaker device in ANNOUNCE BY SPEAKER SETTINGS in rooms manager?

thanks.

I can confirm that it won't let you select a SONOS as a speaker device. It only let's you select it as a speech device and a media device. In ST I can select it as a speaker.