Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy


#526

please try triggering motion again. still same error?

EDIT: if same error please go to the room from apps list and save the settings again. then try once more please.


#527

I saved the settings and received the following logs

dev:16362018-10-28 15:16:17.758:errorgroovy.lang.MissingMethodException: No signature of method: dev1540751396921778587043.setupTimer() is applicable for argument types: (java.lang.Integer) values: [0] (setupTimer)

[dev:1636](http://192.168.7.201/logs#dev1636)2018-10-28 15:16:17.737:errorgroovy.lang.MissingMethodException: No signature of method: dev1540751396921778587043.setupTimer() is applicable for argument types: (java.lang.Integer) values: [0] (setupTimer)

[dev:1636](http://192.168.7.201/logs#dev1636)2018-10-28 15:15:53.852:errorgroovy.lang.MissingMethodException: No signature of method: dev1540751396921778587043.vacant() is applicable for argument types: (java.lang.Boolean) values: [false] Possible solutions: vacant(), wait(), kaput(), any(), wait(long), print(java.lang.Object) (vacant)

[dev:1636](http://192.168.7.201/logs#dev1636)2018-10-28 15:15:53.772:errorgroovy.lang.MissingMethodException: No signature of method: dev1540751396921778587043.setupTimer() is applicable for argument types: (java.lang.Integer) values: [0] (setupTimer)

[dev:1636](http://192.168.7.201/logs#dev1636)2018-10-28 15:15:53.685:errorgroovy.lang.MissingMethodException: No signature of method: dev1540751396921778587043.setOnStateC() is applicable for argument types: () values: [] (setOnStateC)

#528

strange. you have saved the driver code and the code for both the apps?

can you please share the view all settings for the room?


#529

ROOM OCCUPANCY DEVICE:

Room child device ・  ・  ・  ・  ・   Child device OK

ROOM SENSOR SETTINGS:

Motion sensors ・  ・  ・  ・  ・  ・   [Office Motion Sensor 1, Office Sensor 2]
Trigger motion:
Which no motion ・  ・  ・  ・  ・  ・  Last Motion Active
Room buttons:
Rotate thru states:
Presence sensors:
Lux sensor:
Power device:
Humidity sensor:
Music player:
Window shades:

OCCUPIED SETTINGS:

Occupied button type:
Button device:
Button number:
Only sets:
Switches:
Motion timeout ・  ・  ・  ・  ・  ・   180 seconds

ENGAGED SETTINGS:

Busy check ・  ・  ・  ・  ・  ・  ・  ・ Medium traffic
Busy with motion ・  ・  ・  ・  ・  ・ true
Engaged button type:
Button device:
Button number:
Only sets:
Presence action:
Presence continuous:
Engaged with music:
Switches:
Engaged power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Reset engaged state:
Contact sensors:
Outside door:
Only sets:
Require motion ・  ・  ・  ・  ・  ・   450 seconds
Switches:
Reset no checking:
Engaged overrides:

CHECKED SETTINGS:

Dim timer ・  ・  ・  ・  ・  ・  ・  ・  5 seconds
By level:
To level:
Below lux:
No restore:

VACANT SETTINGS:

Vacant button type:
Button device:
Button number:
Switches ・  ・  ・  ・  ・  ・  ・  ・   [Office Light]
Pause speaker:

ASLEEP SETTINGS:

Asleep sensor:
Asleep button type:
Button device:
Button number:
Only sets:
Switches:
Asleep power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Asleep timeout:
Reset no checking:
Reset sleep state:
Asleep overrides:

Night switches:
Set level:
Set color temp:
Night motion sensor:
Motion timeout:
Light on when:
Night button type:
Button device:
Button number:
Button actions:

LOCKED SETTINGS:

Switches:
When switch turns on:
Locked power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Locked contact:
Contact closes:
Turn off switches:
Locked timeout:
Locked overrides:

AUTO LEVEL SETTINGS:

Min level:
Max level:
Wake time:
Sleep time:
Fade up wake time:
Fade up wake before:
Fade up wake after:
Fade dn sleep time:
Fade dn sleep before:
Fade dn wake after:
Auto color temp:
Min kelvin:
Max kelvin:
Fade up wake time:
Fade up wake before:
Fade up wake after:
Fade dn sleep time:
Fade dn sleep before:
Fade dn wake after:

TEMPERATURE SETTINGS:

Temperature sensor ・  ・  ・  ・  ・  [Office Motion Sensor 1, Office Sensor 2]
Manage temperature:
Use thermostat:
Room thermostat:
Temperature delta:
AC switch:
Heater switch:
Check presence:
Contacts closed:
Thermostat override:
Outdoor Temperature:
Adjust with outdoor:
Room vents:
Vents delayed off:
Fan switch:

HOLIDAY LIGHT SETTINGS:

Holiday lights:

RULE SETTINGS:

Rules:
	1: Mode=[Babysitter, Cleaners, Day, Party, Vacation] State=[engaged, occupied] Type=Execution ON=[Office Light]
	2: State=[asleep, vacant] Type=Execution OFF=[Office Light]

ADJACENT SETTINGS:

Adjacent rooms:
Motion check:
Pathway lighting:

ANNOUNCEMENT SETTINGS:

Speakers:
Speech devices:
Media players:
Ask Alexa queues:
Volume:
Variable volume:
From hour:
To hour:
Speakers:
From hour:
To hour:
Announce door:
With speaker:
With color:
Announce door stays:
With speaker:
With color:
Announce window:
With speaker:
With color:
In modes:

GENERAL SETTINGS:

Away modes:
Pause modes:
Days of week:
Use celsius:
All switches off:
Dim switches to off:
Execute on state:
Which state:
Icon URL:

#530

thanks. did you install both rooms manager app and rooms child app code?

its almost as if the driver code is not installed.


#531

I presume so.

I Created the rooms manager app from the github

I created the rooms manager child from the github

I created the rooms manager device from the github

I went to the HE portal and installed the app ‘rooms manager’

There is no ‘rooms manager child’ app to install so I presumed (like a lot of apps), the child app installed with each room


#532

did you create rooms manager device or the rooms occupancy device?


#533

My pardons, rooms occupancy


#534

no worries just wanted to confirm.

when you go to drivers code you see rooms occupancy listed like so?


#535

and if you click on bangali : rooms occupancy … how many lines of code is there?

BRB


#536

.... and we are onto something


#537

are you using the latest code off github? what is the version number at top of driver code?

may have used the ST version instead of the HE version? here is the HE version:


#538

... and I’m in business.

Strange, I just installed the app this morning. No idea how I got an old version of the device code.

Thank you for your help.


#539

cool!

no worries … good to hear its all working now.

you are welcome.


#540

One issue I'm continuing to have, and I've waited long enough to say for sure that it's a consistent issue, has to do with my one room that has a time-based restriction on a rule. My living room lights are set to turn on when occupied or engaged but only after sunset and before sunrise. It seems to work consistently in the evenings (after sunset), but it does not ever work in the mornings when I'm up and moving around before sunrise. Below are my list of settings for the room.

ROOM OCCUPANCY DEVICE:

Room child device ・  ・  ・  ・  ・   Child device OK

ROOM SENSOR SETTINGS:

Motion sensors ・  ・  ・  ・  ・  ・   [Living Room Motion Sensor]
Trigger motion:
Which no motion ・  ・  ・  ・  ・  ・  Last Motion Inactive
Room buttons:
Rotate thru states:
Presence sensors:
Lux sensor:
Power device:
Humidity sensor:
Music player:
Window shades:

OCCUPIED SETTINGS:

Occupied button type:
Button device:
Button number:
Only sets:
Switches:
Motion timeout:

ENGAGED SETTINGS:

Busy check ・  ・  ・  ・  ・  ・  ・  ・ No traffic check
Busy with motion:
Engaged button type:
Button device:
Button number:
Only sets:
Presence action:
Presence continuous:
Engaged with music:
Switches:
Engaged power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Reset engaged state:
Contact sensors:
Outside door:
Only sets:
Require motion:
Switches:
Reset no checking:
Engaged overrides:

CHECKED SETTINGS:

Dim timer:
By level:
To level:
Below lux:
No restore:

VACANT SETTINGS:

Vacant button type:
Button device:
Button number:
Switches:
Pause speaker:

ASLEEP SETTINGS:

Asleep sensor:
Asleep button type:
Button device:
Button number:
Only sets:
Switches:
Asleep power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Asleep timeout:
Reset no checking:
Reset sleep state:
Asleep overrides:

Night switches:
Set level:
Set color temp:
Night motion sensor:
Motion timeout:
Light on when:
Night button type:
Button device:
Button number:
Button actions:

LOCKED SETTINGS:

Switches:
When switch turns on:
Locked power:
From time type:
Time from:
Time from offset:
To time type:
Time to:
Time to offset:
From vacant:
Stays below:
Locked contact:
Contact closes:
Turn off switches:
Locked timeout:
Locked overrides:

AUTO LEVEL SETTINGS:

Min level:
Max level:
Wake time:
Sleep time:
Fade up wake time:
Fade up wake before:
Fade up wake after:
Fade dn sleep time:
Fade dn sleep before:
Fade dn wake after:
Auto color temp:
Min kelvin:
Max kelvin:
Fade up wake time:
Fade up wake before:
Fade up wake after:
Fade dn sleep time:
Fade dn sleep before:
Fade dn wake after:

TEMPERATURE SETTINGS:

Temperature sensor ・  ・  ・  ・  ・  [Living Room Motion Sensor]
Manage temperature:
Use thermostat:
Room thermostat:
Temperature delta:
AC switch:
Heater switch:
Check presence:
Contacts closed:
Thermostat override:
Outdoor Temperature ・  ・  ・  ・  ・ Weather (Home)
Adjust with outdoor:
Room vents:
Vents delayed off:
Fan switch:

HOLIDAY LIGHT SETTINGS:

Holiday lights:

RULE SETTINGS:

Rules:
	1: Mode=[Home] State=[engaged, occupied] From=Sunset -15 To=Sunrise +15 Type=Execution ON=[Bay Window Lights, Living Room Lamps]

ADJACENT SETTINGS:

Adjacent rooms:
Motion check:
Pathway lighting:

ANNOUNCEMENT SETTINGS:

Speakers:
Speech devices:
Media players:
Ask Alexa queues:
Volume:
Variable volume:
From hour:
To hour:
Speakers:
From hour:
To hour:
Announce door:
With speaker:
With color:
Announce door stays:
With speaker:
With color:
Announce window:
With speaker:
With color:
In modes:

GENERAL SETTINGS:

Away modes ・  ・  ・  ・  ・  ・  ・  ・ [Away]
Pause modes ・  ・  ・  ・  ・  ・  ・   [Away, Sleep]
Days of week:
Use celsius:
All switches off ・  ・  ・  ・  ・  ・ true
Dim switches to off:
Execute on state:
Which state ・  ・  ・  ・  ・  ・  ・   occupied
Icon URL ・  ・  ・  ・  ・  ・  ・  ・   https://cdn.rawgit.com/adey/bangali/master/resources/icons/roomOccupancySettings.png

#541

i will get myself a room setup with the same values and give this a try. @mike was also saying rules with sunrise were not triggering after midnight. time to dig deeper.


#542

so for this vacation manager i have decided to make it its own child app instead of adding it to the rooms manager code. what this means is there will a third app you will need to install for this feature - rooms vacation.

it will be fully integrated with the rooms off course but i want to keep the code in its own source file because HE can be sensitive to file sizes. after cutting each of the source file sizes by 25% each didnt want to ramp those sizes back up again. :slight_smile:

probably going to release it this weekend so it can subscribe to and start collecting the rooms state date. with that out of the way will start work on actually getting the vacation replay code done.


#543

I was experiencing hub crashes, support pointed out to me that Rooms Occupancy was throwing a lot of errors. Not wanting to go through a difficult debug, I deleted everything. Reinstalled the latest code from GitHub and made a single room.

I'm seeing this error when there's an occupancy change:

Can you direct me to a resolution?

Mike


#544

thanks for reaching out.

could you please share those errors with me? broadly two things are possible:

  1. there is an issue with rooms code that i need to fix.
  2. there is an issue with HE platform code that HE needs to fix.

it would be good to figure out where the issue is … so whoever needs to get it fixed … gets it done. :slight_smile:

for the setupTimer(…) are you on the latest version of code from github?


#545

I didn't expect removing the app was going to fix my problems so I deleted it without even looking at the logs. It's been several days, running good. I tried the past log option but I don't get anything older than a day. Those few errors is all I have at this point. I'll be more diligent going forward.
I'm using the most recent versions.

***********************************************************************************************************************/

public static String version() { return "v0.95.0" }

and

***********************************************************************************************************************/

public static String version() { return "v0.95.0" }

Here's a sample of errors from tonight:

Thanks for everything you do.
Mike