Hi,
I am struggling with the conditional portion of a motion-sensor triggered event. The logic is that I want me walking into my office to trigger the fan, if the temperature is above 24C.
Below is the YAML code. My problem is my ignorance in understanding how to read data from the Ecobee. When I test the Conditional logic, I receive “template value should be a string for dictionary value @ data[‘value_template’]. Got None” as the error message.
alias: My Office Fan Auto-On
description:
trigger:
- type: motion
platform: device
device_id: dd0f76fb0137bd63234ef76cc347f1b7
entity_id: binary_sensor.my_office_motion_sensor_motion
domain: binary_sensor
for:
hours: 0
minutes: 10
seconds: 0
condition:
- condition: numeric_state
entity_id: sensor.home_temperature
value_template: '{{ states(sensor.home_temperature) }}'
above: '24'
- condition: time
after: '08:05:00'
before: '22:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- device_id: 08b18bf1ab13ae7e5f961a419d8561a2
domain: fan
entity_id: fan.my_office_fan
type: turn_on
mode: single
Thank you