LuuP code to activate a scene?

So, feeling restricted by this whole device controller/scene controller thing I was wondering if it was worth my time learning to use LuuP code and writing something to activate a scene based on a button press on a light controller (acting on a specific group)?

The reason being that I don’t like remote controls or iphone apps as much as I like light switches as they are always in the same place (for good WAF) and the ones I am thinking of can activate different groups based on number of presses. So, if I don’t mind activating the scene based on a device state (as I’m sure it would be difficult to use the light switch without it being associated with a group first) and then de-activating it again based on another device state, is this even possible?

The reason I ask is, I want to be able to program every light switch in the house to turn off all the house lights if double pressed, as the house is long and people always leaves lights on somewhere. With my current light switches I have found to my amazement, that there is a limit to the number of devices that you can associate with them on thie group activation. I’m surprised by that because I thought that Vera would handle all the switching/routing based on one signal from the switch, I guess this is not the case).

Thanks in advance if you read all this ramble :

I’m not sure of the exact question, so let’s not answer any of them and, instead, reminds that one scene can be activated by any event (or events") (and time, in your case) (and by a Luup code), and that an event can command all the lights. The basic concept for all this is called “KISS”: Keep It Simple and Stupid.

Sorry Confuserated if I missed your point.

I have found to my amazement, that there is a limit to the number of devices that you can associate with them on thie group activation.

The Node IDs of all Z-Wave-associated devices are stored in the device the other devices are associated to. Yes, there is a limit to the number of associations per group. The limit is manufacturer-specific and may be found in the manual.

You could try associating a single device that instantly sends a status change to Vera and use the status change as an event to trigger a scene which isn’t limited to a specific number of devices. If there is no device that instantly sends status changes to your Vera, you have to use polling (try reducing the polling interval to increase the responsiveness).

[quote=“huogas, post:2, topic:168038”]I’m not sure of the exact question, so let’s not answer any of them and, instead, reminds that one scene can be activated by any event (or events") (and time, in your case) (and by a Luup code), and that an event can command all the lights. The basic concept for all this is called “KISS”: Keep It Simple and Stupid.

Sorry Confuserated if I missed your point.[/quote]

LOL!!
yes indeed I should probably try and keep it simple! You can’t trigger a scene on ANY event though, for example pressing a switch that doesn’t control a light

Thanks anyway :0)

I see, thanks for the info, the problem with relying on a single device state is that if someone has left a light on somewhere else, I can’t use the state of the first device to triggerman event if it is already off. That’s why I want to be able to trigger a scene directly or a light switch that isn’t a scene controller.

I figure this is a combination of architecture/marketing/how-everyone-else-does-things that you can’t simply DO this.

Many thanks

I think I see your point now… :wink: Good to know. Thanks.

Personally, I close all the lights at midnight if there is no motion detected, but I agree that the lights could have been closed earlier with more refinement in the strategy.

I see, thanks for the info, the problem with relying on a single device state is that if someone has left a light on somewhere else, I can't use the state of the first device to triggerman event if it is already off.

Valid point. 2nd try:
Use a dedicated device to get the message across to Vera or set a dimmer to a specific value (error probability: <1%).

[quote=“Ap15e, post:7, topic:168038”]Valid point. 2nd try:
Use a dedicated device to get the message across to Vera or set a dimmer to a specific value (error probability: <1%).[/quote]

Do you mean a scene controller or do you mean leave a light on somewhere in a cupbraod and switch it on every day and then use it to “OFF” the lights by switching it off at end of day with a device controller and then using its state to trigger a scene?

Not sure about the dimmer thingie :O( ??

[quote=“huogas, post:6, topic:168038”]I think I see your point now… :wink: Good to know. Thanks.

Personally, I close all the lights at midnight if there is no motion detected, but I agree that the lights could have been closed earlier with more refinement in the strategy.[/quote]

Hmm, not as elegant but I could probably do that anyway once I’ve integrated an alarm, should surprise the missus when she falls asleep in front of the telly :O)

[quote=“confuserated, post:9, topic:168038”][quote=“huogas, post:6, topic:168038”]I think I see your point now… :wink: Good to know. Thanks.

Personally, I close all the lights at midnight if there is no motion detected, but I agree that the lights could have been closed earlier with more refinement in the strategy.[/quote]

Hmm, not as elegant but I could probably do that anyway once I’ve integrated an alarm, should surprise the missus when she falls asleep in front of the telly :O)[/quote]
:slight_smile:

Do you mean a scene controller or do you mean leave a light on somewhere in a cupbraod and switch it on every day and then use it to "OFF" the lights by switching it off at end of day with a device controller and then using its state to trigger a scene?

double click on light switch → appliance module on (via direct Z-Wave association) → Vera (via instant status message or via polling) → triggers scenes that can do anything with your devices

Not sure about the dimmer thingie :O( ??

If your light switch does support direct Z-Wave associations for dimmers (IIRC, the HSM100 does), you could configure your light switch to set a dimmer to a specific value. If your Vera detects, that the dimmer is set to the specific value, Vera activates your ‘all lights off’ scene.

aha, I see (light bulb goes on) ;D

Thanks, much appreciated

If what you really are trying to do is;
Shut off all the lights left on by the family or Vera, j
ust use the GE Remote and press ALL , then any off button.