0.10.12 • Published 3 years ago

homebridge-philips-android-tv v0.10.12

Weekly downloads
65
License
Apache-2.0
Repository
github
Last release
3 years ago

Homebridge Philips Android TV

verified-by-homebridge

This plug-in provides support for Homebridge Philips Android TVs.

Protocols used are the same as an official Philips TV Remote Application.

Info

Plug-in tested on 50PUS7303 ( API 6.1.0 ), 49PUS7101 ( API 6.2.0 ), 75PUS7354 & 65OLED804/12 ( API 6.4.0 )

Functionalities:

  • Integration with Home app.

    • Turn on/off TV
    • Switch inputs (Applications, Channels) TV via Home app.
  • Integration of iOS Remote Widget

    • Control of TV speakers (inside widget use volume up/down buttons of TV)
      • Optional Lightbulb for scenes setup
    • Directional buttons
    • Menu, back buttons

Configuration

Preparing TV

To use plugin Wake over LAN feature, to allow to wake TV from sleep - Wake over LAN needs to be enabled in TV Network settings.

Pairing TV

In version 0.9 pairing support has been added via Homebridge Config UI. In the Plug-in settings option to Pair New TV shows up.

Plugin Config Splash Screen

Alternativly, I recommend to use the python script philips_android_tv.

It was noticed by users that TV resets all credentials between Software Updates. After updating TV, repair.

Configuration

Example plug-in configuration:

"platforms": [
    {
        "debug": false,
        "configVersion": 1,
        "tvs": [
            {
                "ip": "192.168.0.1",
                "mac": "33:44:55:66:77:88",
                "name": "Living Room TV",
                "apiUser": "<apiUser>",
                "apiPass": "<apiPass>",
                "apiVersion": 6,
                "alternativePlayPause": true,
                "dedicatedMuteSwitch": false,
                "dedicatedVolumeLightbulb": false,
                "apps": [
                    "Netflix",
                    "YouTube",
                    "TV"
                ],
                "channels": {
                    "useFavorites": false,
                    "favoriteListId": "<id>",
                    "includeAll": false,
                    "channels": [
                        "TVN"
                    ]
                }
            }
        ],
        "platform": "PhilipsAndroidTV"
    }
]

Platform options:

OptionDescriptionDefaultExample
debugEnable additional prints and debugging data. Required for troubleshooting purposes.falsefalse
configVersionVersion of configuration schema. Future proofing for backward compatibility/migration.11

TV options:

OptionDescriptionDefaultExample
ipIP Address of TVfalse192.168.0.1
macMAC Address of TV. Used for Wake over LAN feature. Wake over LAN feature needs to be enabled in TV settings. Pay attention to the correct syntax, only capital letters are allowedfalseAA:BB:CC:DD:EE
apiUserCredentials required for communication with TVfalseusername
apiPasswordCredentials required for communication with TVfalsepassword
apiVersionPhilips TV API Version used for communicaton with TV66
wakeUntilAPIReadyCounterModifies nubmer of tries before giving up connecting to TV. Set -1 for unlimited100200
alternativePlayPauseSends Play or Pause alternating, based on internal state, instead of PlayPause to TV when not defined (false)falsetrue
dedicatedMuteSwitchIf enabled plugin register additional Switch Service that will mute, or unmute TV. Might be useful when setting scenesfalsetrue
dedicatedVolumeLightbulbIf enabled plugin register additional Lightbulb Service that will control Volume of TV. Might be useful when setting scenes.falsetrue
appsConfiguration of Application Input Sources. Array of Strings.[]Netflix, YouTube
channelsConfiguration of TV Channels Input Sources. Array of Objects.[]More below

TV Channels settings

OptionDescriptionDefaultExample
includeAllRegisters all TV Channels as Input Sourcefalsefalse
useFavoritesAlternative to includeAll. Uses Favorite List as input for TV Channels to be registered as Input Sourcefalsefalse
favoriteListIdRequired when useFavorites is used. ID of Favorite List to be used for input channels11
channelsAlternative to includeAll and useFavorites. Array of TV Channels names used to be registered as Input Sources11

NOTE: Often change of TV Inputs requires to remove and add again TV in iOS Home app. In case of problems, please readd TV in iOS Home app.

Legacy Plug-in configuration

In version 0.9 plug-in migrated from Accessory configuration to Platform configuration. Legacy configuration will be supported until version 2.x, without new features.

{
    "accessory": "PhilipsAndroidTV", 
    "name": "Name of TV",
    "ip": "IP Address of TV",
    "macAddress": "TV Wireless card MAC Address for Wake on LAN functionality",
    "apiUser": "API user",
    "apiPass": "API password",
    "apps": [
        "Netflix",
        "YouTube",
        "TV"
    ],
    "channels": {
        "useFavorites": false, 
        "channels": [
            "TVP3 Wroclaw",
            "Polsat",
            "TVN",
            "TV4",
            "TVN 7",
            "TV6"
        ]
    }
    "alternativePlayPause": true
}
OptionDescriptionDefaultExample
ipIP Address of TVfalse192.168.0.1
macMAC Address of TV. Used for Wake over LAN feature. Wake over LAN feature needs to be enabled in TV settings. Pay attention to the correct syntax, only capital letters are allowedfalseAA:BB:CC:DD:EE
apiUserCredentials required for communication with TVfalseusername
apiPasswordCredentials required for communication with TVfalsepassword
alternativePlayPauseSends Play or Pause alternating, based on internal state, instead of PlayPause to TV when not defined (false)falsetrue
dedicatedMuteSwitchIf enabled plugin register additional Switch Service that will mute, or unmute TV. Might be useful when setting scenesfalsetrue
dedicatedVolumeLightbulbIf enabled plugin register additional Lightbulb Service that will control Volume of TV. Might be useful when setting scenes.falsetrue

comment: <> (Maybe adding more options in table?)

Accessory is registered as "External Accessory", it has to be once added manually in Home app as option without code scan and enter code from Homebridge logs.

Troubleshooting

If you have any issues with plug-in, please make sure to update homebridge and plug-in to newest version first. In case of problems with TV inputs - remove and add TV in iOS Home app.

Roadmap

Currently forseen features for next releases:

  • Custom Settings UI enchancements
    • Easier configuration of TV channels and applications
  • Embedding TV Ambilight as optional feature
  • Plug-in verification
  • Macro registration

References

Key knowledge about Philips TV APIs https://github.com/eslavnov/pylips/wiki Python Implementation for Philips TV API https://github.com/suborb/philips_android_tv

0.10.12

3 years ago

0.10.11

3 years ago

0.10.10

3 years ago

0.10.9

3 years ago

0.10.1

3 years ago

0.10.2

3 years ago

0.10.3

3 years ago

0.10.4

3 years ago

0.10.5

3 years ago

0.10.6

3 years ago

0.10.7

3 years ago

0.10.8

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.4.15

3 years ago

0.4.13

3 years ago

0.4.14

3 years ago

0.4.12

3 years ago

0.4.11

3 years ago

0.4.10

3 years ago

0.4.9

3 years ago

0.4.8

3 years ago

0.4.7

3 years ago

0.4.6

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago