did something change with this im getting an error.
17-03-01 15:13:00 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139996349380648-5>
17-03-01 15:13:20 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=139996349380648-6, domain=automation, service_data=entity_id=automation.increase_living_room_lights, service=trigger>
17-03-01 15:13:20 INFO (MainThread) [homeassistant.components.automation] Executing increase living room lights
17-03-01 15:13:20 INFO (MainThread) [homeassistant.core] Bus:Handling <Event logbook_entry[L]: domain=automation, name=increase living room lights, message=has been triggered, entity_id=automation.increase_living_room_lights>
17-03-01 15:13:20 INFO (MainThread) [homeassistant.helpers.script] Script increase living room lights: Executing step call service
17-03-01 15:13:20 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/template.pyâ, line 99, in async_render
return self._compiled.render(kwargs).strip()
File â/usr/local/lib/python3.5/dist-packages/jinja2/environment.pyâ, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File â/usr/local/lib/python3.5/dist-packages/jinja2/environment.pyâ, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File â/usr/local/lib/python3.5/dist-packages/jinja2/_compat.pyâ, line 37, in reraise
raise value.with_traceback(tb)
File ââ, line 1, in top-level template code
jinja2.exceptions.UndefinedError: âmappingproxy objectâ has no attribute âbrightnessâ
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File â/usr/lib/python3.5/asyncio/tasks.pyâ, line 239, in _step
result = coro.send(None)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/components/automation/init.pyâ, line 294, in async_trigger
yield from self._async_action(self.entity_id, variables)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/components/automation/init.pyâ, line 376, in action
yield from script_obj.async_run(variables)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.pyâ, line 151, in async_run
yield from self._async_call_service(action, variables)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/script.pyâ, line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.pyâ, line 88, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.pyâ, line 84, in _data_template_creator
for key, item in value.items()}
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.pyâ, line 84, in
for key, item in value.items()}
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/service.pyâ, line 86, in _data_template_creator
return value.async_render(variables)
File â/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/template.pyâ, line 101, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: âmappingproxy objectâ has no attribute âbrightnessâ
- alias: 'increase living room lights'
trigger:
platform: zone
entity_id: device_tracker.benjimatt_benjimatt
zone: zone.work
event: leave
action:
- service: light.turn_on
entity_id: light.living_room
data_template:
brightness: '{{ states.light.living_room.attributes.brightness + 10 }}'
It seems right but I am still getting an error. I really dont care about the event because im going to change that. I really just need the script.