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

Apple Remote Control #13

Closed Snoopy5570 closed 1 year ago

Snoopy5570 commented 1 year ago

Describe Your Problem: With the new iPhone 14 Pro there is the new Apple remote control that does not recognize. No command works on the remote. Directly from homebridge I can turn the TV volume off and up/lower. Samsung TVs. My TV is F series. How can it be solved?

Plugin Config:

 {
            "name": "Samsung TV HT",
            "pingCommand": "ping -c 1 -w 20",
            "pingInterval": 3,
            "pingResponseOn": "received, 0% packet",
            "pingResponseOff": "received, 100% packet",
            "doublePressTime": 250,
            "triplePressTime": 450,
            "doublePressDelayTime": 300,
            "devices": [
                {
                    "name": "TV Camera Da Letto",
                    "ipAddress": "xxx.xxx.xxx.xxx",
                    "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_TOOLS",
                    "playPauseButton": "KEY_CONTENTS",
                    "playPauseButtonDoubleTap": "KEY_POWEROFF",
                    "playPauseButtonTripleTap": "KEY_PAUSE",
                    "backButton": "KEY_RETURN",
                    "backButtonDoubleTap": "KEY_EXIT",
                    "backButtonTripleTap": "KEY_RETURN",
                    "infoButton": "KEY_CH_LIST",
                    "infoButtonDoubleTap": "KEY_MENU",
                    "infoButtonTripleTap": "KEY_TOOLS",
                    "volupButton": "KEY_VOLUP",
                    "voldownButton": "KEY_VOLDOWN",
                    "voldownButtonTriplePress": "KEY_MUTE",
                    "muteButton": "KEY_MUTE"
                },
                {
                    "name": "TV Cucina",
                    "ipAddress": "xxx.xxx.xxx.xxx",
                    "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_TOOLS",
                    "playPauseButton": "KEY_CONTENTS",
                    "playPauseButtonDoubleTap": "KEY_POWEROFF",
                    "playPauseButtonTripleTap": "KEY_PAUSE",
                    "backButton": "KEY_RETURN",
                    "backButtonDoubleTap": "KEY_EXIT",
                    "backButtonTripleTap": "KEY_RETURN",
                    "infoButton": "KEY_CH_LIST",
                    "infoButtonDoubleTap": "KEY_MENU",
                    "infoButtonTripleTap": "KEY_TOOLS",
                    "volupButton": "KEY_VOLUP",
                    "voldownButton": "KEY_VOLDOWN",
                    "voldownButtonTriplePress": "KEY_MUTE",
                    "muteButton": "KEY_MUTE"
                },
                {
                    "name": "TV Soggiorno",
                    "ipAddress": "xxx.xxx.xxx.xxx",
                    "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_TOOLS",
                    "playPauseButton": "KEY_CONTENTS",
                    "playPauseButtonDoubleTap": "KEY_POWEROFF",
                    "playPauseButtonTripleTap": "KEY_PAUSE",
                    "backButton": "KEY_RETURN",
                    "backButtonDoubleTap": "KEY_EXIT",
                    "backButtonTripleTap": "KEY_RETURN",
                    "infoButton": "KEY_CH_LIST",
                    "infoButtonDoubleTap": "KEY_MENU",
                    "infoButtonTripleTap": "KEY_TOOLS",
                    "volupButton": "KEY_VOLUP",
                    "voldownButton": "KEY_VOLDOWN",
                    "voldownButtonTriplePress": "KEY_MUTE",
                    "muteButton": "KEY_MUTE"
                }
            ],
            "platform": "samsungtvht"
        }

Screenshots:

1CDE40F9-6C0E-44C9-8281-12C75214A35D

2D3D1238-19A8-4F01-A3ED-1172B1C7CAEB

Environment:

jsiegenthaler commented 1 year ago

Hi. After Homebridge is restarted, Homebridge starts advertising the services on the network using mDNS. It take some time for the Apple devices to find these services and recognize them. On my iPhone 12 this can be a few minutes. Immediately after restart, there may be no devices shown in the TV list in the remote control. I find it best to do the following:

  1. Force close the Home app on all devices
  2. Restart homebridge, wait for the restart sequence to complete and the plugins to load
  3. Open the Home app, on the first open the Home app will do a full refresh of the TV devices
  4. Wait a few minutes then open the Remote Control. The wait is needed for the mDNS advertisers to be broadcast and recognized. If the devices are not seen, wait a few more minutes (without restarting anything)

PS: You should update your node. v17 is no longer current. The current node version that is in LTS (LongTermSupport) is v18.12.0

Snoopy5570 commented 1 year ago

Hi. After Homebridge is restarted, Homebridge starts advertising the services on the network using mDNS. It take some time for the Apple devices to find these services and recognize them. On my iPhone 12 this can be a few minutes. Immediately after restart, there may be no devices shown in the TV list in the remote control. I find it best to do the following:

  1. Force close the Home app on all devices
  2. Restart homebridge, wait for the restart sequence to complete and the plugins to load
  3. Open the Home app, on the first open the Home app will do a full refresh of the TV devices
  4. Wait a few minutes then open the Remote Control. The wait is needed for the mDNS advertisers to be broadcast and recognized. If the devices are not seen, wait a few more minutes (without restarting anything)

PS: You should update your node. v17 is no longer current. The current node version that is in LTS (LongTermSupport) is v18.12.0

I was wrong to write... the node is already updated to 18.12.0. I unconfigured the TVs and reconfigured them on Home. Now he also sees them on the remote control but if he selects a TV he looks but does not connect

C1CF5772-0A87-415A-BE5B-80D9D4E5331E

E7A3E1C4-6BDC-425A-880D-C962B123476F

Snoopy5570 commented 1 year ago

Now magically it has connected .... It was enough to erase and reconfigure the TVs. Solved and thank you.

jsiegenthaler commented 1 year ago

Closing as issue was due to local environment