Hello all, I’m still learning this.
I have a light called “lamp”. I’ve managed to get it to turn on 1 hour before sunset - great. Turning off not an issue - Alexa does this whenever we choose it’s bed time.
I’m stuck with how to get it to turn on if it’s cloudy after sun-rise, and before the above sunset setting kicks in. I’ve tried the “cloudiness” setting of yr - but nowhere can I find what the values are - is 0 sunny, 1 cloudy, or a percentage or ??
If someone could give me an example of what to put in which yaml I’d be very grateful.
Even better would be there’s 2 of us with phones - peters_iphone and janes_iphone, If the cloudy condition only kicks in when we’re at home perfect. I have the house/phone location bits working.
To clarify, always come on 1 hour before sunset. If it gets cloudy during the day (and either of us are at home) also come on. Don’t come on if it’s cloudy at night or any time that both of are phones are out. If it stops being cloudy during the day, the lamp should turn off.
I could do this quite easily in C, BASIC, or even COBOL, but yaml takes some getting used to.
Many thanks, Peter.