MrAsterisco / homebridge-hisense-tv

A Homebridge plugin to control RemoteNow-compatible HiSense TVs.
MIT License
21 stars 8 forks source link

Sent power off, error: null #36

Closed Anzic23 closed 2 years ago

Anzic23 commented 2 years ago

Describe The Bug: TV does not always turn off hisense 88l5vg

Logs:

[1/30/2022, 12:15:09 PM] [HiSenseTV] Set Characteristic On -> 0
[1/30/2022, 12:15:09 PM] [HiSenseTV] Run Python command: /homebridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py --key power 192.168.1.163 --ifname eth0 --certfile /homebridge/node_modules/homebridge-hisense-tv-remotenow/certificate.cer --keyfile /homebridge/node_modules/homebridge-hisense-tv-remotenow/privateKey.pkcs8
[1/30/2022, 12:15:09 PM] [HiSenseTV] Received Python command response: {,    "statetype": "sourceswitch",,    "sourceid": "HDMI1",,    "sourcename": "HDMI1",,    "is_signal": 1,,    "is_lock": 0,,    "hotel_mode": 0,,    "displayname": "HDMI1",}
[1/30/2022, 12:15:09 PM] [HiSenseTV] Current input is: HDMI1
[1/30/2022, 12:15:09 PM] [HiSenseTV] Received Python command response: null
[1/30/2022, 12:15:09 PM] [HiSenseTV] Sent power off, error: null
[1/30/2022, 12:15:19 PM] [HiSenseTV] Checking state for TV at IP: 192.168.1.163
[1/30/2022, 12:15:19 PM] [HiSenseTV] Connection to TV timed out.
[1/30/2022, 12:15:29 PM] [HiSenseTV] Checking state for TV at IP: 192.168.1.163
[1/30/2022, 12:15:29 PM] [HiSenseTV] Connection to TV timed out.
[1/30/2022, 12:15:39 PM] [HiSenseTV] Checking state for TV at IP: 192.168.1.163
[1/30/2022, 12:15:39 PM] [HiSenseTV] Connection to TV timed out.

Plugin Config:

{
            "ifname": "eth0",
            "devices": [
                {
                    "id": "HiSenseTV",
                    "name": "HiSense",
                    "ipaddress": "192.168.1.163",
                    "macaddress": "5c:34:00:cc:c9:18",
                    "sslmode": "custom",
                    "sslcertificate": "/homebridge/node_modules/homebridge-hisense-tv-remotenow/certificate.cer",
                    "sslprivatekey": "/homebridge/node_modules/homebridge-hisense-tv-remotenow/privateKey.pkcs8"
                }
            ],
            "platform": "HiSenseTV"
        }

Environment:

MrAsterisco commented 2 years ago

@Anzic23 hi! Are you still experiencing this issue?

Just by looking at the logs, I can't see any problem: the "power off" command was sent with no error (that's what error: null means) and then the TV stopped responding (meaning that it's off).

Feel free to reopen this issue if you have additional information.