Alexander Fortin
124a9b7a81
ADD only_if_coordinator decorator to sonos
...
Currently we interact with players regardless of thir coordinator
role, hence soco.exceptions.SoCoSlaveException are thrown. The use
of the decorator for each interactive method should address this
2016-02-27 00:40:34 +01:00
Paulus Schoutsen
57ac6cd76f
Merge branch 'extract-entity-picture' into dev
...
Conflicts:
homeassistant/components/sensor/steam_online.py
2016-02-24 22:00:58 -08:00
Fabian Affolter
4563c54a3e
Add link to docs and modify docstrings to match PEP257
2016-02-24 10:38:06 +01:00
Paulus Schoutsen
967a751da1
Add entity_picture property
2016-02-23 22:41:24 -08:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -08:00
Alexander Fortin
6578928e3c
Fix media_player/sonos configuration mismatch
...
* From configuration.yaml is easy to provide iterable elements like lists,
this adds the possibility to provide a list of Sonos hosts using a yaml
and still supports the comma separated string version
* Remove superfluous host reassignment
2016-02-18 18:57:50 +01:00
Paulus Schoutsen
938c9888a6
Merge pull request #918 from happyleavesaoc/snapcast
...
snapcast media player
2016-02-12 19:31:07 -08:00
happyleavesaoc
13b0beee31
snapcast
2016-02-12 18:35:32 -05:00
Per SandstrÃom
aafd36d2ce
change url to host
2016-02-12 21:19:27 +00:00
Per SandstrÃom
15ad48a7a0
kodi thumbnails
2016-02-10 19:48:41 +00:00
Paulus Schoutsen
64611ab2be
Merge pull request #1157 from balloob/device-state-attributes
...
Clean up state_attributes vs device_state_attributes
2016-02-07 10:16:34 -08:00
Paulus Schoutsen
f08b77dc4c
Clean up state_attributes vs device_state_attributes
2016-02-06 22:34:24 -08:00
Paulus Schoutsen
8be9aaba4f
Fix Chromecast discovery
2016-02-04 21:36:37 -08:00
Paulus Schoutsen
e7e540d4bb
Clean up and test media player
2016-02-02 00:31:36 -08:00
Paulus Schoutsen
c8bfd27182
No longer ignore ports for Chromecasts
2016-02-01 21:07:33 -08:00
Paulus Schoutsen
c725f7883a
Merge pull request #1063 from stefan-jonasson/samsungtv
...
Added a new media_player platform for controlling Samsung TVs
2016-01-31 16:57:11 -08:00
Stefan Jonasson
1c10f218de
Fixed duplicate import statements and made use of the config_helper
2016-01-31 22:17:00 +01:00
Stefan Jonasson
2dab815f90
Fixes imports, styles and other misstates
2016-01-31 19:12:00 +01:00
Stefan Jonasson
bd475f5db1
Added a new media_player platform for controlling Samsung TVs with a lan interface.
...
Configured like this
media_player:
platform: samsungtv
host: <IP OF TV>
name: <Name of the tv>
2016-01-31 10:06:39 +01:00
Ryan Kraus
6a75b524cb
Removed unused private method from universal media player
...
The universal media player contained a private method that was replaced
by the update method. It was meant to be removed and wasn’t. This
commit removed that method.
2016-01-30 11:57:46 -05:00
Paulus Schoutsen
cbc6323438
Fix imports
2016-01-28 21:45:26 -08:00
Erik
e7865c1d67
Merge pull request #990 from molobrakos/squeezebox-fix
...
bugfix for squeezebox cover art regression
2016-01-24 21:56:21 +01:00
Paulus Schoutsen
90c392e270
Upgrade PyChromecast version
2016-01-23 17:29:40 -08:00
Sean Dague
90ca6a0998
fix typo in log message
...
The plex component logs an htts url, which is confusing to people, as
they think something is broken, when it is not.
Closes #959
2016-01-23 16:06:50 -05:00
Erik
ec2b433733
should be _id
2016-01-23 18:55:43 +01:00
Erik
492c4b7f00
style
2016-01-23 18:14:03 +01:00
Erik
b3beb9f3c9
style
2016-01-23 18:08:54 +01:00
Erik
837e7affa7
only query artwork by track_id if id is available (7.7 vs 7.9 version issue?)
2016-01-23 17:48:14 +01:00
Jon Maddox
a3b8122707
not using these
2016-01-21 17:54:26 -05:00
Jon Maddox
682e3460e0
use custom material icons to represent speaker state
2016-01-21 17:45:30 -05:00
Jon Maddox
71dbd10b39
let port be optional
2016-01-21 17:18:52 -05:00
Robert Marklund
0bdd293572
kodi: remove traceback on state check
...
If the computer is sleeping that are running xbmc then
the traceback is printed in the log all the time.
Keep the traceback in debug mode of the module if needed.
Signed-off-by: Robert Marklund <robbelibobban@gmail.com>
2016-01-21 20:59:58 +01:00
Paulus Schoutsen
1098194a89
Merge pull request #937 from trollkarlen/sonos-multicast
...
sonos: add hosts and interface_addr to sonos config
2016-01-21 07:30:40 -08:00
Robert Marklund
543190dfb0
sonos: add hosts and interface_addr to sonos config
...
Config can now specify one or more hosts to connect and
also a interface_addr to multicast on if multiple interfaces exists.
Signed-off-by: Robert Marklund <robbelibobban@gmail.com>
2016-01-20 22:55:08 +01:00
Erik
58ef69b95d
less hacky way of getting unique cover art
2016-01-20 16:31:51 +01:00
Erik
54f65ae87d
1) artwork_url might be a relative url (such as /imageproxy). in that case, join it with the base url. note: urllib.parse.urljoin will handle case when the artwork url is absolute. 2) artwork would not be replaced in the user interface because the url did not change between tracks ( http://.../cover.jpg ). solved by appending internal hash of the media title to the url to force reload
2016-01-20 10:57:39 +01:00
Ryan Kraus
342a819fd4
Added toggle service
...
Added a toggle service to the homeassistant, light, switch, and
media_player domains.
2016-01-16 10:45:05 -05:00
Ryan Kraus
57c0f96118
Renamed update_state to update in universal media player
...
Renamed update_state method in universal media player to update so that
it would be called by HA when the state was being published. Moved the
update_ha_state to a function inside of __init__. Updated the tests
accordingly.
2016-01-12 22:15:23 -08:00
Ryan Kraus
a84429538b
Fixed attribute configuration handling in universal media player
...
Forced all parsed attribute configurations to be of length 2. Removed
entity_id=None option from entity lookups. Explicitly passed entity
lookup information to _entity_lkp.
2016-01-12 22:15:23 -08:00
Ryan Kraus
07953fb7e3
Removed dependencies property from universal media player
...
The dependencies property was only being called once by the __init__
method so it was removed and the code was moved to the __init__ method.
The tests were updated to reflect this.
2016-01-12 22:15:23 -08:00
Ryan Kraus
12da6f531e
Removed property from universal media player
...
The active_child_state property was unnecessary as it was not being
referenced outside the class. This commit removes it and updates the
tests accordingly.
2016-01-12 22:15:22 -08:00
Ryan Kraus
769f5aafb7
Added should_poll = False to universal media player
2016-01-12 22:15:22 -08:00
Ryan Kraus
a1abab8ced
Set universal media player to force refresh when updating HA
2016-01-12 22:15:22 -08:00
Ryan Kraus
270a998e3c
Merged service calling method in universal media player
2016-01-12 22:15:22 -08:00
Ryan Kraus
d829497c3d
Changed universal media player to keep service attrs in dict
...
Revised universal media player to keep service data in a dictionary
rather than passing it around as magic parameters.
2016-01-12 22:15:22 -08:00
Ryan Kraus
a8d5b0e5ec
Made universal media player cache active player
...
Revised universal media player to cache the active player when updating
the state when any of the children change. Revised tests to accommodate
this change.
2016-01-12 22:15:22 -08:00
Ryan Kraus
85d732a45a
Streamlined child state lookups in universal media player
...
1) Removed children property because it was only being used by one
method.
2) Removed option to return state as object from _entity_lkp as it was
no longer needed.
3) Used hass.states.get to get entity state objects.
4) Revised test to remove children property.
2016-01-12 22:15:22 -08:00
Ryan Kraus
8f3e8d29f0
Renamed SUPPORT_VOLUME_STEP flag in media_player
...
1) Renamed SUPPORT_VOLUME_BUTTONS to SUPPORT_VOLUME_STEP
2) Removed unused imports from tests.
2016-01-12 22:15:22 -08:00
Ryan Kraus
ee4543d739
Using call_from_config in Universal Media Player
...
Changed universal media player to use the call_from_config helper to
call services specified in the configuration file. This was done to
copy what is done in the Alexa and Automation components.
2016-01-12 22:15:22 -08:00
Ryan Kraus
59456f20fb
Added tests to universal media player and fixed bug
...
1) Fixed universal media player to maintain specified child order when
checking for active child.
2) Added many tests to universal media player.
2016-01-12 22:15:22 -08:00
Ryan Kraus
4a1f609893
Lint fixes and faster updating to universal media player.
...
1) Many lint fixes.
2) Bound the Universal Media Player to its dependencies so that its
state will be updated when one of its dependencies is changed.
2016-01-12 22:15:22 -08:00
Ryan Kraus
36214c73ee
Better handling of entity lookups in Universal media player.
...
Allowed the lookup function in the Universal Media Player to return
either a state object or the actual state of an entity during lookup.
2016-01-12 22:15:21 -08:00
Ryan Kraus
20a1025a8c
Added active_child attribute to universal media players.
...
The entity of the first active child is now reported in the attributes
for a universal media player.
2016-01-12 22:15:21 -08:00
Ryan Kraus
ec85884d92
Added initial implementation of universal media player.
2016-01-12 22:15:21 -08:00
Paulus Schoutsen
3b7b12bbd5
Make Flake8 happy
2016-01-12 21:53:27 -08:00
Paulus Schoutsen
438e78610d
Update PyChromecast dependency
2016-01-09 16:21:08 -08:00
Fabian Affolter
d69c1b848a
Fix docstrings
2016-01-07 11:57:45 +01:00
Richard Arends
913c5ab47c
identing error... sorry
2015-12-30 13:26:42 +01:00
Richard Arends
429904c437
Returning None when name and title are both not available
...
Removed trailing whitespaces
2015-12-30 13:00:34 +01:00
Richard Arends
56a2ffca1d
Changed if else statements. The following situations are handled now:
...
- name and title can be None
- name can be None
- title can be None
- name and title can contain data
2015-12-29 22:10:09 +01:00
Richard Arends
6e2fb17f19
Fix KeyError on 'title' when title is empty
2015-12-29 17:52:05 +01:00
Paulus Schoutsen
824dd60aef
Upgrade PyChromecast version
2015-12-18 08:58:13 -08:00
Paulus Schoutsen
0369f5153e
Disable pychromecast in requirements all because protobuf dep fails on CI
2015-12-17 09:16:36 -08:00
David Edmundson
d16526739c
Add PlayMedia support to Chromecast
2015-12-14 23:53:46 +00:00
Richard Arends
035d518cb6
Expect the case where currentsong['name'] can be absent. Use the .get
...
funtion with a default value set to None
2015-12-13 19:54:10 +01:00
Richard Arends
85b62a20c8
Use format instead of str.join to join name and title
2015-12-13 19:46:17 +01:00
Richard Arends
46f742f82f
Added support for MPD to display the name before the title if it is available
...
When using a radio stream, the name of the station is often available in
currentsong['name']. Just like the 'mpc' CLI client, this change displays
the name of the station before the current song title.
For example: "Mick Jagger - Let's Work" becomes "Radio 10: Mick Jagger - Let's Work"
2015-12-13 18:42:53 +01:00
Richard Arends
9eea7a6cde
Added support for MPD to start playing the current song/playlist
2015-12-12 16:25:56 +01:00
Paulus Schoutsen
41ab635dcd
Have Sonos work nicer with discovery
2015-11-30 00:55:36 -08:00
Paulus Schoutsen
7ba9fb90f1
More PyLint fixes
2015-11-29 14:04:44 -08:00
Paulus Schoutsen
a301d869d7
PyLint 1.5 fixes
2015-11-29 13:49:05 -08:00
Paulus Schoutsen
fabd0ced3f
Make DEPENDENCIES optional for components
2015-11-26 13:11:59 -08:00
Daren Lord
2812fae721
Fixing bug when connecting to squeezebox and it is a float
2015-11-11 16:21:42 -07:00
Fabian Affolter
97f9f8aa49
Update link to docs (Jekyll 3 update)
2015-11-09 13:12:18 +01:00
Tom Duijf
bc8c5766d4
Logic fixes
2015-10-25 17:54:48 +00:00
Tom Duijf
5b25d9ccd6
flake8,pylint and other code cleanup
2015-10-25 17:00:54 +00:00
Tom Duijf
847d9736aa
Configurator works, config saving basic implementation
2015-10-25 13:34:34 +00:00
Tom Duijf
884525df33
Basic discovery works, added plex logo for configurator. Missing configurator support for fields. Todo: config save on successful connect
2015-10-25 13:34:34 +00:00
Tom Duijf
6a82504e5e
further discovery integration into plex
2015-10-25 13:34:34 +00:00
Tom Duijf
db7e46abd1
Intermediate save
2015-10-25 13:33:47 +00:00
Tom Duijf
8e9cafd29d
Updated requirements_all.txt. Added placeholder to the empty deviceClass filter. Will remove this if deemed unneeded, later
2015-10-25 13:32:15 +00:00
Tom Duijf
a236b87ccf
new attempt for PR
2015-10-25 13:32:15 +00:00
Fabian Affolter
649275044a
Remove configuration details
2015-10-24 09:13:54 +02:00
Paulus Schoutsen
80a9422a9a
Merge pull request #545 from MakeMeASandwich/denon
...
Refactor denon remote
2015-10-23 22:40:37 -07:00
Fabian Affolter
f9b2e0058e
Fix typo
2015-10-23 19:01:38 +02:00
Fabian Affolter
a155587693
Remove configuration details
2015-10-23 19:01:19 +02:00
Fabian Affolter
0e145ec130
Remove configuration details
2015-10-23 18:39:50 +02:00
Fabian Affolter
44b08a06e7
Remove configuration details
2015-10-23 18:26:36 +02:00
Fabian Affolter
75f737144a
Remove configuration details
2015-10-23 18:24:07 +02:00
Fabian Affolter
170742b0a7
Remove configuration details
2015-10-23 18:15:12 +02:00
Fabian Affolter
6115be7c42
Remove configuration details
2015-10-23 18:13:45 +02:00
Fabian Affolter
84a9a300d6
Fix link
2015-10-23 18:13:28 +02:00
Fabian Affolter
55718aac66
Remove configuration details
2015-10-23 18:10:32 +02:00
MakeMeASandwich
b6e6512367
media_player/denon: refactor
...
* connect only if necessary
* do not throw errors if offline
2015-10-23 17:35:08 +02:00
Per Sandström
5b7389de55
bugfix, 1 = force pause
2015-10-18 21:05:30 +02:00
happyleavesaoc
7ca21f577d
fixed merge conflict
2015-10-10 16:53:55 -04:00
happyleavesaoc
168516f5da
addressed PR comments
2015-10-10 16:45:13 -04:00
Fabian Affolter
47f994b867
Move configuration details to docs
2015-10-09 23:33:59 +02:00
happyleavesaoc
d4d91bfdbb
Amazon Fire TV device support
2015-10-09 17:06:35 -04:00
Paulus Schoutsen
e0149c4ee4
Merge pull request #488 from balloob/itunes-play-media
...
iTunes play_media
2015-10-08 12:48:35 -07:00