Iโm always seeking for new goals. I give a great interest on the quality of my work and I always want to learn more.
With a degree in computer engineering, I am passionate about what I do.
Be sure to check out my portfolio.
๐ My personal configuration from Home Assistant. Be sure to โญ๏ธ my repo!
Iโm always seeking for new goals. I give a great interest on the quality of my work and I always want to learn more.
With a degree in computer engineering, I am passionate about what I do.
Be sure to check out my portfolio.
Hi! I was trying to get your app running but failed. here my error log and my config:
2019-10-02 23:09:35.106763 WARNING AppDaemon: Worker Ags: {'name': 'tv_lights_sync', 'id': UUID('9caef641-ebef-4dc0-bae5-1351c35fd8ef'), 'type': 'attr', 'function': <bound method tv_lights_sync.change_lights_color of <tv_lights_sync.tv_lights_sync object at 0x7f22e87d8048>>, 'attribute': 'entity_picture', 'entity': 'media_player.kodi', 'new_state': '/api/media_player_proxy/media_player.kodi?token=12b9d1795f5743b62d71b5e9cd116904c83cbb0a0277f34f477689c3487f42a9&cache=fd7ae725186a3703', 'old_state': None, 'kwargs': {'attribute': 'entity_picture', 'handle': UUID('9bac4006-83c7-4f7b-9d11-0cece377457e')}}
2019-10-02 23:09:35.106925 WARNING AppDaemon: ------------------------------------------------------------
2019-10-02 23:09:35.107492 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/appdaemon/appdaemon.py", line 595, in worker
self.sanitize_state_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/tv_lights_sync.py", line 24, in change_lights_color
rgb_colors = self.get_colors(newUrl)
File "/config/appdaemon/apps/tv_lights_sync.py", line 35, in get_colors
fd = urlopen(url)
File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.7/urllib/request.py", line 510, in open
req = Request(fullurl, data)
File "/usr/lib/python3.7/urllib/request.py", line 328, in __init__
self.full_url = url
File "/usr/lib/python3.7/urllib/request.py", line 354, in full_url
self._parse()
File "/usr/lib/python3.7/urllib/request.py", line 383, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '/api/media_player_proxy/media_player.kodi?token=12b9d1795f5743b62d71b5e9cd116904c83cbb0a0277f34f477689c3487f42a9&cache=fd7ae725186a3703'
2019-10-02 23:09:35.107671 WARNING AppDaemon: ------------------------------------------------------------
CONFIG:
tv_lights_sync:
module: tv_lights_sync
class: tv_lights_sync
ha_url: !secret ha_url
media_player: media_player.kodi
photo_attribute: "entity_picture"
condition:
entity: input_boolean.sync_tv_lights
state: 'on'
lights:
- light.hyperion
SECRETS.YAML:
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmMzNhOTRmYTRmYTk0MzE4YThmMTlmMGM2MTc0YzA0NiIsImlhdCI6MTU2OTU5MDEyMiwiZXhwIjoxODg0OTUwMTIyfQ.7-V5EMb7ri1OZYjGNVX517uWYjkFnycla5nAJlJF4S0
ha_url: http://192.168.1.41:8123
Hi.. it is not clear how to set the url of hass in the config. I have this format:
tv_lights_sync:
module: tv_lights_sync
class: tv_lights_sync
ha_url: "http://192.168.1.41:8123" # Home Assistant Endpoint
media_player: media_player.kodi
photo_attribute: "entity_picture"
# condition:
# entity: input_boolean.sync_tv_lights
# state: 'on'
lights:
- light.hyperion
- light.led_strip_living_room
and get this error
2020-02-28 23:06:03.167312 WARNING tv_lights_sync: Worker Ags: {'id': '04dd5a15871e438aa132f5470ff88d25', 'name': 'tv_lights_sync', 'objectid': '995c96e6718b4a21a0fe8431bd8fd8d9', 'type': 'state', 'function': <bound method tv_lights_sync.change_lights_color of <tv_lights_sync.tv_lights_sync object at 0x7f1f4f51d850>>, 'attribute': 'entity_picture', 'entity': 'media_player.kodi', 'new_state': '/api/media_player_proxy/media_player.kodi?token=37e6569d373ad85b07814ee821eb8c988243d47b47d1715645783c9b73686162&cache=1ca48a2de4c42708', 'old_state': None, 'pin_app': True, 'pin_thread': 3, 'kwargs': {'attribute': 'entity_picture', '__thread_id': 'thread-3'}}
2020-02-28 23:06:03.167721 WARNING tv_lights_sync: ------------------------------------------------------------
2020-02-28 23:06:03.168501 WARNING tv_lights_sync: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 777, in worker
funcref(entity, attr, old_state, new_state,
File "/config/appdaemon/apps/tv_lights_sync.py", line 24, in change_lights_color
rgb_colors = self.get_colors(newUrl)
File "/config/appdaemon/apps/tv_lights_sync.py", line 35, in get_colors
fd = urlopen(url)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 509, in open
req = Request(fullurl, data)
File "/usr/lib/python3.8/urllib/request.py", line 328, in __init__
self.full_url = url
File "/usr/lib/python3.8/urllib/request.py", line 354, in full_url
self._parse()
File "/usr/lib/python3.8/urllib/request.py", line 383, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '/api/media_player_proxy/media_player.kodi?token=37e6569d373ad85b07814ee821eb8c988243d47b47d1715645783c9b73686162&cache=1ca48a2de4c42708'
2020-02-28 23:06:03.168883 WARNING tv_lights_sync: ------------------------------------------------------------
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.