Help with Automation - Light/Temp triggered blinds

Long time lurker; first time poster. I can say this board has helped me immeasurably fixing tons of little issues with HA.

Regarding this automation, I’ve gone through a handful of YouTube videos, and read a ton of posts.

I can’t figure out why this isn’t triggering.

The hope: When the inside temperature is above “x” degrees, and when the illuminance sensor is over “x” lux, close the blinds on windows.

I can manually trigger it, and it works correctly.

I’ve currently set the triggers low (70F and 1,000 lux), in an attempt to make it trigger, and watch a trace.

My Home thermostat is 73. It’s a cloudy day, and my luminance sensor is reporting between 5-6,500 lux. It’s reporting every 5 minutes; a Zigbee battery powered device. It should, in theory, trip.

I’ve even removed the “climate” trigger, and tried to isolate it to just lux. No triggering.

Here’s the YAML:
alias: New automation
description: “”
triggers:

  • device_id: f14220e5aed2c2693233e256e77c0d77
    domain: climate
    entity_id: ba40ce9972c49ec4552bca6afebd8c8b
    type: current_temperature_changed
    trigger: device
    above: 70
    conditions:
  • type: is_illuminance
    condition: device
    device_id: aa37b9904f6f4d402ca9e4c2bfb62709
    entity_id: d004e4f7ec20f6c4cbb423a3ac3e70e4
    domain: sensor
    above: 1000
    actions:
  • action: cover.close_cover
    metadata: {}
    data: {}
    target:
    device_id: c901331c14da62135ca365b20f733e83
    mode: single

Any thoughts on where I messed this up?

Thanks in advance…

First thing please format your code so it can be read.

next avoid using device id’s

And third search the forums and you will discover that doing triggers like that will only work when the value goes from below to above the set amount. it won’t trigger if the value is already above the set target.

Arh makes a great point. If your temperature is already above 70 degrees and your illuminance is already over 1000, the automation will not trigger.

Your temperature would have to go from 70 or below to 71 or above before your automation would trigger.

Thank you on all the tips; changed triggers to the next degree up in F, and shut off my AC, let the house cook a little.

Like magic, it worked. I’ll take note on posting the code differently. It was posted as paste as plain text. Something different next time?

Truly did search the board. The trigger situation makes sense, just didn’t find it.

Thanks again for your help.