Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy

rooms
manager
occupancy
rules
automation

#323

Not a problem at all, been on your side of these things a few times myself.

Currently for my office and TV I have the outlets off, occupancy by motion turns them on. power greater than x keeps it “engaged”. when the computer sleeps or the TV shuts off, it goes back to an occupancy state for a bit. I’m sure I could add a piston to change the room’s state to engaged based on power usage, but would be cool to have it built into the app.

I didn’t install your app until yesterday, so I’ll still have to dig though the possibilities.


#324

got it. so add power level as an engaged state activation / deactivation mechanism just like switch on/off for engaged?

i was also thinking of adding power check to rules to allow rules to be built based on current power level.


#325

Yeah the power level for engaged would solve my need. Power level for the rules would also add some flexibility i hadn’t thought of. A rule for TV on would be pretty useful.


#326

this one i will add as if it is >= to value then engaged if < than value then move to checking then vacant. so it will be a single value.

in the rules it will allow selection of whether power should be >= or < than a power value in the rule for the rule to match.


#327

@bangali YAY…I’m sure its brilliant…now if I only had a speaker to use it :slight_smile:


#328

Yep, I am using the DTH for the zooz sensor.


#329

That is interesting! Will it work with multiple arrivals and departures at the same time?


#330

er … oops … incentive to get one? :slight_smile:


#331

ok.

could you please try this?


#332

off course. :slight_smile:


#333

This seems to be working now!:grinning:


#334

Sorry spoke too soon. Lux is at 100 and I have the setting in the room set for 30. Lights went on. :disappointed_relieved:


#335

ok and lux is reporting as 30 lux now instead of x %?

i am going to add a debug statement with this new version to log the value of lux as it is being returned so we can see what the app is getting back.


#336

Yes, the I have set the zooz to report in lux.


#337

would you please update from repo and let the rule run again then find this line in the log for that room and lets see what the values are:

lux from device: 0 | rule lux threshold: 4


#338

power level for engaged is now supported. my power meter just got replaced by pg&e so not hooked up for the moment. if you would please give it a shot and confirm that would be much appreciated.


#339

UPDATE: updated version 0.08.6 to github with the following changes:

*  Version: 0.08.6
*
*   DONE:   12/17/2017
*   1) added support for variable text for arrival and departure announcements.
*   2) added support for power level to set room to engaged.

#340

Seems to be marking engaged as expected, but when the power drops it doesn’t go to “checking”.


#341

Here is what it says in the logs

lux from device: 40.34 | rule lux threshold: 30


#342

Actually here is the whole log. There is an error in it.
ec157841-7a72-463c-a821-2903cedd9a03 1:26:54 PM: debug motionInactiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 1:26:19 PM: debug switchOnEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug Master Bedroom unschedule calling class: motion active handler
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug motionActiveEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug lux from device: 40.34 | rule lux threshold: 30
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug switches2On
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug Master Bedroom unschedule calling class: handle switches
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug howMany: 2 | gapBetween: 81 | busyCheck: 3 | isBusy: false | newState: null
ec157841-7a72-463c-a821-2903cedd9a03 1:26:18 PM: debug Master Bedroom room state - old: vacant new: occupied
ec157841-7a72-463c-a821-2903cedd9a03 1:26:14 PM: error java.lang.NumberFormatException: For input string: "40.34"
ec157841-7a72-463c-a821-2903cedd9a03 1:26:14 PM: debug luxEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 1:25:59 PM: debug isAnySwitchOn
ec157841-7a72-463c-a821-2903cedd9a03 1:25:59 PM: debug switchOffEventHandler
ec157841-7a72-463c-a821-2903cedd9a03 1:25:55 PM: debug whichSwitchesAreOn
ec157841-7a72-463c-a821-2903cedd9a03 1:25:55 PM: debug switches2Off
ec157841-7a72-463c-a821-2903cedd9a03 1:25:55 PM: debug Master Bedroom unschedule calling class: handle switches
ec157841-7a72-463c-a821-2903cedd9a03 1:25:55 PM: debug howMany: 1 | gapBetween: 58 | busyCheck: 3 | isBusy: false | newState: null
ec157841-7a72-463c-a821-2903cedd9a03 1:25:55 PM: debug Master Bedroom room state - old: occupied new: vacant
ec157841-7a72-463c-a821-2903cedd9a03 1:25:38 PM: debug motionInactiveEventHandler