Only Announce from and announce to hours - which also require an entry
Rooms Manager: Smarter Rooms: Personalized home automation with Occupancy
All good now⌠and the recursion issue with asleep/vacant on turn off is also fixed! Thanks for the lightning fast turnaround!
New to all this, and just found this smartapp.
In installed from the repo and I get an âError Saving Pageâ every time I try to save the room. Can someone point me in the right direction to get started?
The only thing I can find in the log is
warn Exception âjava.lang.IndexOutOfBoundsException: toIndex = 5â encountered parsing âcmd: 600D, payload: 02 00 82 01â
did you save and publish the DTH and both smartapps from the repo?
when first creating the room give it a name and save it. then go back into the room and edit it to configure with devices and settings.
does that help with the issue?
With this app, can I, for example, set a dimmer to 50% while occupied and 10% while VACANT, but only if the LUX level is below a threshold and only during select location modes?
In other words, I want to maintain a minimum during dawn and dusk, but not while the location mode is SLEEP and not while thereâs enough ambient light through the windows. Iâve had some difficulty figuring out how do that⌠how/when to apply rules, etc.
sure you can. create 2 rules:
- state = occupied; lux = xxx; switches on; level = 50%
- state = vacant; mode = mode1, mode2; lux = yyy; switches on; level = 10%;
on the second rule you can also specify time window of sunset to sunrise and either skip the mode or include the mode as well.
you will need to specify other settings like motion sensor, timeouts, lux sensor etc but those would be the 2 rules needed.
if you have other questions please feel free to ask.
Wow @bangali, this is pretty amazing. Thanks for all your hard work!
How do you handle multiple motion sensors on a single room? Where it says âLast Motion Inactiveâ I assume that means that it will consider the room vacant only after all sensors report inactive?
And where it asks âwhat lux level?â, is that the level under which the lights will activate? In other words, if it is over that level the lights will not come on? Will it consider the room âoccupiedâ, just no lights? Iâm struggling a little bit here with if/how the lights get turned off (as opposed to simply not being turned on) when the lux reading reaches the set value.
i should do it the smart way. but right now if multiple motion sensors in a room every time a motion sensor reports inactive it justs resets the timer. which works fine if all motion sensors in the room are homogenous like in my own setup. however theres no guarantee of that. will update to wait for last inactive.
correct. over that level lights will not come on. the room will be considered occupied but since the rule will not match the lux level no lights will be switched on.
there is a flag in mode and other settings which when set turns off all lights when no rule matches.
UPDATE: updated version 0.12.0 to github with the following changes:
* Version: 0.12.0
*
* DONE: 2/8/2018
* 1) added alarm to rooms occupancy. tested somewhat. family kind of upset with me for random alarms going off :-(
* 2) sunrise & sunset now support offset in minutes. so if you always wanted sunrise -30 or sunset +30 now you can.
* Version: 0.11.5
*
* DONE: 2/5/2018
* 1) added setting for locked state timeout setting.
* 2) on motion active added check for power value to set room to engaged instead of occupied.
* 3) on occupied switch check power value to set room to engaged instead of occupied.
* 4) on contact close check for both occupied and checking state to set room to engaged.
* 5) for motion inactive with multiple motion sensors check all sensors for active before setting timer.
@bangali. Does this dth expose a switch capability for the locked state?
This would be grand if you could ask google Home or Alexa to lock or unlock a room state.
Just a wish if it doesnât. I tried but it doesnât seem to work, or at least not without creatin a virtual switch to run a piston to do it? Or⌠maybe I just havenât figured out the verbage correctly.
Thanks, keep the great work!
Gopack2
not for the locked state. the switch exposed sets room to occupied/vacant on on/off.
do you happen to use ask alexa? that would allow you to change room states through voice commands:
thank you.
well i was thinking of putting in a setting to pick which state is set when the room occupancy device switch is turned on.
so you could configure your setup to set room to locked when the room switch is turned on.
may be that would work?
Iâm thinking it would. As long as google sees the device as a switch it can turn it on. Thus the problem that I have that my lights sometimes, not all the time, will turn off because lack of motion. And not have to pull my mobile device out to lock the room on or off, rather can be done via voice
Have you tried using the engaged state? using the engaged state helps in situations where the room is occupied but you are not moving around.
does google home currently see rooms occupancy device as a switch and is able to turn it on to set the room to occupied?
thanks.
Yes it sees it as a device. If I tell it to turn in the device, in this case I made an empty room called âstuffâ. I did not attach any switches or lights to the room
If I tell google to turn on âstuffâ it changes it state to occupied.
Only thing is if I try this with my âkitchenâ room, it turns on all the attached lights and switches is in that room. Ultimately that works, however if I currently have only 1 switch on and I tell google to turn on âkitchenâ it turns all the other switches and lights on. Not desired action.
What I would prefer is to do is if:
- turned on switches/lights manually
- lock The switches/lights in current state,by telling google or using the smart app, until I tell google to unlock them, or turn them off manually
- Leave the other lights/switches alone and dot change their state
- Disable rules during locked state
- go back to monitoring state ( re establish rules) after unlocking room or turning off switches / lights manually
it should only turn on those lights that are specified in the rule for occupied state. does the occupied state rule have all the switches and lights specified?
thanks.
Yes it does hmmm might have adjust that.
Still I think maybe locked would be better to have switch, at least in my case. Now if it would be possible, to have locked be a lock device type and occupied be a switch device type then we could have both the cake and eat it too.
Then we could say google turn on âstuffâ and occupied state would trigger
OrâŚ
Say google lock âstuffâ and lock state would be triggered.
Of course when one is activated disable the other.