Hello there,
I’m a newbie in Home Assistant but I’m trying to create a proof of concept that is a bit too advanced for me but it is something I would find pretty cool if it worked
I want to create a way to schedule switches that my girlfriend could use without any programming (in this example, start my dishwasher during the night). I created a Slider to set the time, a Boolean to turn on the Schedule and an IFTTT trigger just to notify my phone so that I know it is working.
Here is my code:
automation:
trigger:
platform: time
minutes: '/3'
seconds: 0
condition:
condition: and
conditions:
- condition: state
entity_id: 'input_boolean.dishwasher_auto_switch'
state: on
- condition: template
value_template: '{{ states.input_boolean.dishwasher_start_time.state = now.hour }}'
action:
service: ifttt.trigger
data: {"event":"DISHWASHER_START", "value1":"Dishwasher has started"}
When I boot Home Assistant I get the following error:
16-10-03 00:11:12 homeassistant.bootstrap: Error during setup of component automation
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/bootstrap.py", line 102, in _setup_component
result = component.setup(hass, config)
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/components/automation/__init__.py", line 168, in setup
success = _process_config(hass, config, component)
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/components/automation/__init__.py", line 299, in _process_config
cond_func = _process_if(hass, config, config_block)
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/components/automation/__init__.py", line 365, in _process_if
checks.append(condition.from_config(if_config))
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/helpers/condition.py", line 37, in from_config
return factory(config, config_validation)
File "/volume1/@appstore/py3k/usr/local/bin/homeassistant/helpers/condition.py", line 43, in and_from_config
config = cv.AND_CONDITION_SCHEMA(config)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/voluptuous/schema_builder.py", line 192, in __call__
return self._compiled([], data)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/voluptuous/schema_builder.py", line 486, in validate_dict
return base_validate(path, iteritems(data), out)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/voluptuous/schema_builder.py", line 324, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: not a valid value for dictionary value @ data['conditions'][0]['condition']
Does anyone know what’s wrong?
Thanks in advance!