Hi All,
A little new to HA but have been adding custom blueprints and changing Config files for a few months now and I cannot seem to get this to work. I get the automation to trigger right on time but my bulbs dont turn on. One time they did but then they didnt cycle the colors or brightness (was doing a 5min sunrise test).
I am using TP-Link Kasa TL-130 smart bulbs that have pretty robust integration with HA but dont seem to want to work with this (19 supported features, min_mireds:111, max_mireds:400, color temp, etc.) I followed all of the troubleshooting steps but still no avail. Below is my YAML and 2 template errors I cant decode from my log file.
Any help would be much appreciated by my wife!
Logger: homeassistant.helpers.event
Source: helpers/template.py:355
First occurred: 7:55:00 AM (4 occurrences)
Last logged: 7:56:11 AM
Error while processing template: Template("{{0 < as_timestamp(states(sensor) if sensor != ‘none’ else states(‘sensor.date’) ~ ’ ’ ~ manual_time) - as_timestamp(states(‘sensor.date_time_iso’)) <= float(seconds) and states(check_entity) in [‘unknown’, ‘on’, ‘home’]}}")
Error while processing template: {{0 < as_timestamp(states(sensor) if sensor != ‘none’ else states(‘sensor.date’) ~ ’ ’ ~ manual_time) - as_timestamp(states(‘sensor.date_time_iso’)) <= float(seconds) and states(check_entity) in [‘unknown’, ‘on’, ‘home’]}}
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 353, in async_render
render_result = compiled.render(kwargs)
File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 1090, in render
self.environment.handle_exception()
File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File “/usr/local/lib/python3.8/site-packages/jinja2/_compat.py”, line 28, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
TypeError: unsupported operand type(s) for -: ‘float’ and ‘NoneType’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 462, in async_render_to_info
render_info._result = self.async_render(variables, **kwargs)
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 355, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: unsupported operand type(s) for -: ‘float’ and ‘NoneType’
Logger: homeassistant.helpers.condition
Source: helpers/condition.py:458
First occurred: 7:55:00 AM (2 occurrences)
Last logged: 7:56:00 AM
Error during template condition: TypeError: unsupported operand type(s) for -: ‘float’ and ‘NoneType’