Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95402

Automation Triggers

$
0
0

@ChaoticUnreal wrote:

So I just rewriting some of my automations to trigger off the outside temp instead of the season and was wondering if there is a better way to handle updating a single variable in multiple files (without creating a input_variable if possible)

Basically all my thermostat automations are a variation on this

id: Thermostat AC up at night
alias: Thermostat AC up at night
initial_state: 'on'
trigger:
  - platform: time
    at: "23:00:00"
condition:
  - condition: numeric_state
    entity_id: 'sensor.dark_sky_temperature_high_0d'
    above: 85
action:
  - service: climate.set_temperature
    data:
      entity_id: 2gig_technologies_ct101_thermostat_iris_cooling_1
      temperature: 75

and I’d like to be able to just have the two temps be pulled from a central location instead of having to update 5-10 different files to adjust the trigger point / set points.

Side note I’m not even 100% sure this works since I just changed it from checking the season (summer/winter) and to using the high/low temp for the day but I’m not at my actual server to test it. so comments on that would be helpful.

Also I do not want to use Node Red so please don’t suggest it.

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>