I'll admit to not having read the entire thread, or even the original post, so please ignore me if I'm way off here....
EDIT - Looks like I probably was right, but feel free to read on if you are interested....
I had issues with Motion and Mode Lighting app because I wanted to trigger my lights based on motion / contact sensors, but if I used a manual form of control such as a physical (Hue Dimmer) switch I wanted to move to a manual operation mode. Once the lights turned off I wanted to move back to a motion / contact based operation. The issue I believe was that the Motion and Mode Lighting rule remained in an "on" state and so would not turn lights back on when I wanted them to. I ended up setting up about 4-5 rules on RM for each room. If this is likely to be helpful let me know and I can post some details.
What exactly do you mean by manual control? Just on/off and dim? If that is all, you should be able to still use the mode and motion lighting by using the "Name to use with Alexa" or something like that at the bottom. That creates a virtual device for your rule that stays in sync with the rule so if you tell Alexa for instance to turn on the lights, she will go in accordance to the rule. Then for the button controller just reference that virtual device and enable the option where manual changes override motion settings.
The light will turn on when the door is unlocked and turn of in 20 minutes, regardless of whether it is locked again or not.
The light will turn off 20 minutes after the door was opened regardless of whether it is closed again or not.
The light will turn off 20 minutes after it received the first motion event. It will also most likely turn off 20 minutes after every other motion events it received. (Same if you open / unlock the door). I would recommend you add a “Cancel Delayed Actions” at the top (first action of the rule) to avoid this.
Thanks @cjkeenan, I would never have looked at the Alexa option, I'll give it a go and see if it does what I need.
One example use case is I want to be able to walk into a room, have the motion lighting setup through the app turn the lights on, but then press a Hue dimmer button or have a switch turn on cause the lighting rule to essentially stop, leaving the lights on until I turn the lights off with the Hue dimmer or some other situation. This all worked perfectly for me up to the last point. I could pause the rule so the lights would remain switched on when I pressed the Hue dimmer button, but when I turned the lights off with the Hue dimmer, when I later re-entered the room, the motion lighting rule would log that it would not turn the lights on because they were already on.
This is from memory, not in front of my home PC at the moment.... I'm almost certain there is one or more rules on top of what I have listed, I'll post back later today...
Motion Lighting - Turn Lights On
Triggered by Motion Sensor / Zone Motion Sensor becoming active
If Motion Override VS is Off THEN
Cancels Turn Lights Off Rule below
Activate Scenes Per Mode for the
Motion Lighting - Keep Lights On
Triggered by Motion / Zone Sensor being Active
Cancel Turn Lights Off Rule
-- Not sure how effective this rule is.....
Motion Lighting - Turn Lights Off
Triggered by motion becoming inactive for relevant sensor / zone sensor
Action - Turn lights off, delayed by X minutes, cancellable (required for earlier rules)
Motion Lighting - Motion Override
Triggered by Motion Override VS switching off
Cancel Turn off Lights rule
In terms of the Motion Override, this can be turned on by any number of rules or other apps, based on pressing physical buttons, other rules based logic, etc.
Still frustrated. I can trigger the light to come on, and it turns off correctly after the 20min delay.
However, I cannot get the motion sensor to keep it on if there is still activity in the garage.
The first line of your Actions to Run needs to be:
Cancelled delayed actions
That should fix the issue you are encountering.
I would also recommend that you change your IF condition to Garage Motion inactive. Otherwise, if you move a lot and your motion sensor doesn’t become temporarily inactive, your lights will turn off after 20 minutes.
Cancel Delayed Actions will cancel any actions that have been delayed. This is important because rules will occur concurrently.
In your case, it will cancel the lights turning off 20 minutes after the first inactive motion event if the rule is triggered by motion coming on again, someone opening the door, etc.
all these issues sound to me like your mesh in garage is week.. do you have wall switches or extenders every 30 feet or so between garage and hub.. recommend at least one extender in the garage.
Yeah, the door contact and motion sensor are both Zigbee.
I will get another IKEA Tradfri repeater and place it in the garage.
I do have one outside the house in the furnace room - it is located below the hub (hub upstairs), and is approx 40ft and two walls to the garage.