We have moved at community.getvera.com

Author Topic: Used to have second "Immediately" action in a scene, can't anymore  (Read 1394 times)

Offline jschaffe

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +1/-1
I have a scene to turn all the lights off in my kitchen.  If I simply turn them off in the scene, each dimmer is left in the current brightness setting, two of them often at 10% and 20%.  When I manually turn these lights on using the physical switch, I need them to light to 100%. I used to be able to have one action in the scene to set these dimmers to 100% and then a second action to turn them immediately off, which worked perfectly. 

Now, however, when I edit this scene and try to add a second "Immediately" action, I get an error telling me that time delay is already in use, please select a different delay.  If I delay for 1 second (the shortest delay I can select), the result ultimately is what I want, but at the expense of the lights in question going to full brightness for a second before being turned off. 

Can we bring back the ability to have more than one immediate action?

Offline wilme2

  • Hero Member
  • *****
  • Posts: 1302
  • Karma: +33/-13
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #1 on: March 04, 2019, 01:06:26 pm »
You should be able to add a second device to the existing Immediately.  Don't try to add an interval, add actions to it.  The UI7 GUI is a bit of a mess with Scene Creation.  I have one scene with around 20 devices all in Immeadiate...
Long Live UI5!  (OK finally made the switch to UI7 in January 2018, and am pretty happy....)

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #2 on: March 04, 2019, 01:14:53 pm »
I suspect the problem is he's trying to do two things immediately *with the same device* . Which probably won't work. But I could be wrong :)

C

Offline jschaffe

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +1/-1
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #3 on: March 05, 2019, 04:57:31 pm »
I suspect the problem is he's trying to do two things immediately *with the same device* . Which probably won't work. But I could be wrong :)

Exactly!  I need to turn ceiling spotlights off immediately after setting the same lights' dimming level to 100%.

Offline Catman

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +10/-0
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #4 on: March 05, 2019, 05:04:16 pm »
I suspect the problem is he's trying to do two things immediately *with the same device* . Which probably won't work. But I could be wrong :)

Exactly!  I need to turn ceiling spotlights off immediately after setting the same lights' dimming level to 100%.

Sorry I can only identify the problem, not solve it :(

C

Offline Gabriel

  • Sr. Newbie
  • *
  • Posts: 49
  • Karma: +3/-0
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #5 on: March 06, 2019, 05:38:14 am »
I can't answer regarding what has been changed, however I can tell you how I am handling a similar case:

On one of my dimmers, I have a scene which is triggered when the light is switched on. Within this scene, I am adjusting the target level based on night/day. As I have set up the dimmer to "ramp up" for 0.5s when switched on, the target level is actually adjusted while the dimmer is "ramping up", and no flickering is observed.

So instead of adjusting the target level when switching off the lights, you might want to try adjusting it when switching on the lights.

Offline reneboer

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1574
  • Karma: +110/-31
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #6 on: March 07, 2019, 05:15:17 am »
Hi,

You would have to add a line of LUA code in the scene with a luup.call_action(...) to do the second immediate action on the same device.

Cheers Rene
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline jschaffe

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +1/-1
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #7 on: March 07, 2019, 11:13:04 am »
I can't answer regarding what has been changed, however I can tell you how I am handling a similar case:

On one of my dimmers, I have a scene which is triggered when the light is switched on. Within this scene, I am adjusting the target level based on night/day. As I have set up the dimmer to "ramp up" for 0.5s when switched on, the target level is actually adjusted while the dimmer is "ramping up", and no flickering is observed.

So instead of adjusting the target level when switching off the lights, you might want to try adjusting it when switching on the lights.

All my lighting scenes specify the desired dimmer levels, of course.  (There is a side issue that a few of them don't ramp properly while others do, but that's for another thread.)  The issue here is when my wife or I want to use the physical switch, say, for the light over the kitchen sink, it remembers the setting from the last scene used, but we actually want it to always come on at 100% when we use the switch.  So I want my "Kitchen Off" scene to restore 100% for that dimmer before it turns it off.

Offline jschaffe

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +1/-1
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #8 on: March 07, 2019, 11:15:09 am »
Hi,

You would have to add a line of LUA code in the scene with a luup.call_action(...) to do the second immediate action on the same device.

Cheers Rene

Can you point me to an example?  Should the LUA code do the initial setting (ie restore to 100%) or the final setting (to off)?

Offline Gabriel

  • Sr. Newbie
  • *
  • Posts: 49
  • Karma: +3/-0
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #9 on: March 07, 2019, 04:57:16 pm »
Tissue here is when my wife or I want to use the physical switch, say, for the light over the kitchen sink, it remembers the setting from the last scene used, but we actually want it to always come on at 100% when we use the switch.  So I want my "Kitchen Off" scene to restore 100% for that dimmer before it turns it off.
What I'm suggesting, instead, is to have a "kitchen on" scene, triggered when the light is switched on, which sets the light level to 100%. If your dimmers are configured to ramp up (with the device configuration, not through a scene) for about 0.5s, then the ramp-up delay should be sufficient to avoid any flashing. The target level will then be adjusted while the dimmer is ramping up.
On my Qubino dimmer, that works perfectly.

Offline dgb

  • Newbie
  • *
  • Posts: 7
  • Karma: +4/-0
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #10 on: March 07, 2019, 06:39:38 pm »
You CAN add more immediate actions in a scene... I just isn't intuitive...

1) Go to Scenes tab...
2) Click on the "pencil" icon to edit the scene...
3) Under "Step 3: Finish the scene", click on Advanced editor...

You can then add whatever actions you need by clicking on the "Add action" button. The caveat is that you can NOt use the same action twice... IE You cant turn a light on with  urn:upnp-org:serviceId:SwitchPower1/SetTarget/true and then off again with  urn:upnp-org:serviceId:SwitchPower1/SetTarget/false... But, for the OP, you can use urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget/100 to set the light to 100%, then urn:upnp-org:serviceId:SwitchPower1/SetTarget/false to turn the light off.

Offline reneboer

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1574
  • Karma: +110/-31
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #11 on: March 08, 2019, 04:48:33 am »
Hi dgb,

So indeed you can. I keep forgetting about the advanced editor part event though I do use it once in a while.

Good tip.

Cheers Rene
2xVeraLite, VeraEdge, openLuup, ALTUI, 20 switches, 10 dimmers, 20 sensors, 10 scene controllers, 1 Harmony Hub, many plug-ins. Not enough time.

Offline jschaffe

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +1/-1
Re: Used to have second "Immediately" action in a scene, can't anymore
« Reply #12 on: March 09, 2019, 05:17:17 pm »
You CAN add more immediate actions in a scene... I just isn't intuitive...

1) Go to Scenes tab...
2) Click on the "pencil" icon to edit the scene...
3) Under "Step 3: Finish the scene", click on Advanced editor...

... you can use urn:upnp-org:serviceId:Dimming1/SetLoadLevelTarget/100 to set the light to 100%,
then [you use]  urn:upnp-org:serviceId:SwitchPower1/SetTarget/false to turn the light off.

This works with my kitchen scenes!!!

However, In another room I use the wall switch itself to trigger the scene, I get en endless loop:

I turn the switch off
The scene is triggered which sets the level to 100% and turns the light off
which triggers the scene which sets the level to 100% and turns the light off
... repeat ...
Until I edited and saved the scene.

There seems to be no general solution.  I got around the new problem by having the on switch trigger a scene which sets the level to 100%, and I get the functionality I want in both rooms.  Seems like a case by case solution for me, but I'm happy!