Wondering if this is possible. A quick look through the automations and scenes didn’t pop anything out for me, but it would be nice to know when to open and close my windows throughout the summer based on actual local temp now that I’ve got a couple of the Aqara sensors outside.

The idea is that when the temp on both of the outdoor sensors goes below the temp on the inside sensor, in the afternoon/evening, I’d get an alert to open my windows.

And in the morning I’d like an alert to close my windows when the outside temp and inside temp are the same.

  • SeriousBug
    link
    fedilink
    English
    51 year ago

    Have you tried the “numeric state” trigger? It lets you trigger an automation if one numeric entity is higher or lower than another one.

    • @juneOP
      link
      English
      21 year ago

      I’ll take a look. Thanks for the suggestion!

      • @[email protected]
        link
        fedilink
        English
        2
        edit-2
        1 year ago

        [email protected] suggested statistics to smooth the numbers out. I can’t reply to his comment for some reason, so I’m trying to reply here: Another option to avoid that issue would be to have the automation check that a > b for 2 minutes, or something like that.

  • @[email protected]
    link
    fedilink
    English
    2
    edit-2
    1 year ago

    I have a similar automation setup to notify when the AC is running while the temperature is cooler outside. You could create an automation with a time based trigger (run every 5 mins) with a value template in the Conditions (along with any other conditions like only in the daytime, if blinds are open, etc):

    { states(‘sensor.thermostat_current_temperature’)float>state_attr(‘weather.home’, ‘temperature’)|float }

    And then in Actions: call service - Notifications: send via mobile app

    Mine only differs in that it triggers based off the AC turning on.