jsiegenthaler / homebridge-samsungtvht

Homebridge plugin for Samsung TV (D5000 series) and Home Theater (D5500 series) from ca 2011.
MIT License
13 stars 1 forks source link

TV / Tiles non responsive #21

Closed goshawk2929 closed 1 month ago

goshawk2929 commented 3 months ago

Describe Your Problem: Samsung TV UN65JS8500FXZA. According to Samsung, this is not Titan OS as when bring up the app screen, it shows the legacy Osray OS. I was able to successfully add TV to HomeKit. I am samsungtvht as a child bridge. I did NOT add the bridge to HomeKit, only added the TV accessory. But when I go to try turn TV on or off, the device is unresponsive.

Logs:


[30/06/2024, 21:51:57] [Samsung TV] Initializing samsungtvht platform...
[30/06/2024, 21:51:57] [Samsung TV] Initializing child bridge xxxxxxxxxx
[30/06/2024, 21:51:57] Loading 3 accessories...
[30/06/2024, 21:51:59] [Samsung TV] Launched child bridge with PID xxxxx
[30/06/2024, 21:52:00] [Samsung TV] Loaded homebridge-samsungtvht v1.0.14 child bridge successfully
[30/06/2024, 21:52:00] [Samsung TV] homebridge-samsungtvht v1.0.14, node v20.15.0, homebridge v1.8.3
[30/06/2024, 21:52:00] [Samsung TV] Loading device 1: Samsung TV 192.168.1.xx
[30/06/2024, 21:52:00] Homebridge v1.8.3 (HAP v0.12.2) (Samsung TV) is running on port xxxxx.
[30/06/2024, 21:52:00] Samsung TV E87C is running on port xxxxx.
[30/06/2024, 21:52:00] Please add [Samsung TV E87C] manually in Home app. Setup Code: xxx-xx-xxx
[30/06/2024, 21:52:00] Registering platform 'homebridge-denon-tv.DenonTv'
[30/06/2024, 21:52:03] [Samsung TV] Samsung TV: Power changed from 0 OFF to 1 ON
[30/06/2024, 21:52:03] [Samsung TV] Samsung TV: Media state changed from 0 PLAY to 2 STOP
[30/06/2024, 21:52:56] [Samsung TV] Samsung TV: sendKey: KEY_POWEROFF error Samsung Remote Client: Device is off or unreachable
[30/06/2024, 21:52:59] [Samsung TV] Samsung TV: setPower: powerOnCommand: echo 'on 0' | cec-client -s -d 1
[30/06/2024, 21:52:59] [Samsung TV] Samsung TV: setPower: powerOnCommand: /bin/sh: 1: cec-client: not found

Plugin Config:


{
    "name": "Samsung TV",
    "pingCommand": "ping -c 1 -w 20",
    "pingInterval": 3,
    "pingResponseOff": "received, 100% packet",
    "doublePressTime": 250,
    "triplePressTime": 450,
    "doublePressDelayTime": 300,
    "devices": [
        {
            "name": "Samsung TV",
            "ipAddress": "192.168.x.xx",
            "type": "television",
            "manufacturer": "Samsung",
            "powerOnCommand": "echo 'on 0' | cec-client -s -d 1",
            "powerOffButton": "KEY_POWEROFF",
            "viewTvSettingsCommand": "KEY_MENU",
            "inputs": [
                {
                    "inputSourceType": "3",
                    "inputDeviceType": "1"
                }
            ],
            "arrowUpButton": "KEY_UP",
            "arrowUpButtonDoubleTap": "KEY_CHUP",
            "arrowUpButtonTripleTap": "KEY_UP",
            "arrowDownButton": "KEY_DOWN",
            "arrowDownButtonDoubleTap": "KEY_CHDOWN",
            "arrowDownButtonTripleTap": "KEY_DOWN",
            "arrowLeftButton": "KEY_LEFT",
            "arrowLeftButtonDoubleTap": "KEY_REWIND",
            "arrowLeftButtonTripleTap": "KEY_LEFT",
            "arrowRightButton": "KEY_RIGHT",
            "arrowRightButtonDoubleTap": "KEY_FF",
            "arrowRightButtonTripleTap": "KEY_RIGHT",
            "selectButton": "KEY_ENTER",
            "selectButtonDoubleTap": "KEY_SOURCE",
            "selectButtonTripleTap": "KEY_HDMI",
            "playPauseButton": "KEY_PLAY",
            "playPauseButtonDoubleTap": "KEY_PAUSE",
            "playPauseButtonTripleTap": "KEY_STOP",
            "backButton": "KEY_RETURN",
            "backButtonDoubleTap": "KEY_EXIT",
            "backButtonTripleTap": "KEY_RETURN",
            "infoButton": "KEY_MENU",
            "infoButtonDoubleTap": "KEY_INFO",
            "infoButtonTripleTap": "KEY_TOOLS",
            "volupButton": "KEY_VOLUP",
            "voldownButton": "KEY_VOLDOWN",
            "voldownButtonTriplePress": "KEY_MUTE",
            "muteButton": "KEY_MUTE"
        }
    ],
    "platform": "samsungtvht",
    "_bridge": {
        "username": "xx:xx:xx:xx:xx:xx",
        "port": xxxxx
    }
}

Screenshots:

Environment:

jsiegenthaler commented 3 months ago

Hi @goshawk2929 This plugin cannot turn the TV on via LAN, as the TV shuts down the ethernet LAN port when it is turned off. It can only turn on via HDMI CEC, which requires your homebridge device to be connected to the TV via HDMI.

As for turning it off, make sure the IP address is correct, and that you have enabled the TV to accept remote control over the LAN. See your TV's menu for this.

If the IP address is correct, the TV accessory should detect power on and off state as it pings the TV and waits for a ping response.

jsiegenthaler commented 3 months ago

Can you control the TV via the TV Remote Control in the iPhone? If so, then the IP address is correct and the TV can respond to the remote commands

jsiegenthaler commented 1 month ago

Closing issue as no response from @goshawk2929