Ville Skyttä
a4c0c34028
Use ssdp udn uuid as Samsung TV unique id ( #18022 )
2018-11-02 11:50:07 +02:00
kennedyshead
1cbb5b8e51
State is set to UNKNOWN rather than ON in order to make UI have an play/pause button ( #17357 )
2018-10-15 11:42:27 +02:00
kennedyshead
e00ed84d84
The ping command will not detect device in standby as off ( #17358 )
2018-10-12 14:51:03 +02:00
Alok Saboo
26f2e3dd8b
Fix samsung bug ( #17285 )
2018-10-09 21:43:59 +02:00
Ana Paula Gomes
02bf07d9df
Add timeout and fix oscillations on Samsung TV component ( #17102 )
...
* Add timeout and fix oscillations
* Adjust code to py3.5.3
* Clean code
2018-10-04 16:02:14 +02:00
Fabian Affolter
d2d715faa8
Upgrade wakeonlan to 1.1.6 ( #16512 )
2018-09-10 16:07:31 +02:00
Fabian Affolter
0d7ee9b93b
Order imports ( #16515 )
2018-09-09 14:26:06 +02:00
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ( #16171 )
...
* add_devices -> add_entities
* Lint
* PyLint
* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Ville Skyttä
e31dd4404e
Pylint 2 fixes ( #15487 )
...
* pylint 2 inline disable syntax fixes
* pylint 2 logging-not-lazy fixes
* pylint 2 consider-using-in fixes
* Revert pylint 2 inline disable syntax fixes addressing unused-imports
Will have a go at removing more unused imports altogether first.
2018-07-17 19:34:29 +02:00
Matt LeBrun
0094fd5c34
Add channel changing support to SamsungTV component ( #14451 )
...
Add channel changing support to SamsungTV component
2018-06-26 16:22:10 +02:00
Ville Skyttä
4bd7a7eee3
Remove inline pylint disables for messages disabled in pylintrc ( #14978 )
2018-06-16 00:15:46 +02:00
Ong Vairoj
d7b7370c82
Samsung TV can't turn off after idle period ( #14587 )
...
When Samsung TV is idle for a period of time after issued a command,
subsequent 'turn_off' command won't turn off the TV. The issue is seen
in Samsung models with websocket as discussed in #12302 .
== Reproducible Steps
1. Turn on TV (either via HA or directly).
2. Issue some commands e.g. volume ups / downs.
3. Wait for ~1 minute.
4. Issue turn_off command via HA. TV won't turn off.
5. Issue subsequent turn off commands won't turn off TV still.
6. However, issue some other commands e.g. volume ups / downs multiple
times in a row and then turn_off will turn off the TV.
== Root Cause
The underlying websocket connection opened by samsungctl get closed
after some idle time. There was no retry mechanism so issued commands
would intermittently fail but the subsequent one would succeed when
`_remote` get recreated. With `turn_off()`, however, there is an
additional call to `self.get_remote().close()` which indirectly caused
new connection to be created and then closed immediately. This causes the
component to stuck in failure mode when turn_off command is repeatly
issued.
== The Fix
Recreate the connection and retry the command if connection is closed
to avoid silent failures due to connection closed. Also set `_remote`
to None after calling close() to put it in correct state.
This fix eliminates intermittent command failure and failure mode in
turn_off().
2018-06-09 09:22:34 -04:00
uchagani
9658f4383c
Update samsungctl library to latest version ( #12769 )
...
* update samsungctl library to latest version
* add websocket dependency
2018-02-28 07:37:12 +01:00
tadly
98b47cecbd
Upgrade wakeonlan to 1.0.0 ( #12190 )
2018-02-05 16:04:31 -08:00
kennedyshead
7ad870c4ff
Online state for samsungtv is jumping when TV is idle ( #11998 )
...
* Set timeout to offline
* Have to rewrite to use ping instead.
2018-01-29 14:55:39 -08:00
kennedyshead
0f26ebe954
Use strict timeout when polling Samsung TV (Fix for #6375 ) ( #11759 )
2018-01-22 08:11:16 +00:00
Lewis Juggins
3c1f8cd882
Handle OSError when forcibly turning off media_player.samsungtv ( #10997 )
2017-12-07 16:30:51 +00:00
Touliloup
6b410d8076
Correction of Samsung Power OFF behaviour ( #10907 )
...
* Correction of Samsung Power OFF behaviour
Addition of a delay after powering OFF a Samsung TV, this avoid status
update from powering the TV back ON.
Deletion of update() return statement, return value not used.
* Rename self._end_of_power_off_command into self._end_of_power_off
* Removal of unused line break in Samsung TV component
2017-12-03 18:34:45 +01:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Paulus Schoutsen
edf500e66b
Upgrade netdisco to 1.0.0rc2 ( #7008 )
...
* Upgrade netdisco to 1.0.0rc2
* fix tests
2017-04-11 20:10:02 -07:00
Pascal Vizeli
a8add06a40
Bugfix samsungtv discovery ( #6438 )
2017-03-05 23:52:15 +01:00
Justin Dray
b7b1429ac7
Add support for waking up Samsung TVs over the network ( #6114 )
...
* Add support for waking up Samsung TVs over the network
* Return the correct supported features for samsungtv
* Update requirements_all
2017-02-21 16:57:29 +01:00
Adam Mills
ecfe8e0a9a
Formalize supported_features as entity property ( #5794 )
...
* Formalize supported_features as entity property
* Remove extra emulated_hue conditions
* Generate log message in executor
2017-02-07 20:42:45 -08:00
Adam Mills
469472914b
Add SUPPORT_PLAY flag ( #5181 )
...
* Add SUPPORT_PLAY flag
* Add SUPPPORT_PLAY to existing media players
* Leave usage of new flag to device devs
2017-01-09 01:09:30 +01:00
Brandon Weeks
c14a5fa7c1
Upgrade samsungctl to 0.6.0 ( #5126 )
2017-01-03 23:28:23 +01:00
Magnus Ihse Bursie
103fffa0f4
Add support for new netdisco detection of Samsung Smart TV. ( #4925 )
2016-12-15 22:20:00 -08:00
Magnus Ihse Bursie
779f520c56
Make UI more responsive to power off for Samsung Smart TV ( #4438 )
2016-11-17 22:00:18 -08:00
Paulus Schoutsen
ee5f228309
Make services yield ( #4187 )
...
* Make services yield
* Disable pylint abstract-method check
* add input_select
* add input_slider
* change to async vers.
* fix lint
* yield on add_entities as other components does
2016-11-03 18:32:14 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Erik Eriksson
3317b4916b
OSError is alias for IOException and base class for many other exceptions - no need to catch redundant exceptions if OSError already present in except-clause ( #4111 )
2016-10-29 15:33:56 -07:00
Fabian Affolter
ea1e4ea215
Migrate to voluptuous ( #3214 )
2016-09-05 19:22:26 +02:00
thejacko12354
e437151881
Update samsungtv.py ( #2286 )
...
Changed line 75 'KEY_POWER' to 'KEY'
Fixes the problem that every 10 sec the tv interprets that the Up-button is pressed
2016-06-12 16:03:40 -07:00
Fabian Affolter
cf7c2c492a
Fix PEP257 issues
2016-03-08 10:34:33 +01:00
Paulus Schoutsen
e80309c03c
Fix imports (using isort)
2016-02-18 21:27:50 -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