Invalid config for [automation]: [event] is an invalid option for [automation]. Check: automation->condition->1->event. (See /config/configuration.yaml, line 69).
Using two different lights to test.
version from nickh66 and KYIbow modified with Met.no using weather home.
Not getting anymore errors but lights are not going on. Although in Met.No my card says rainy.
If I do a manual execute on both lights turn on. But not automatically after set time. Using 1 minute in 2nd just to test…
Not familiar with Met.no(weather.home) so what do I use for cloud coverage?
ok cleaned out a few things this morning. re-installed open weather map.
This morning after sunrise went from sunny to cloudy waited 15 minutes and lights still not going on.
What can be wrong. here is my latest version in automation
- alias: light on lamp led if cloudy outside
trigger:
- platform: numeric_state
entity_id: sensor.owm_cloud_coverage
above: '20'
for: 00:10:00
condition:
- condition: state
entity_id: sun.sun
state: above_horizon
- condition: numeric_state
entity_id: sensor.owm_cloud_coverage
above: '20'
action:
- service: homeassistant.turn_on
entity_id:
- light.eb3394a8311202517ea1t8 #lamp led
Well first of all, remove the duplicate condition.
Second, can you verify sensor.owm_cloud_coverage is above 20?
Third, does it show that it ran the automation recently, but the lights didn’t turn on anyway?
think I spoke too soon. For some reason it is not triggering.
In last days think it triggered once or twice in mid afternoon although cloud coverage is 50% and above all day last few days.
BTW here is a pic of the automatons. It does say never triggered due to I rebooted about an hour ago.
All other automatons in my system work and have much more complicated ones.
Thanks for the logger info. My log is now full but usefull information.
For lamp on cloud
Not sure if it was on. But it is been cloudy for days and at sunset my lights are all programmed to shut off at sunset.
therfore if it is already cloudy at sunrise it won’t trigger right?
Can I add something like this to verify every 10 minutes
trigger:
- minutes: /10
platform: time_pattern
or other ideas ? So if it is always cloudy and missed trigger it will never go on
thanks
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)