michalmoczynski / homeassistant-tplink-integration Goto Github PK
View Code? Open in Web Editor NEWIntegration of TP-Link devices with Home Assistant after TP-Link updated their firmware
License: MIT License
Integration of TP-Link devices with Home Assistant after TP-Link updated their firmware
License: MIT License
I appear to be receiving 2 errors after completing the configuration and restarting HA.
Also, all 5 of my devic.txt files in /config/scripts/tplink-kasa/devices = " null,null,null,null,null"
Logger: homeassistant.helpers.event
Source: helpers/template.py:396
First occurred: 12:39:26 PM (5 occurrences)
Last logged: 12:39:26 PM
Error while processing template: Template("{{ states('sensor.light1_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light2_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light3_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light4_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light5_light_temp', 'deg') | int}}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 394, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1477, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 1, in top-level template code
File "/usr/local/lib/python3.9/site-packages/jinja2/sandbox.py", line 393, in call
return __context.call(__obj, *args, **kwargs)
TypeError: call() takes 2 positional arguments but 3 were given
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 510, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 396, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: call() takes 2 positional arguments but 3 were given
Logger: homeassistant.components.template.template_entity
Source: components/template/template_entity.py:72
Integration: Template (documentation, issues)
First occurred: 12:39:26 PM (5 occurrences)
Last logged: 12:39:26 PM
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light1_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light1'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light2_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light2'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light3_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light3'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light4_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light4'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light5_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light5'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.