I had been using a scene to turn on lights in a room via a triggered motion sensor and waiting 10 minutes and then turning the lights off. Worked OK but I decided to give associations a try. Light come on OK when motion is sensed and then go off too, not really sure how to adjust the ON duration yet but I’m sure I can. My question is this, in my scene I used code to not turn on the light during day light hours which worked great, can I do the same with associations…?
No, your control with associations is limited to non-existent.
With associations the motion sensor itself controls the light directly, independently of Vera. It turns the light on when tripped and off when untripped. The only thing you can do for duration is to configure the motion sensor’s untrip timeout. This usually a jumper in the motion sensor with only a couple of options, like 10 minutes or 15 minutes. See the motion sensor manual for details.
To do what you want, you need to use Vera, as you were.
Thanks Z - You confirmed what I expected.