Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy

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.

thanks @BorrisTheCat

@mike.maxwell

speaker device = capability.audioNotification
speech device  = capability.speechSynthesis
media device   = capability.musicPlayer

wondering what folks think of the following feature?

vacation mode where rooms occupancy state is replayed with some randomization from same day last week.

  • great idea!
  • sure
  • ehh
  • nah
  • bad idea!

0 voters

EDIT: should have selected show who voted checkbox … otherwise its out of context. :slight_smile:

if you voted ehh mind sharing why you are ehh on the vacation mode feature?

thank you.

bangali,

How would i set vacant occupancy by pressing a button in Rules Machine (outside of Rooms Manager). I have a set of events that are triggered in RM, and i'd rather do everythign there.

Also, I'd still like it in the Maintain Rules section for a trigger for the rule to be if a switch is on/off. You previously asked for my usage scenario.........I want the room to turn certain lights on if engaged (if a TV is on) and other lights (rules) if the room is engaged but TV is off.

Moreover, that issue i had with rules not triggering after midnight was probably caused by my hub having a DB corruption, which support tells me has now been fixed. I'm not at home for a few days to check, but i suspect its all good now.

Thanks!

not sure what you mean by pressing a button in rules machine. you are not physically pushing the button … there is a rule that generates a button press?

there is no distinction between engaged state when engaged with power vs when engaged with contacts. I could expose power in the rules to support this but currently no way. sorry.

glad to hear your DB got fixed. :slight_smile:

Let me rephrase the question. How would i change the status of a room by pressing a button? I want to press a physical button and change the status of all my rooms to night. I can't seem to find how to do it on rule machine. Rule machine allows for on/off only.

do you mean asleep? if yes please set that button as the asleep button in asleep settings for those rooms.

Yes, but I want to do it from Rules machine, as I have a whole stack of other things going on. How do change occupancy of a room from a rule within Rules machine.

both webcore and rules machine should see the room device as a push button device and allow pushing button 8 which corresponds to the asleep state.

Ahh, thanks. Perfect.

1 Like

added support for both power value check and check for switches on and off for matching rules to execute. so if you want to set room lights to a certain setting when TV switch is on and to another setting when TV switch is off you will be able to do that thru rules.

will be in next release.

1 Like

Thanks so much. Perfect.

1 Like