PLEG devices not acting as expected... looking for help

I have created 2 pretty simple scenes to control my lighting based on a device status. But they are not doing what I expect. Thank you for any help you can give!

Device 1: Dim light to 30%, only at Night, only if XBMC device is ‘Play’

what is actually happening… triggering even during the day, dims light to 30% on the 1st Play but not ever after that, i.e. going from Pause to Play does not set the light back from 40% to 30%

Input\Triggers… XBMC:Video is starting + Day or Night:indicates Night time
Condition… XBMCplay and (DimLevel>30)
Actions… Light:30%

Device 2: Dim light to 40%, only at Night, only if XBMC device is ‘Pause’

what is actually happening… triggering even during the day, properly dims light to 40% on every Pause

Input\Triggers… XBMC:Video is play + Day or Night:indicates Night time
Condition… XBMCpaused and (DimLevel<40)
Actions… Light:40%

Input\Triggers... XBMC:Video is play + Day or Night:indicates Night time Condition... XBMCpaused and (DimLevel<40) Actions... Light:40%
If you want the condition to fire only at night then you need to include the [i]Night[/i] trigger in the expression:

DimLight XBMCpaused and (DimLevel < 40) and ItsNight

what is actually happening... triggering even during the day, dims light to 30% on the 1st Play but not ever after that, i.e. going from Pause to Play does not set the light back from 40% to 30%
This also requires [i]ItsNight[/i] (or whatever you called the trigger) added to the condition expression. If it only fires once, it suggests that the triggers are not changing. At least one of them needs to go to [i]false[/i] and back to [i]true[/i] before the condition will fire again. If you set [b]Debug[/b] to 1 in the PLEG [i]Advanced[/i] tab and click [b]Save/Reload[/b], PLEG will create log entries showing the status of the inputs and conditions when they change. This should help you to see what is happening.

[quote=“RexBeckett, post:2, topic:175413”]

Input\Triggers… XBMC:Video is play + Day or Night:indicates Night time
Condition… XBMCpaused and (DimLevel<40)
Actions… Light:40%

If you want the condition to fire only at night then you need to include the Night trigger in the expression:

DimLight XBMCpaused and (DimLevel < 40) and ItsNight

what is actually happening... triggering even during the day, dims light to 30% on the 1st Play but not ever after that, i.e. going from Pause to Play does not set the light back from 40% to 30%
This also requires [i]ItsNight[/i] (or whatever you called the trigger) added to the condition expression. If it only fires once, it suggests that the triggers are not changing. At least one of them needs to go to [i]false[/i] and back to [i]true[/i] before the condition will fire again. If you set [b]Debug[/b] to 1 in the PLEG [i]Advanced[/i] tab and click [b]Save/Reload[/b], PLEG will create log entries showing the status of the inputs and conditions when they change. This should help you to see what is happening.[/quote]

I tried adding a ToD (aka, time of day) trigger in several ways and none worked… I also asked in the Day or Night thread how is should be formatted but I never got an answer.

Since I could not find any explanation on how the trigger Day or Night I have tried…

ToD==0
ToD = “Night”
ToD = “NIGHT”
ToD = “night”
ToD = “Nightime”

… then I saw Richard’s example of the motion/light/night and it did not include a Day or Niht variable in the Condition expression?

I’m confused on this.

Set an input trigger for Device: Day or Night, Event type: Day or Night has arrived, Which mode: Device indicates night time, Name for this trigger: ItsNight

Now use the term ItsNight in your condition expressions.

[quote=“RexBeckett, post:4, topic:175413”]Set an input trigger for Device: Day or Night, Event type: Day or Night has arrived, Which mode: Device indicates night time, Name for this trigger: ItsNight

Now use the term ItsNight in your condition expressions.[/quote]

still turning on during the day.

Condition Expression: (XBMCend or XBMCpaused) and (DimLevel<40) and Night

Post the report from your PLEG device. Click the Report button on the Control tab, print as a PDF and attach to your post.

Have you set your location - SETUP, Location? Does the DayNight plugin indicate Day and Night correctly?

[quote=“RexBeckett, post:6, topic:175413”]Post the report from your PLEG device. Click the Report button on the Control tab, print as a PDF and attach to your post.

Have you set your location - SETUP, Location? Does the DayNight plugin indicate Day and Night correctly?[/quote]

Vera has proper location (time zone) and time shows properly

‘Night or Day’ device shows correct day/night.

screenshot of Report attached

That looks OK - It should set the dim level to 30 if it was greater than 30, it’s night and the XMBC starts or resumes. You are finding that it still fires when it’s not night? Does this still happen if you force DayNight to Day with the button?

Are you up to date on the PL Version.
There have been problems with what I call phantom actions.

Basically the last action you defined for any condition (for you there is only one) gets called when any of the inputs are triggered … independent of the condition.

[quote=“RichardTSchaefer, post:9, topic:175413”]Are you up to date on the PL Version.
There have been problems with what I call phantom actions.

Basically the last action you defined for any condition (for you there is only one) gets called when any of the inputs are triggered … independent of the condition.[/quote]

under ‘Apps’ they say 4.1

The events are triggering no matter what the ‘Day & Night’ status is.

This sounds like the ghost actions I have been trying to fix.

See:
http://forum.micasaverde.com/index.php/topic,14732.msg113388.html#msg113388

For a possible fix.