oops sorry checking …
Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy
thanks! yep never expected lux to be decimal. will truncate and use the number as integer that should fix it.
if i were to push a fix would you be able to give it a try please? i dont have a way to test the fix so hesitant to push the fix and leave it on githuib without validating it works.
want to announce who came home or left? check the settings in rooms manager:
EDIT: yes the &
is in a funky place in both the example announcements. just wanted to show that the & could be placed anywhere in the message not just at the start or the end.
just pushed to github … thanks.
EDIT: please also check the IDE logs to confirm there are no exceptions thrown.
next feature i am considering adding is to maintain room temperature. so i have a bunch of window ACs for rooms in the house. what that lets me do is to control room ACs to individual preference.
to automate that this would allow adding the following settings per room:
- AC switch
- temperature sensor for room (already available in general settings would move it here)
- temperature sensor for outside (if available)
- temperature to maintain when room is occupied or engaged or asleep
- night mode
- temperature to maintain during night mode (defaults to -1 degree if not specified and night mode is specified)
- toggle to enable lowering or raising temperature by incremental 0.5 degree for steps of 10 degree when outside temperature < 70 or > 90
thoughts?
power dropping should reset the room back to checking if that was the only thing keeping the room engaged.
please give it a try and let me know if that does not work.
OK, updated. But there is an error:
error java.lang.ArrayIndexOutOfBoundsException
Also, the lux showing in the Room is saying 14.6 but these are the readings from the zooz sensor.
illuminance: 33.57 lx
temperature: 19.45 C
humidity: 19.84 %
battery: 30 %
motion: active
checkInterval: 86700
tamper: clear
lastCheckin: 12/18/2017 08:25:42 AM
lastUpdate: 12/17/2017 06:03:00 PM
pendingChanges: 7
primaryStatus: active
secondaryStatus:
pLight: 64.28 %
lxLight: 33.57 lx
firmwareVersion: 16.9
Preferences (edit)
Name
ok. could you please share the logs for the room before and after the exception?
EDIT: also was there a line like this shown in the log?
lux from device: 40.34 | rule lux threshold: 30
added another debug statement also. if you havent started running the test again please update from github then try.
thank you.
Here is the log. There isn’t any lux line.
Logs
ec157841-7a72-463c-a821-2903cedd9a03 12:48:32 PM: debug motionInactiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:47:55 PM: debug Master Bedroom unschedule calling class: motion active handler
ec157841-7a72-463c-a821-2903cedd9a03 12:47:55 PM: debug motionActiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:47:24 PM: error java.lang.ArrayIndexOutOfBoundsException
ec157841-7a72-463c-a821-2903cedd9a03 12:47:24 PM: debug updateIndicators
ec157841-7a72-463c-a821-2903cedd9a03 12:47:22 PM: debug scheduleToTime
ec157841-7a72-463c-a821-2903cedd9a03 12:47:22 PM: debug scheduleFromTime
ec157841-7a72-463c-a821-2903cedd9a03 12:47:22 PM: debug scheduleFromToTimes
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug turnOnAndOffSwitches
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug updateSwitchAttributesToStateAndSubscribe
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug updateRulesToState
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug updateRoom
ec157841-7a72-463c-a821-2903cedd9a03 12:47:21 PM: debug no adjacent rooms
ec157841-7a72-463c-a821-2903cedd9a03 12:47:16 PM: debug updateRulesToState
ec157841-7a72-463c-a821-2903cedd9a03 12:47:16 PM: debug pageAutoLevelSettings
ec157841-7a72-463c-a821-2903cedd9a03 12:46:57 PM: error java.lang.ArrayIndexOutOfBoundsException
ec157841-7a72-463c-a821-2903cedd9a03 12:46:57 PM: debug updateIndicators
ec157841-7a72-463c-a821-2903cedd9a03 12:46:55 PM: debug scheduleToTime
ec157841-7a72-463c-a821-2903cedd9a03 12:46:55 PM: debug scheduleFromTime
ec157841-7a72-463c-a821-2903cedd9a03 12:46:55 PM: debug scheduleFromToTimes
ec157841-7a72-463c-a821-2903cedd9a03 12:46:54 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 12:46:53 PM: debug turnOnAndOffSwitches
ec157841-7a72-463c-a821-2903cedd9a03 12:46:53 PM: debug updateSwitchAttributesToStateAndSubscribe
ec157841-7a72-463c-a821-2903cedd9a03 12:46:53 PM: debug updateRulesToState
ec157841-7a72-463c-a821-2903cedd9a03 12:46:53 PM: debug updateRoom
ec157841-7a72-463c-a821-2903cedd9a03 12:46:53 PM: debug no adjacent rooms
ec157841-7a72-463c-a821-2903cedd9a03 12:46:48 PM: debug updateRulesToState
ec157841-7a72-463c-a821-2903cedd9a03 12:46:40 PM: debug rule number page 1
ec157841-7a72-463c-a821-2903cedd9a03 12:46:39 PM: debug updateRulesToState
ec157841-7a72-463c-a821-2903cedd9a03 12:46:37 PM: debug updateRulesToState
thanks. did the error show soon as you saved the room?
could you please update from github then give it a try?
OK I updated again. Here are the logs. There isn’t an error this time but the lights came on. Lux reading in the Room is showing 0.
ec157841-7a72-463c-a821-2903cedd9a03 12:58:42 PM: debug motionInactiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug switchesOnOff
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug Master Bedroom executed rule no: 1
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug lux from device: 0 | rule lux threshold: 10
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug getIntfromStr - mayOrMayNotBeDecimal: 36.99
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug turnOnAndOffSwitches
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug getIntfromStr - mayOrMayNotBeDecimal: 36.99
ec157841-7a72-463c-a821-2903cedd9a03 12:58:41 PM: debug luxEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug Master Bedroom unschedule calling class: motion active handler
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug motionActiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug switchesOnOff
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug Master Bedroom executed rule no: 1
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug lux from device: 0 | rule lux threshold: 10
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug getIntfromStr - mayOrMayNotBeDecimal: 27.46
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug Master Bedroom unschedule calling class: handle switches
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug busy on
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug howMany: 3 | gapBetween: 450 | busyCheck: 3 | isBusy: false | newState: null
ec157841-7a72-463c-a821-2903cedd9a03 12:58:07 PM: debug Master Bedroom room state - old: vacant new: occupied
ec157841-7a72-463c-a821-2903cedd9a03 12:57:01 PM: debug isAnySwitchOn
ec157841-7a72-463c-a821-2903cedd9a03 12:57:01 PM: debug switchOffEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 12:57:01 PM: debug whichSwitchesAreOn
ec157841-7a72-463c-a821-2903cedd9a03 12:57:01 PM: debug switches2Off
ec157841-7a72-463c-a821-2903cedd9a03 12:57:00 PM: debug Master Bedroom unschedule calling class: handle switches
ec157841-7a72-463c-a821-2903cedd9a03 12:57:00 PM: debug howMany: 2 | gapBetween: 384 | busyCheck: 3 | isBusy: false | newState: null
ec157841-7a72-463c-a821-2903cedd9a03 12:57:00 PM: debug Master Bedroom room state - old: occupied new: vacant
ec157841-7a72-463c-a821-2903cedd9a03 12:56:51 PM: debug motionInactiveEventHandler
Here is the logs.
ec157841-7a72-463c-a821-2903cedd9a03 3:31:36 PM: debug motionInactiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 3:31:03 PM: debug switchOnEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 3:31:01 PM: debug switchOnEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug Master Bedroom unschedule calling class: motion active handler
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug motionActiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug lux from device: 23 | rule lux threshold: 10
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug intValue: 23
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug str: 23
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug getIntfromStr - mayOrMayNotBeDecimal: 23.37 | indexOf: 2
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug Master Bedroom unschedule calling class: handle switches
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug howMany: 1 | gapBetween: 8891 | busyCheck: 3 | isBusy: false | newState: null
ec157841-7a72-463c-a821-2903cedd9a03 3:31:00 PM: debug Master Bedroom room state - old: vacant new: occupied