More particularly what would be the best way to control the TV in Hass?
I am able to get most of the state of the tv by setting up a sensor on the /remoteapp/mobile/broadcast/ui_service/state topic and parsing the json.
{"statetype":"livetv","list_param":"1#0","channel_num":"22","eventid":"","progname":"Bananas In Pyjamas","starttime":1549661988,"endtime":1549662423,"detail":"Rita and Crocodile are making an allotment in Granny's garden. They plant carrots, cucumber and peas. But here comes a bird. They need one more thing. A scarecrow! Nobody can be scarier than Crocodile, right?","channel_param":"1#5767297#0#0","channel_name":"ABCComedy/Kids","sourceid":"0"}
However im not really sure how to control state of the TV and how to do the turn on the TV via WOL but send KEY_POWER to
I managed to get it work by just using a switch template and multiple switches (to turn on and off) and using ping to determine if the device is on or off but I would say it’s quite poor method to do it.
I’ve updated the github to better document the mqtt topics which should help someone build a better integration which allows you to change channels, sources and launch apps.
Happy to share my config to date if it helps anyone else.
Great thread mate! I was only looking for a solution for a hisense TV last week but couldn’t find anything. I bought the TV anyway and it arrives Tuesday, fingers crossed it works.
Thanks for responding. Let me know how you go. Curious to see how you get it automated. I have just setup a simple basic on and off for controlling the tv.
I also added EPG (if on live tv) or the source (hdmi etc) it’s set to (just a sensor with Json attributes)
The connection to the Hisense MQTT is possible for the Hisense H50U7A as well.
I am also able to send commands to the TV and control it. My problem is, when the television is shut down, after a certain time the MQTT connection is lost. Wake on LAN can turn it on again, but MQTT needs a while to connect back to the TV. I already reduced the keepalive time to 15 seconds - no effect. Is there a way to manually start the MQTT reconnection immediately after I turned on the Hisense with wake on Lan?
Have you got it setup your Mqtt to bridge with the tv mqtt? That’s how I have it setup so Hass always has connectivity to local Mqtt and the bridge reconnects pretty fast. Google setting up a Mqtt bridge.
I followed this instructions. But the Mosquitto log shows all the time “Connecting bridge Hisense (192.168.178.54:36669)” and does not establish any connection. My bridge settings are:
have you tried connecting with a mqtt client directly to the hisense tv and make sure it works? That will confirm if its working basically first. If that works then we can just focus on sorting out the mqtt bridge issues. If it doesnt maybe hisense changed the password on different models (we can try sniff these out)