Krazy998 / mqtt-hisensetv

Details to connect to Hisense Smart TV MQTT broker for home automation
MIT License
118 stars 12 forks source link

Retrieving currently selected source #11

Closed UncleLeoTheDad closed 6 months ago

UncleLeoTheDad commented 1 year ago

Thanks so much for documenting this! Has anyone figured out how to get the currently selected source? I know you can get the source list, but I was hoping to also get the selected source. Thanks!

Krazy998 commented 1 year ago

Publish: /remoteapp/tv/ui_service/HomeAssistant/actions/gettvstate

Subscribe: /remoteapp/mobile/broadcast/ui_service/state JSON output: {"statetype":"sourceswitch","sourceid":"4","sourcename":"HDMI 2","is_signal":1,"is_lock":0,"hotel_mode":0,"displayname":"HDMI 2"}