Git Product home page Git Product logo

Comments (11)

fillilutten avatar fillilutten commented on July 22, 2024

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.

ollo69 avatar ollo69 commented on July 22, 2024

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.

fredericks1982 avatar fredericks1982 commented on July 22, 2024

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.

ollo69 avatar ollo69 commented on July 22, 2024

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.

fillilutten avatar fillilutten commented on July 22, 2024

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.

ollo69 avatar ollo69 commented on July 22, 2024

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.

fredericks1982 avatar fredericks1982 commented on July 22, 2024

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.

ollo69 avatar ollo69 commented on July 22, 2024

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.

fillilutten avatar fillilutten commented on July 22, 2024

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.

ollo69 avatar ollo69 commented on July 22, 2024

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.

fredericks1982 avatar fredericks1982 commented on July 22, 2024

Thanks @ollo69, now all seems working fine!

from ha-samsungtv-smart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.