Turn on lamp if cloudy

now get this :slight_smile:

Configuration invalid

                      Invalid config for [automation]: Unexpected value for condition: 'None'. Expected numeric_state, state, sun, template, time, zone, and, or, not, device @ data['condition'][1]. Got None. (See /config/configuration.yaml, line 69).

Oh, I meant change just the platform part, keep the part at the end.

1 Like

sorry should have seen that also :frowning:

Ok configuration is valid now let’s see what happens.

Thanks for your help much appreciated

Hi, just came across this thread and thought of a potential problem with your approach … If you are using a weather service to determine when it is cloudy then this might not always be accurate as they tend to give a generalised result for a certain area (e.g. it might say cloudy when it it sunny over your home due to a break in the clouds).

If you do run into problems then you could consider using a Lux sensor to measure the actual light level and use this to trigger your automation.

1 Like