Help needed with my use case

Since I have no idea where to start looking, I would like to put my use case here:

I have a doorsensor and I want it do something when it is tripped:

A

  • between 0.00 and 06.00 switch on light (device 1)
  • send a prowl notification (LUUP code)

B

  • On Monday and Tuesdays between 9:00 and 17:00 send a send a prowl notification (LUUP code)
  • On Wednesday between 09:00 and 14:00 send a prowl notification (LUUP code)
  • Other days do nothing

C
-Holiday mode

  • Manual activation which ignores A or B and always send a prowl notification (LUUP code)

I hope one of you can put me in the right direction

UPDATE: Via PLEG I found a way to turn on the light at 0:00, but not found a way between 0:00 and 06:00

UPDATE 2: Should I run a scene which sets a virtual switch to A, B or C and start from there?

Need a virtual Switch for Holiday.

PLEG:
Input Trigger:
Holiday Holiday Virtual Switch is On
Door Door Sensor is Tripped
Input Schedules:
SMT At Mondays and Tuesdays at 9:00
SW On Wednesday at 9:00

Conditions:
CaseA NOT Holiday and Door and (00:00:00; Door; 06:00:00)
CaseB1 NOT Holiday and Door and (SMT;Door < 8:00:00)
CaseB1 NOT Holiday and Door and (SW;Door < 5:00:00)
CaseC Holiday and Door

Actions:
CaseA TurnonDevice1 and NOTIFY
CaseB1 Notify
CaseB2 Notify
CaseC Notify

Notify can be imlemented as RunScene called Notify, or if the plugin you use for prowl has an action for sending a message it should be available in the Advanced tab for the Action.

THX!!!, I am only struggling with the Runscene part…when I click action I cannot select a scene

I have created a scene now where the trigger is CaseC is satisfied and via Luup send a prowl message and this seems to work! Great plugin!

One last thing, is the PLEG only active in the ARM mode?

In the Actions Editor go to the Advanced tab.
Where is says Pick a device, select the current PLEG device, then Add
Where is says Please select, select Run Scene
Specify the name or number of the scene. If you use a name, make sure it matches and is unique.

Great, all clear now

[quote=“RichardTSchaefer, post:4, topic:175795”]In the Actions Editor go to the Advanced tab.
Where is says Pick a device, select the current PLEG device, then Add
Where is says Please select, select Run Scene
Specify the name or number of the scene. If you use a name, make sure it matches and is unique.[/quote]

… that not initiative at all. Why can we not just simply choose a Scene like we choose a Device?

Richard is using MCV 's code to allow you to choose a device. MCV does not have a similar setup for selecting a scene.

  • Garrett

[quote=“garrettwp, post:7, topic:175795”]Richard is using MCV 's code to allow you to choose a device. MCV does not have a similar setup for selecting a scene.

  • Garrett[/quote]

gotcha. Of coure MCV does not have it, no one would ever want to trigger a Scene from a Scene… bunch of dumb azes.