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

Trying to convert automation to blueprint

$
0
0

I am working on a configuration to set my thermostat based on outside temperature, i have the automation working, but i want to make it into a blueprint so i can set automations for 2 thermostats at least 4 times a day.

I cannot find out what is causing an error, the only clue i have is on the blueprints page it says:

Invalid blueprint: Expected a dictionary for dictiona...

I cant see anything else, i have looked in the logs and see nothing. I put it into notepad++ so i can collapse different parts of the code and check individually, but i dont see where the error is. am i just trying to do something a blueprint is incapable of doing or did i mess something up (more likely)

blueprint:
  name: Climate Thermostat Schedule
  description: Set climate based on time of day and Daily high temperature
  domain: automation
  input:
    thermostat_selection:
      name: Select Thermostat
      description: Which Thermostat will you be controlling
      selector: 
      entity:
        domain: 
        device_class: climate
    set_time:
      name: Set Time
      description: This is the time the automation will trigger
      selector: time
      entity:
        domain:
        device_class:
    below_65_heat:
      name: Temp below 65 heat setting
      description:
      selector: number
      min: 59
      max: 95
      entity:
        domain: 
        device_class:
    below_65_cool:
      name: Temp below 65 heat setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    65_80_heat:
      name: Temp 65-80 heat setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    65_80_cool:
      name: Temp 65-80 cool setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    80_95_heat:
      name: Temp 80-95 heat setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    80-95_cool:
      name: Temp 80-95 cool setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    above_95_heat:
      name: Temp above 95 heat setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
    above_95_cool:
      name: Temp above 95 cool setting
      description:
      selector: number
      min: 59
      max: 95 
      entity:
        domain: 
        device_class:
variables:
  thermostat_selection: !input thermostat_selection
  set_time: !input set_time
  below_65_heat: !input below_65_heat
  below_65_cool: !input below_65_cool
  65_80_heat: !input 65_80_heat
  65_80_cool: !input 65_80_cool
  80_95_heat: !input 80_95_heat
  80_95_cool: !input 80_95_cool
  above_95_heat: !input above_95_heat
  above_95_cool: !input above_95_cool
  
trigger:
- platform: time
  at: !input set_time
action:
- choose:
  - conditions:
    - condition: numeric_state
      entity_id: sensor.openweathermap_forecast_temperature
      below: '65.0'
    sequence:
    - service: climate.set_temperature
      data:
        target_temp_high: !input below_65_cool
        target_temp_low: !input below_65_heat
      target:
        entity_id: !input thermostat_selection
    - service: climate.set_hvac_mode
      data:
        hvac_mode: heat_cool
  - conditions:
    - condition: numeric_state
      entity_id: sensor.openweathermap_forecast_temperature
      above: '65.0'
      below: '80.0'
    sequence:
    - service: climate.set_temperature
      data:
        target_temp_high: !input 65_80_cool
        target_temp_low: !input 65_80_heat
      target:
        entity_id: !input thermostat_selection
    - service: climate.set_hvac_mode
      data:
        hvac_mode: heat_cool
      target:
        entity_id: !input thermostat_selection
  - conditions:
    - condition: numeric_state
      entity_id: sensor.openweathermap_forecast_temperature
      above: '80.0'
      below: '95.0'
    sequence:
    - service: climate.set_hvac_mode
      data:
        hvac_mode: heat_cool
      target:
        entity_id: !input thermostat_selection
    - service: climate.set_temperature
      data:
        target_temp_high: !input 80_95_cool
        target_temp_low: !input 80_95_heat
  - conditions:
    - condition: numeric_state
      entity_id: sensor.openweathermap_forecast_temperature
      above: '95.0'
    sequence:
    - service: climate.set_hvac_mode
      data:
        hvac_mode: heat_cool
      target:
        entity_id: !input thermostat_selection
    - service: climate.set_temperature
      data:
        target_temp_high: !input above_95_cool
        target_temp_low: !input above_95_heat
default: []
mode: single

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103378

Trending Articles



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