Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

New method to query TV status (ON/OFF) #71

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RiRomain
Copy link

@RiRomain RiRomain commented Jan 15, 2018

This new method "is_tv_on()" report the status of the TV.

Until now, to know the status of the TV, a dummy key was sent and the exception/timeout was a sign of a TV being OFF. This is problematic on the latest TV (2017, 2018), as it wakes the TV up, if the TV was updating itself (or checking for update).

This was happening for example in Home-Assistant, the key command 'KEY' was send via websocket, randomly waking the TV up.

With the new method, the availability of the REST endpoint is checked (http://URL:PORT/api/v2/). It will still report the TV as being ON during update refresh, but won't turn it ON.

home-assistant/core#11179

This new method "is_tv_on()" report the status of the TV.
This aim at avoiding sending a dummy key for TV using websocket,
doing so can wake TV up if send during an update, or during an update
status check.

home-assistant/core#11179
@RiRomain RiRomain changed the title Report if TV is on New method to query TV status (ON/OFF) Jan 15, 2018
@Ape Ape mentioned this pull request Feb 27, 2018
@arsaboo
Copy link

arsaboo commented Sep 4, 2018

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants