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

Condition in rule with value template, throws and error

$
0
0

@imellor wrote:

I’m a newbie and I’m trying to emulate a rule I have in Smartthings
I created an automation using the GUI, but for the condition I edited the YAML with a text editor. However it throws the following error:
“Invalid config for [automation]: Unexpected value for condition: ‘None’. Expected numeric_state, state, sun, template, time, zone, and, or, not, device @ data[‘condition’][0]. Got None. (See /config/configuration.yaml, line 9)”
Without the condition it works and my value template works in the developer console, so I’m stuck if anyone could point me in the right direction please?

- id: '1591036482506'
  alias: Shed Fan
  description: Shed fan when shed is hot
  trigger:
    - above: 18
      device_id: 736762548f2f463d92483e7e20564fab
      domain: sensor
      entity_id: sensor.shed_motion_sensor_temperature_measurement
      platform: device
      type: temperature
  condition:
    - platform: template
      value_template: "{{( states('sensor.shed_motion_sensor_temperature_measurement')|int ) > (( states('sensor.external_humidity_sensor_temperature_measurement')|int)+3) }}"
  action:
    - device_id: 34374432d173474ca2f984648bbcbed9
      domain: switch
      entity_id: switch.ikea_of_sweden_tradfri_control_outlet_2b9ff1fe_on_off
      type: turn_on

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102572

Trending Articles



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