Folks,
I do get an error when I do:
hass --script check_config
My Trigger is:
- alias: “Switch on WZ Media Player if Motion is detected during day and quite mode is off”
trigger:
platform: state
entity_id: sensor.fibaro_system_fgms001_motion_sensor_burglar_6_10
from: ‘0’
to: ‘8’
condition:
condition: and
conditions:
- condition: time
after: ‘8:00:00’
before: ‘23:55:00’
- condition: template
value_template: ‘{{ states.input_boolean.quite_mode = “off” }}’
condition: state
entity_id: input_boolean.quite_mode
state: ‘off’
action:
service: script.turn_on
entity_id: script.sonos_wz_timer`
16-12-04 12:28:32 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: invalid template (TemplateSyntaxError: expected token 'end of print statement', got '=') for dictionary value @ data['condition'][0]['conditions'][1]['value_template']. Got None
not a valid value for dictionary value @ data[‘condition’][0][‘conditions’][1][‘condition’]. Got None
required key not provided @ data[‘condition’][0][‘conditions’][1][‘entity_id’]. Got None. (See /home/hass/.homeassistant/automation.yaml:31). Please check the docs at https://home-assistant.io/components/automation/
16-12-04 12:28:32 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->condition->0->state. (See /home/hass/.homeassistant/automation.yaml:31). Please check the docs at https://home-assistant.io/components/automation/
Failed config
It also fails when I repalce:
- condition: template
value_template: ‘{{ states.input_boolean.quite_mode = “off” }}’
with
condition:
condition: and
conditions:
- condition: time
after: ‘8:00:00’
before: ‘23:55:00’
- condition: state
entity_id: input_boolean.quite_mode
state: ‘off’
(hass_venv) hass@home-assistant:/home/pi$ hass --script check_config
Testing configuration at /home/hass/.homeassistant
16-12-04 12:31:52 ERROR (MainThread) [homeassistant.bootstrap] Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->condition->0->state. (See /home/hass/.homeassistant/automation.yaml:31). Please check the docs at https://home-assistant.io/components/automation/
Failed config
automation: