using Google calender switch

Hi there,

I seem to be having a lot of trouble using the google calendar switch in a PLEG.

I set a keyword to be home.

I want a light to come on when its dark and I am home but to be off all other times.

I have a combination switch which will work, but the PLEG wont. I doesnt work if I use the combination switch either.

What have i got wrong in my logic?

report is below:

Triggers
Name Description
Home G CAL SAYS HOME: Calendar event is Active

Schedules
Name Type Time Days

Device Properties
Name Device Name Device Variable
light_level _4 in 1 sensor (light) CurrentLevel

Conditions
Name Expression
on (light_level>100) and Home
off not(Home)

Thanks

Seamus

Maybe you want:

on (light_level < 100) and Home
off not on

Richard,

You are quite correct the light level logic is the wrong way round, at the time it was light so set it to greater then 100.

I was just testing the Google Calendar logic, i still cant get it to work.

What options should i use?

I have selected calendar event is active, calendar event is active.

is that the correct option to use?

Seamus

I’m successfully using armed calendar event is active.

Thanks,
Then can you see if there is something wrong with the logic statement?

I have used the Google Cal and the ligh_level on their own, trouble occurs when i use the AND?

Have you used the combination switch in a PLEG?

thanks

seamus

With PLEG you do not need the combination switch. You will have the following:

Input Trigger:
NAME Description
Home G CAL SAYS HOME: Calendar event is Active

Input Property:
NAME Description
light_level _4 in 1 sensor (light) CurrentLevel

Conditions:
LightOn Home and (light_level < 100)
LightOff Not LightOn

This will get evaluated every time the light level changes and/or the google calendar toggles.
Make sure you ARM the PLEG device.
Add actions to your conditions to actually turn on/off your light(s)

You do not need anything else!

Thank for reply.

I have set the following:

Triggers
Name Description
Home G CAL SAYS HOME: Armed calendar event is Active

Schedules
Name Type Time Days

Device Properties
Name Device Name Device Variable
light_level _4 in 1 sensor (light) CurrentLevel

Conditions
Name Expression
on Home AND (light_level<100)
off NOT on

Sadly it still wont work.

With the AND Home bit the light wont come on if at home or not, and regardless the NOT on function wont switch the light off.

I see the logic and see how it should work!

Regards Seamus

Did you check the Status command to see what is happening ?
Did you ARM the PLEG ?

I did arm the PLEG,

I Didn’t check the status command.

I have in the recent past deleted a PLEG and then typed the exact same info into it again to find it started to work.

I did that this morning and with only the short amount of time I had to check it is seems to be working.

I will check more thoroughly later.

Thanks

Seamus.

all working thanks

Spoke too soon.

I dont think the issue is the PLEG this time.

The G CAL fails to update.

I have set the home for several days in a row and the GCAL shows the date of the first instance. and has not updated. I have set the option with in Gcal to check every hour. but that doesnt seem to make a difference.

The running man is still showing and the combination switch is working correctly ( light level and home ).

But the PLEG is not.

Is there something that the combination switch uses that the PLEG does not?

thanks

after testing further today.

the pleg works when i am away from home but fails to work when I am home.

I have played around with Gcal plugin and it is working better.

The confusion for me is the Combination switch works, but the logic when combined doesnt seem to work in the PLEG.

do you need any more information??

Thanks