supersaiyanmode / PyWebOSTV

Python API for controlling LG TVs (Web OS)
MIT License
261 stars 50 forks source link

Get current screen state #103

Open cbhhargava opened 6 months ago

cbhhargava commented 6 months ago

Hi, I see many references to turn the screen on or off (not turning the TV off/on entirely) but I was not able to find any references for getting the current state of screen. I'm trying to make a smart switch to turn the screen on/off but need the current state to make it smart. Right now its just dumb and always assumes tv is on. Its an OLED tv so I want to add this switch to some cool presence detection automations.