gerard33 / home-assistant-archive Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm wondering if it would be possible to start an App from within HA.
It would be cool to start for example the VLC media player on the TV showing the RTSP stream from the Babycam automatically.
Or if the preferred steaming App would be started whenever the living room enters the "Couch potato mode".
Maybe "setActiveApp" could help here:
https://pro-bravia.sony.net/develop/integrate/rest-api/spec/service/appcontrol/v1_0/setActiveApp/
Thanks for all of your work!
Some of my automations already rely on the attibutes from your component.
When I switch to a different channel, I let google home tell me which show is currently running, when it started and when it ends.
For this I had to split the three information from the "media_series_title" attribute into three different sensors.
sensor:
- platform: template
sensors:
sony_tv_sendung:
value_template: "{{ states.media_player.sonyfernseher.attributes['media_series_title'].split('[')[0] | default('gerade nichts') }}"
friendly_name: "Sendung"
sony_tv_beginn:
value_template: "{{ states.media_player.sonyfernseher.attributes['media_series_title'].split('[')[1].split(' - ')[0] | default('gerade nichts') }}"
friendly_name: "Anfang"
sony_tv_sendeschluss:
value_template: "{{ states.media_player.sonyfernseher.attributes['media_series_title'].split('[')[1].split(' - ')[1].split(']')[0] | default('gerade nichts') }}"
friendly_name: "Ende"
Not elegant, but functional. Since you want to work on a progress bar for the current show anyway, I also hope for improvements for my purposes.
But what I miss completely is the information which app is currently active. Prime Video, Youtube, Kodi.
Do you have any idea how we can use also this information in Home Assistant?
2019-02-25 22:04:25 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.media_player.braviatv_psk. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/loader.py", line 147, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/media_player/braviatv_psk.py", line 10, in <module>
from homeassistant.components.media_player import (
ImportError: cannot import name 'SUPPORT_TURN_ON' from 'homeassistant.components.media_player' (/usr/local/lib/python3.7/site-packages/homeassistant/components/media_player/__init__.py)
2019-02-25 22:04:25 ERROR (MainThread) [homeassistant.loader] Unable to find platform braviatv_psk
I have run this great component for months but now it saying:
Platform not found: climate.e_thermostaat
I have made the folder and named the files like the readme. I have also paid for a year :) the app and website are still working.
what can I do?
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.