remote control HISENSE 65U8GQ

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Hello everyone.
I bought a HISENSE 65U8GQ TV with the VIDAA system.
I connected it to the LAN and I would like to add it to the Domoticz system. Has anyone encountered any plugin or script for this TV.
I searched the internet and found a topic with MQTT generated from the TV but I can't connect to it using MQTT Explorer. Maybe someone has some information about this system how to manage it.
For now, I have made an IR remote control on Wemos D1 but it's not that because there is no information about the status of the device.
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hello @zabinskiwojciech,

Will this help you?

https://github.com/Krazy998/mqtt-hisensetv

If you can make a connection, Node RED can do the conversion and control Domoticz.

See also Steve's post in: https://discourse.nodered.org/t/best-br ... -red/64081

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Thank you, I already have something more because I need to import the certificate to mqtt explorer.
I added data to node-red and connected, messages are coming in
certificates for import:
Link https://github.com/d3nd3/Hisense-mqtt-k ... i_keys.zip

Host: IP Address of your TV
Username mqtt : hisenseservice
Passwd mqtt: multimqttservice
Port mqtt: 36669

Now I need to find out how to make entries in NodeRed to control the TV, I would like it to show the TV status as well
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Can you publish what you get in a Debug node, or can you publish what you have made so far.
What is the reason that you need a certificate for MQTT Explorer? Requirement from your TV, as your TV is a recent version and uses encrypted MQTT communication?

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Yes the TV uses encrypted mqtt but it already works for me.
And I did it:

Code: Select all

