PLEG and WakeRamp

I got PLEG to trigger motion scenes. I then had PLEG trigger a WAKERAMP, all was ok.

I then tried adding an additional WakeRamp device(instance), setting brightness to 0 and calling that device DownRamp.
As I am new to PLEG, and not a developer, I thought it just might work.

The attached PDF document shows error messages, and then my motion scene gets impacted with values of ‘nan’

Has anyone tried this and gotten it to work? I was trying to avoid coding more luup to revert the ramp UP

Thanks

The nan indicates that you are putting something into these variables that is not-a-number.

If you want help to find that error, post a Status report from the PLEG.

Unfortunately your PLEG Status report is cutting off the end of the Lua statements where you set the values that are probably wrong. You may need to print it in Landscape format to make these visible.

Rex, Here is a version formatted in Word. It looks ok now.

Thanks!

I misunderstood what you were doing. I thought that you were using PLEG to ramp your lights up and down. Now I realize that you are using the WakeUpRamp plugin to do it. I don’t use it so I don’t know if it can be used to ramp lights down. If that feature was not built in, it may explain why it is sending out non-numeric values.

You could either hack the WakeUpRamp code to allow ramp down or handle it directly from PLEG.

[quote=“RexBeckett, post:5, topic:185945”]I misunderstood what you were doing. I thought that you were using PLEG to ramp your lights up and down. Now I realize that you are using the WakeUpRamp plugin to do it. I don’t use it so I don’t know if it can be used to ramp lights down. If that feature was not built in, it may explain why it is sending out non-numeric values.

You could either hack the WakeUpRamp code to allow ramp down or handle it directly from PLEG.[/quote]

I noticed this but was just following along. Looks like the plugin does have a value in it. And hes tying PLEG to the plugin, which PLEG is reading the same as the plugin.

Current Brightness on the plugin is where the issue is. I have never used that plugin, but I’m assuming that plugin (based on a dimmer) should have a 0-100 value to show its current state.

I would post in the thread on the plugin as your poblem is there.