Keeping lights on with "Motion and Mode Lighting Apps"

I agree, it sounds like we need @bravenel to confirm there is no bug though.

1 Like

You should turn on logging to see what is happening or not happening.

Thanks for looking into this.

As mentioned earlier, I am trying to use the 'Button to disable off' function under ' Options for Additional Sensors, Lights-Off and Off options' to keep the light that was initially triggered by a motion sensor 'on'. To do that I am trying to use the same Hue dimmer switch that controls the light and is paired directly with HE (not via the Hue Bridge) -- standard Hue dimmer with 4 buttons, button 1 being the 'on' button.

When I pick my button and then try to enter the button number, it all seems alright.

However, as soon as I click anywhere outside of that '[DIM] Lounge buttons to disable off' field, the 1 disappears and the field defaults back to null.

Then I go to click 'Done' but it's pointless as I already know I am going to try to store a 'null' value rather than a '1'.

So, as I expected, nothing too interesting in the log. It's probably because there is no 'commit' command triggered at the point where I am having issues, i.e. any value entered in the field staying in there...

Also, the app events do not seem to be saying anything too interesting.

Further to the above, I've tried setting up a switch rather than a button (Aurora AOne Smart Dimmer) that I have in my kitchen. Because there was no requirement to input a button number it was accepted & saved.


However, it doesn't really work for me either. When the kitchen switch is on the lounge lights still turn off after no motion is detected + 1min.

I don't know if this is a separate issue that I am having or related to the one above, or I am simply clueless about what I am doing...

@bravenel - are there any more details that I could provide or things that I could try to identify what might be causing the issues? Thanks a lot.

In case anyone is interested I've applied a workaround that works for me. I created a virtual switch and linked on/of buttons from my Hue dimmer to the virtual switch.

Then I was able to add that virtual switch to the Motion Lighting App routine -- so instead of using the Hue button directly, I picked the virtual switch and it is now working as expected. I still have no idea why I am unable to type button number on the free text field...

I see you have found a workaround, and that is great. However I am curious what the root cause of the issue issue preventing you from using your Hue device as a button controller in Motion Lighting. :thinking:

This is really just a wild guess... I see that you've changed the label on that Hue 'Button Controller' device to "[DIM] Lounge". I wonder if the two brackets "[ ]" are somehow messing up the Motion Lighting App? Again, just a guess. Perhaps temporarily try changing the Label field to "DIM Lounge" and see if that device can then be properly added to the Motion Lighting automation?

3 Likes

Please ignore this if you have already discussed this or tried it, I haven't read this entire thread.... But have you tried using the Alexa option in one of the motion lighting screens? I was able to get this to work and have been meaning to post my setup.

2 Likes

Here's my setup I just documented... Shout out to @cjkeenan for putting me onto this...

1 Like

Intriguing suggestion. He did try several other buttons (earlier in this thread) and they all had the same issue. I don't think all of them had brackets in the name.

1 Like

@ogiewon, @danabw - that's it! All of my devices are indeed prefixed with [...], which is my way of introducing a bit of taxonomy to my devices. So [B] is for buttons, [L] is for lights, etc. And indeed when I removed the brackets, it's working as expected! Who would have thought. So I will now need to change my taxonomy from '[B]' to 'B -' unless you guys have neater way of introducing some sort of order to your growing list of devices...?

Thanks again @ogiewon!

2 Likes

Perfect. That's why @ogiewon is in the guru status around here. :smiley:

I use the full name for motion and contact sensors (e.g., Motion Living Room, Door Front Door) so I'm not very sophisticated. All other devices that you can act on w/voice commands are named for what they are (e.g., Entry lights). So any system you have would automatically be more sophisticated than mine. :slight_smile:

1 Like

OK, good, just wanted to make sure I'm not missing a trick. It bothers me that it's just a long list of stuff ordered by whatever first letter of the name is. So every device is prefixed for me so at least when I'm looking for lights / buttons / contact sensors / etc I know they are all grouped together. Saves me a few seconds and a bit of frustrations. :slight_smile:

2 Likes

@bravenel - Bruce - it appears that using brackets ( ) in the Label field of a Button Device within Motion Lighting causes issues as reported above. Can this be added to the list of things to look into for a future release, to prevent other users from stumbling into the same trap? Thanks!

3 Likes

I use (MB) and I haven't had a issue so you could try that.

2 Likes

Brackets are special characters in pretty much all apps. Should not be used in names.

1 Like

Might be good to put that in the documentation, or disallow creating a device with brackets in the name.

2 Likes

Bruce -- are "(...)" instead of "[...]" acceptable in the device names or should be avoided as well?

1 Like

I haven't had any issues at all. I tested your issue and it works with my control's that us ().

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.