In my kitchen I have a Motion sensor, Hue light strip, Illumination Sensor and a Sonos Play:1. All of which are controlled or controllable from OH.
Generally I’m first up each day and head off to work about the time my wife comes down stairs. When the Kitchen motion sensor is activated the light level is checked and if below a certain value the Hue light strip is switched on. The Sonos then makes an announcement for me, giving me the current weather conditions, estimated time to get to work and other reminders I setup. This works quite well, about from the times when my wife decides to get up earlier than me, but that’s not to much of a concern.
I use a variable to keep track of the number of announcements that have been made.
When my wife comes downstairs, after I have gone to work. She should hear a full weather forecast and on certain days how long it will take her to get to the medical centre where she works.
So in the perfect scenario it all works well to a degree. This is where I’m hoping someone has a similar use case. My wife usually gets down stairs after 7:30 in the morning, is there a way of checking the current time and to only trigger a rule if it’s greater than 7:30?
This is what I’ve tried so far. But this doesn’t seem to work as I would have expected.
if(now.getHourOfDay > 6) {
if(now.getMinuteOfDay > 30) {
Thanks in advance for your help and assistance. I’m hoping this is a problem that has already been solved.