Comments (11)
Same here.
Home Assistant Core release: 0.107.4
Operating environment: docker
SamsungTV Smart Integration release: v0.1.13
TV model: KS9000 (US) KS8000 (EU)
SmartThings integration NOT configured
from ha-samsungtv-smart.
Looking log seems that KEY_POWER command is sent in any case, but I discover a possible issue in the power status check.
Can you retry with the last version that I just released (v0.1.15)?
from ha-samsungtv-smart.
I've just updated to v0.1.15 and retried, but without success: media_player.toggle doesn't switch off TV (even if the TV entity status is 'on' - checked from dev tools states tab), while calling the media_player.play_media > send_key service shuts down the TV correctly.
from ha-samsungtv-smart.
Command sent to the TV with play_media
or with the power off
button is exactly the same, the only difference is that the power button check the tv status before sending the command.
Also I see from your log that command is sent in any case. You don't have any error in the log?
Does all the other control work properly (volume, play pause etc.)
How do you configure the component? Using configuration.yaml or config flow?
from ha-samsungtv-smart.
I just noticed. If the TV is on and I push the power button on my lovelace card the power button color turns as if the TV is off, but the TV is still on. If I then push one more time on the power button the TV turns itself off, but the power button is colored as if the TV is on. And then takes like a minute to detect that it's off and then goes to grey.
from ha-samsungtv-smart.
When you push the power off buttom, the status is forced to off and then start a delay of 20 sec. because normally the TV continue answer to ping for this time. During this period, if you send again a power command, a KEY_POWER is sent again to turn the TV back on. So it seems that you need to send the KEY_POWER 2 times to have the TV answer to the command.
Are all the other commands working properly? Are you sure that when you use the MEDIA_PLAY service you don't have to send the command 2 times?
from ha-samsungtv-smart.
Just to recap:
- all other commands seem to work well
media_player.play_media > send_key: KEY_POWER
always works normally (I can toggle TV status with just one service call);media_player.toggle
switches off TV only calling the service twice (I've kept TV on for more than 20s before trying);- when I switch off TV with HASS, the TV status on SmartThings app immediately changes: I wonder whether is possible to use some SmartThing event/status info to quickly update TV status on HASS instead of the 20s delay trick.
from ha-samsungtv-smart.
The only difference between media_player.play_media
and media_player.toggle
is that the first is an async methon and the second not, but at the end in HA all sync method are async method wrapped, so I do not see any difference. In any case i last version (v0.1.17) I converted the method to async, so try again now.
The local check is the faster and more reliable way to check the TV status. Health check via SmartThings is also done, but status update at SmartThings side obviosly take longer than local.
from ha-samsungtv-smart.
Thanks so much! Its working just perfect for me now. I've always used an IR blaster but this will replace that for this use case.
from ha-samsungtv-smart.
Good to hear.
I don't really understood what changed moving method to async, because the WS call is finally sync, but that's it!!
from ha-samsungtv-smart.
Thanks @ollo69, now all seems working fine!
from ha-samsungtv-smart.
Related Issues (20)
- Smartthings.md Instructions point to dead link HOT 2
- Google Home CH Up/Down not working HOT 2
- Custom Turn on Action HOT 1
- Option to use just the binary sensor to detect power status
- HomeKit not working HOT 2
- Power button switch to art mode does not work HOT 6
- How to start TV applications
- Samsung UE49K"8000 (2017 Tizen TV) sources issue HOT 1
- Full screen mp4 file in the browser
- HDMI sources gone? HOT 19
- Error retrieving proxied image HOT 2
- Can´t find SamsungTV Smart Addon HOT 2
- SmartThingsTV pypi module HOT 3
- Source State - media_input_source
- Update to the Application ID list links
- When app is running, title shows HDMI1 name HOT 2
- OSErrors when using send media key HOT 6
- State does not update properly? HOT 27
- Unsupported media type: key_ambient HOT 2
- Problems with audio mode HOT 1
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.
from ha-samsungtv-smart.