[{"id":"9682ea3b.60d2c","type":"inject","z":"48da0a04.a25ce4","name":"Mute","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"KEY_MUTE","payloadType":"str","x":380,"y":380,"wires":[["ee68e5ff.97a13"]]},{"id":"ee68e5ff.97a13","type":"mqtt out","z":"48da0a04.a25ce4","name":"Hisense TV ","topic":"/remoteapp/tv/remote_service/49:b9:b4:a3:8b:35$vidaa_common/actions/sendkey","qos":"2","retain":"","broker":"c82dca4e.38cbc","x":680,"y":380,"wires":[]},{"id":"2c6b32c3.f5e8f6","type":"inject","z":"48da0a04.a25ce4","name":"Volumeup","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"KEY_VOLUMEUP","payloadType":"str","x":390,"y":320,"wires":[["ee68e5ff.97a13"]]},{"id":"f366ec7b.6ba338","type":"inject","z":"48da0a04.a25ce4","name":"Volumedown","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"KEY_VOLUMEDOWN","payloadType":"str","x":400,"y":440,"wires":[["ee68e5ff.97a13"]]},{"id":"7dd8d7a1.56057","type":"inject","z":"48da0a04.a25ce4","name":"Power","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"KEY_POWER","payloadType":"str","x":390,"y":260,"wires":[["ee68e5ff.97a13"]]},{"id":"c82dca4e.38cbc","type":"mqtt-broker","name":"Hisense TV","broker":"192.168.1.102","port":"36669","tls":"67be0766.8fb1c8","clientid":"861003009000001000000732jkz6qeqb6zkws2zo4im5neorjnv42hde","usetls":true,"compatmode":true,"keepalive":"60","cleansession":false,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"67be0766.8fb1c8","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"rcm_certchain_pem.cer","keyname":"rcm_pem_privkey.pkcs8","caname":"","servername":"","verifyservercert":false}]
And now with the same nodered I can turn the TV on or off or turn up and down the volume.

I would like to read the status of TV on or off in domoticz and also turn the TV on and off. I have a 167 IDX to the status of a switch and switching on with an IDX 169 switch.

Additionally, wake up and down the IDX 170 only a multi-select switch as 10/20 in percent.

Message from Node Red
Power Off:

Code: Select all

{	"statetype":	"fake_sleep_0",	"name":	"",	"totaltime":	0,	"curtime":	0,	"starttime":	0,	"playstate":	"",	"mediatype":	"",	"resolving":	""}
Power On:

Code: Select all

{	"statetype":	"fake_sleep_1",	"name":	"",	"totaltime":	0,	"curtime":	0,	"starttime":	0,	"playstate":	"",	"mediatype":	"",	"resolving":	""}
Volume :
KEY_VOLUMEUP

Code: Select all

{	"volume_type":	0,	"volume_value":	14}
KEY_VOLUMEDOWN

Code: Select all

{	"volume_type":	0,	"volume_value":	13}

In the first code, the flows that I managed to create are copied and they work.
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hello @zabinskiwojciech,
Yes the TV uses encrypted mqtt but it already works for me.
That is great, that you can receive status information from your TV.

You said also:
I would like to read the status of TV on or off in domoticz and also turn the TV on and off. I have a 167 IDX to the status of a switch and switching on with an IDX 169 switch.
You will have more possibilities than only the status for ON/OFF.
You should define for yourself, which type of Domoticz "sensor" you want to use, e.g. a "Text" sensor or a "Switch"

You can also send, according to the Github link, I sent you, various commands, like "Changing the Input Source" or "Starting an App (Youtube, Netflix , etc)"

For a single command, like On/Off a single Switch would be fine, but in case of multiple inputs or apps, I would recommend to configure a "Selector Switch", like on the picture below.

Screenshot_TV_Input_Source1.png
Screenshot_TV_Input_Source1.png (48.73 KiB) Viewed 2532 times

If you edit the Selector Switch you can change the Name, Switch Icon. Selector Levels and so on.

Screenshot_TV_Input_Source2.png
Screenshot_TV_Input_Source2.png (130.63 KiB) Viewed 2532 times

If you have MQTT configured on your Domoticz, every time you click on one of the selectors, a MQTT command will be send, where svalue1 presents the level.

Screenshot_TV_Input_Source3.png
Screenshot_TV_Input_Source3.png (28.03 KiB) Viewed 2532 times

This value you can use to send the correct command to the TV.

Regards
Last edited by FireWizard on Saturday 06 August 2022 22:41, edited 1 time in total.
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Yes, only I do not know much about NodeRed and I do not know how to make these connections to send, for example, the status of the TV to the switch in domoticz or send about mute the volume from domoticz to TV. If I already knew how to make a link in nodered, I will manage somehow.
For starters, I would use switch type switches.
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hi @zabinskiwojciech,

I can give you the necessary support, but I asked Stephen McLaughlin, if he can publish his flow, as it will be a waste of time to try to invent the wheel twice.

See: https://discourse.nodered.org/

Let's wait for a reply, before I create something.

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Well, I did not manage to create anything.
As I wrote earlier, I would need to read the status of the TV whether it is turned on or off on the switchlight IDX: 167 on / off and the selection switch with the IDX number: 450 in the 10% volume UP position, 20% Mute position, 30% volume DOWN position.
I only have what I had, TV connected Mqtt to Node-Red, added reading and broadcasting to Domoticz mqtt server.
Can anyone help to combine it all?
I found such an article, another TV manufacturer but ... I think I know too little about it

https://robothuis.nl/2020/11/02/koppel- ... -domoticz/
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hello @zabinskiwojciech,

Of course we can try to help you.

As far as I looked into the documentation, I have seen that this type of TV can be switched ON by means of Wake on Lan. Did you create a virtual switch (with IDX 167) that performs that function?
If so, does it work? Do you want to operate your TV from Domoticz this way?

Do you want to operate your TV, except from the TV's own remote, also from other sources like "Google Home" or "Alexa"

What type of device is IDX 167? Just an On/Off switch?

With this info, I can try to create something.

Regards
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

hello @zabinskiwojciech,

You wrote:
I think I know too little about it
I'm going to try to change that :D

You wanted:
I would need to read the status of the TV whether it is turned on or off on the switchlight IDX: 167 on / off
The same Switch, that switches your TV to "ON" and "OFF" is capable to indicate whether the TV is "ON" or "OFF".
So, you create a new hardware and select "Dummy (Does nothing, use for virtual switches only).
Next step is to "Create Virtual Sensors". As "Sensor Type", you select "Switch". It defaults to "Switch Type" as "On/Off". Leave it as such.

Next, you wrote:
the selection switch with the IDX number: 450 in the 10% volume UP position, 20% Mute position, 30% volume DOWN position.
Under the same hardware project create another dummy with the "Sensor Type" "Selector Switch".

For both note down the IDX. In your case 167 and 450.
You will see, something as shown below.

Screenshot_TV_On-Off and Selector_Switch.png
Screenshot_TV_On-Off and Selector_Switch.png (76.13 KiB) Viewed 2441 times
Configure the selector switch. I selected the commonly used multimedia symbols, but if you prefer text, such as "UP", "Mute" and "Down", feel free to change it.

Configure the "Selector Switch" as follows:

Screenshot_TV_Selector_Switch_Config.png
Screenshot_TV_Selector_Switch_Config.png (346.35 KiB) Viewed 2441 times

For level 0 (not used), you have to fill in: &#9632
For level 10, you have to fill in: &#9650
For level 20, you have to fill in: &#128263
For level 30, you have to fill in: &#9660

That is all you have to do in Domoticz.

Next post will describe the Node Red part

TO BE CONTINUED
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

This part describes the Node Red part of the TV Control function

Create a flow as follows:

Screenshot_TV_Node_Red_flow.png
Screenshot_TV_Node_Red_flow.png (30.59 KiB) Viewed 2440 times
The first node is the domoticz/out node.

Do the following:

Configure your MQTT server (with the default port 1883).
Action: Subscribe to single topic
Topic: domoticz/out
Output: a parsed JSON object
Name: Whatever you want.
This node is not encrypted. It communicates with Domoticz

The next node is a "Switch" node. called Filter IDX. It filters/splits the IDX. IDX 167 goes to the first output and 450 should go to the second output.
In my case the indexes are 17 (167) and 18 (450). You should change that in the Switch node!

The Wake on LAN node is a non-default node and should be installed from the Node Red palette.
Configure the correct MAC address of your TV and the broadcast address of your (sub)net, normally ending with 255 (e.g. 192.168.1.255)
Leave the rest as default

The MQTT Out node is the node to your TV. This one is encrypted. Take care of that and configure it accordingly.

If you are finished, you can remove the 3 debug nodes. I left them in for your convenience.

Screenshot_TV_Node_Red_flow_debug.png
Screenshot_TV_Node_Red_flow_debug.png (28.7 KiB) Viewed 2440 times
The commands above (except the "TV Wake on Lan") will be send to your TV.
The text "TV Wake on Lan" has been used for debug purposes.

You will find the complete flow below:

Code: Select all

[
    {
        "id": "3260237c8fd9576f",
        "type": "tab",
        "label": "HiSense TV",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "49b22940c7e330d7",
        "type": "mqtt in",
        "z": "3260237c8fd9576f",
        "name": "",
        "topic": "domoticz/out",
        "qos": "2",
        "datatype": "json",
        "broker": "2c82f21098856130",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 170,
        "y": 180,
        "wires": [
            [
                "c29cb5940c57977e"
            ]
        ]
    },
    {
        "id": "c29cb5940c57977e",
        "type": "switch",
        "z": "3260237c8fd9576f",
        "name": "Filter IDX",
        "property": "payload.idx",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "17",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "18",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 360,
        "y": 180,
        "wires": [
            [
                "59d5264e0d9e868f"
            ],
            [
                "9a99c70405ae3fdf"
            ]
        ]
    },
    {
        "id": "59d5264e0d9e868f",
        "type": "function",
        "z": "3260237c8fd9576f",
        "name": "function 1",
        "func": "if (msg.payload.nvalue === 1) {\n    msg.payload = \"TV Wake on Lan\";\n    return [msg,null]\n}\nelse if (msg.payload.nvalue === 0) {\n    msg.payload = \"KEY_POWER\";\n    return [null,msg]\n}    ",
        "outputs": 2,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 540,
        "y": 120,
        "wires": [
            [
                "309069120137f4d6",
                "31a5f12e4e14e927"
            ],
            [
                "a94fd3a4a5278e4c",
                "d5181908db537533"
            ]
        ]
    },
    {
        "id": "309069120137f4d6",
        "type": "debug",
        "z": "3260237c8fd9576f",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 100,
        "wires": []
    },
    {
        "id": "a94fd3a4a5278e4c",
        "type": "debug",
        "z": "3260237c8fd9576f",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 140,
        "wires": []
    },
    {
        "id": "31a5f12e4e14e927",
        "type": "wake on lan",
        "z": "3260237c8fd9576f",
        "mac": "49:B9:B4:A3:8B:35",
        "host": "192.168.1.255",
        "udpport": 9,
        "numpackets": 3,
        "interval": 100,
        "name": "TV Wake on Lan",
        "x": 790,
        "y": 60,
        "wires": []
    },
    {
        "id": "d5181908db537533",
        "type": "mqtt out",
        "z": "3260237c8fd9576f",
        "name": "Hisense TV",
        "topic": "/remoteapp/tv/remote_service/49:b9:b4:a3:8b:35$vidaa_common/actions/sendkey",
        "qos": "2",
        "retain": "false",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "2c82f21098856130",
        "x": 770,
        "y": 180,
        "wires": []
    },
    {
        "id": "0c9a0e1054a4b53c",
        "type": "debug",
        "z": "3260237c8fd9576f",
        "name": "debug 3",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 760,
        "y": 240,
        "wires": []
    },
    {
        "id": "9a99c70405ae3fdf",
        "type": "function",
        "z": "3260237c8fd9576f",
        "name": "function 2",
        "func": "switch (msg.payload.svalue1) {\n    \n    case \"10\":\n    msg.payload = \"KEY_UP\";\n    break;\n    \n    case \"20\":\n    msg.payload = \"KEY_MUTE\";\n    break;\n    \n    case \"30\":\n    msg.payload = \"KEY_DOWN\";\n    break;\n    \n}\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 540,
        "y": 240,
        "wires": [
            [
                "0c9a0e1054a4b53c",
                "d5181908db537533"
            ]
        ]
    },
    {
        "id": "2c82f21098856130",
        "type": "mqtt-broker",
        "name": "",
        "broker": "192.168.10.51",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    }
]
I hope that these 2 posts will help you further. Any questions, do not hesitate to ask.

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Hello, I forgot about the topic, a lot of home affairs. Tomorrow I will upload your settings, convert it into my equipment and give you the answer whether it will work. I did wake on LAN to node RED tomorrow I will deal with the rest.
Thank you very much again.
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Hello again, I have added the flow, changed the values in the switch - the IDX numbers have changed, now I have a switch of 450 and the volume is 451 and information from mqtt comes to domoticz / out, but when I connect the debug to the allocator, nothing appears anymore.

my flow looks like this:

Code: Select all

[{"id":"f77f03a8.a65ad8","type":"debug","z":"48da0a04.a25ce4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":490,"y":480,"wires":[]},{"id":"37932263.bc6afe","type":"mqtt in","z":"48da0a04.a25ce4","name":"","topic":"domoticz/out","qos":"2","datatype":"auto","broker":"c94f8201.aac178","x":110,"y":300,"wires":[["4d18aedb.0649d8"]]},{"id":"4d18aedb.0649d8","type":"switch","z":"48da0a04.a25ce4","name":"Filter IDX","property":"payload.idx","propertyType":"msg","rules":[{"t":"eq","v":"450","vt":"num"},{"t":"eq","v":"451","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":300,"wires":[["b3dc4b99.007e18"],["8c243742.218078","f77f03a8.a65ad8"]]},{"id":"b3dc4b99.007e18","type":"function","z":"48da0a04.a25ce4","name":"function 1","func":"if (msg.payload.nvalue === 1) {\n    msg.payload = \"TV Wake on Lan\";\n    return [msg,null]\n}\nelse if (msg.payload.nvalue === 0) {\n    msg.payload = \"KEY_POWER\";\n    return [null,msg]\n}    ","outputs":2,"noerr":0,"initialize":"","finalize":"","x":500,"y":240,"wires":[["15b89c48.5726fc","88827117.7e77d8"],["95cb1284.c6d758","b6eb6b38.c47a88"]]},{"id":"15b89c48.5726fc","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":180,"wires":[]},{"id":"95cb1284.c6d758","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":220,"wires":[]},{"id":"88827117.7e77d8","type":"wake on lan","z":"48da0a04.a25ce4","mac":"A0:62:FB:1D:B0:99","host":"192.168.1.102","udpport":9,"numpackets":3,"interval":100,"name":"TV Wake on Lan","x":750,"y":120,"wires":[]},{"id":"b6eb6b38.c47a88","type":"mqtt out","z":"48da0a04.a25ce4","name":"Hisense TV","topic":"/remoteapp/tv/remote_service/49:b9:b4:a3:8b:35$vidaa_common/actions/sendkey","qos":"2","retain":"false","broker":"c82dca4e.38cbc","x":730,"y":300,"wires":[]},{"id":"a119150e.67b73","type":"debug","z":"48da0a04.a25ce4","d":true,"name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":720,"y":400,"wires":[]},{"id":"8c243742.218078","type":"function","z":"48da0a04.a25ce4","name":"function 2","func":"switch (msg.payload.svalue1) {\n    \n    case \"10\":\n    msg.payload = \"KEY_UP\";\n    break;\n    \n    case \"20\":\n    msg.payload = \"KEY_MUTE\";\n    break;\n    \n    case \"30\":\n    msg.payload = \"KEY_DOWN\";\n    break;\n    \n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":360,"wires":[["a119150e.67b73","b6eb6b38.c47a88"]]},{"id":"c94f8201.aac178","type":"mqtt-broker","name":"Serwer-MQTT-Dom","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"c82dca4e.38cbc","type":"mqtt-broker","name":"Hisense TV","broker":"192.168.1.102","port":"36669","tls":"67be0766.8fb1c8","clientid":"861003009000001000000732jkz6qeqb6zkws2zo4im5neorjnv42hde","usetls":true,"compatmode":true,"keepalive":"60","cleansession":false,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"67be0766.8fb1c8","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"rcm_certchain_pem.cer","keyname":"rcm_pem_privkey.pkcs8","caname":"","servername":"","verifyservercert":false}]
and this is the message that node-red gets from mqtt domoticz with the debug connected to domoticz / out

Code: Select all

{	"Battery" : 255,	"LastUpdate" : "2022-10-05 18:57:00",	"LevelActions" : "|||",	"LevelNames" : "Off|Vol up|Mute|Vol down",	"LevelOffHidden" : "true",	"RSSI" : 12,	"SelectorStyle" : "0",	"description" : "",	"dtype" : "Light/Switch",	"hwid" : "19",	"id" : "00014213",	"idx" : 451,	"name" : "Vol TV",	"nvalue" : 2,	"stype" : "Switch",	"svalue1" : "10",	"switchType" : "Selector",	"unit" : 1}
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hello @zabinskiwojciech,

Currently I'm on holiday and I do not have access to my computer.
When I'm back at home, I will look to your flow.

I have deleted the project, so I have to reinstall it.

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

Oki thanks, there are few so helpful people, best regards, rest.
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hello @zabinskiwojciech,

What do you mean with "allocator" in
but when I connect the debug to the allocator, nothing appears anymore.
Let us start with the On/Off command.

Questions:

Does the "On" command work? I expect not.

Your WoL node is not correctly configured.
As long as the device (TV) is not powered, it does not have an IP address.
So you should not configure the IP address in the Wake on LAN node, but the broadcast address.
So, change "Target Address" from 192.168.1.102 to 192.168.1.255

Test then the "On" command¨. Does that work?

Next step. If your TV is "On" press the button in Domoticz to "Off".

Does that work?

Let me know, before we continue with the Selector Switch.

Regards
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

alocator - node switch "filter IDX"
zabinskiwojciech
Posts: 79
Joined: Thursday 16 May 2019 16:23
Target OS: Linux
Domoticz version: 4.10776
Location: Warszawa
Contact:

Re: remote control HISENSE 65U8GQ

Post by zabinskiwojciech »

I changed according to your recommendations but it doesn't work
User avatar
FireWizard
Posts: 1868
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: remote control HISENSE 65U8GQ

Post by FireWizard »

Hi,

What are the IDX numbers of the On/Off switch and Selector Switch?
Can you also show the configuration of the MQTT input node?

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest