ha_custom_components's People
ha_custom_components's Issues
[Bug] Color Recognizer
I've been checking out your post here: https://community.home-assistant.io/t/change-your-rgb-lights-color-according-to-spotify-album-background/94885. This integration seems ideal for me, as it means I wouldn't have to get AppDaemon running, as some other solutions require.
I've added color_recognizer:
in my configuration.yaml
and created both a sensor and automaion:
# sensor
sensor:
- platform: template
sensors:
spotify_content_id:
value_template: "{{ state_attr('media_player.hedwig', 'media_content_id') }}"
friendly_name: Spotify Content ID
# automation
- id: spotify_match_music
alias: Spotify Match Music
trigger:
- platform: state
entity_id: sensor.spotify_content_id
condition:
- condition: template
value_template: '{{ states(''sensor.spotify_content_id'') != ''None'' }}'
action:
- delay: 00:00:02
- service: color_recognizer.turn_light_to_recognized_color
data_template:
entity_id: light.living_room_lamp
url: '{{ state_attr(''media_player.hedwig'', ''entity_picture'') }}'
transition: 3
mode: single
With media_player.hedwig
being my Nvidia Shield. I've verified that when music is being played on it via Spotify, the media_content_id
and entity_picture
states are being updated (only via casting, but I think that's a separate issue ๐ค).
Unfortunately, I can't quite get the script to actually run ๐
I get this error whenever my automation runs:
2020-09-28 17:06:05 ERROR (MainThread) [homeassistant.components.automation.spotify_match_music] Spotify Match Music: Error executing script. Service not found for call_service at pos 2: Unable to find service color_recognizer/turn_light_to_recognized_color
2020-09-28 17:06:05 ERROR (MainThread) [homeassistant.components.automation.spotify_match_music] While executing automation automation.spotify_match_music
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 426, in async_trigger
await self.action_script.async_run(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 944, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 198, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 206, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 413, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1265, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service color_recognizer/turn_light_to_recognized_color
And investigating further, it appears I'm getting a lot of output regarding numpy==1.16
being unavailable. Full log here: https://pastebin.com/WCerpbvS
Is this an easy fix? Am I overlooking something? Is this an issue with my system... that for some reason it doesn't have/can't install numpy
?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.