🇧🇷 Versão em Português
4Drivers

4Drivers Apple TV IP

Apple TV control over the local network - version 1050

Two-way IP control of Apple TV for Control4, with no IR emitter: navigation, playback, power, and opening apps directly. Mini drivers such as Netflix and YouTube appear as sources in the rooms and open the matching app on the Apple TV when selected.

Requirements

Setup

  1. Add the driver to the project and fill in the License Key (or leave "Trial" while testing - 5 days).
  2. In Discovered Apple TVs, choose Refresh device list, wait for the search to finish and then choose the Apple TV in the same property. If it is not found, type the address in Apple TV IP Address.
  3. Turn on the TV, then run the Start Pairing action. A 4-digit PIN appears on the TV.
  4. Type the PIN in the Pairing PIN property. After a few seconds Pairing Status shows "Paired" and Status shows "Connected".
  5. On the Connections tab, connect HDMI Out to the TV, receiver or matrix input where the Apple TV is plugged in, and add the Apple TV to the rooms as a Watch source. When the audio goes over HDMI, connecting HDMI Out is enough. Audio Out (optical and stereo) is for when the audio goes another way; also connect it when the control of the mini drivers (Netflix, YouTube...) depends on the room audio path.
  6. Refresh Navigators.
Pairing is done only once. The pairing survives controller and Apple TV restarts. The remote appears on the Apple TV under Settings > Remotes and Devices with the name in Remote Name.

Now Playing

With Now Playing set to On, the driver shows what is playing on the Apple TV: app, title, artist/series, play state and artwork.

  1. Now Playing needs a second pairing. During Start Pairing, after the first PIN is accepted, a second PIN appears on the TV: type it in Pairing PIN as well.
  2. For a driver that is already paired, run the Pair Now Playing action to show the second PIN.
  3. Now Playing Status shows "Connected" when it is working.

The driver adds a second source, Apple TV Now Playing, with the Control4 Now Playing screen: artwork, title, artist/series, progress bar and Play/Pause/Skip buttons. It plays through the same Apple TV (no extra connection is needed on the Connections tab) - add it to the rooms as a Watch source next to Apple TV (the remote with arrows).

The same information is available in the Now Playing properties, in the variables and in the events (for programming and custom screens).

The artwork is served by the controller on the port in Cover Art Port (default 8098); change it only if another driver already uses that port.

Some apps do not report what is playing (or report only the app name). This is decided by the app on the Apple TV.

IR backup

The driver can also control the Apple TV by infrared when the network connection is down.

  1. On the Connections tab, connect an IR output of the controller to the IR connection of this driver and place the emitter on the Apple TV.
  2. Leave IR Backup on "When IP is unavailable" (default). "Always (IR only)" uses only IR; "Off" never uses IR.

By IR the driver sends: arrows, OK, Back, Home (long Back), Play/Pause, Wake and Sleep (long Play/Pause). Opening apps, Now Playing and the other commands need the IP connection.

If the Apple TV was paired with a physical Apple IR remote (aluminium), it ignores IR from other remotes. Unpair it on the Apple TV (Settings > Remotes and Devices).

Apple TV Remote screen

The driver includes its own control screen, shown in the Navigators as Apple TV Remote. Make it visible in the rooms you want, like any other experience button, and refresh Navigators.

The icons of the most common apps come with the driver. For other apps, with App Icons = App Store, the icon is looked up on the App Store (the controller and the touch screens need internet access). Apps without an icon show the initials of their name. The screen language follows each touch screen or phone, or can be fixed in Screen Language.

Apps as sources (mini drivers)

The driver works with the Control4 Universal Mini drivers (Netflix, YouTube, Prime Video, Disney+, Max, Spotify and others).

  1. Add the mini driver of the app to the project.
  2. On the Connections tab, connect the mini driver output to one of the Mini App 1 to Mini App 24 inputs of this driver.
  3. Run Refresh App List and refresh Navigators.

When the mini driver is selected in a room, the Apple TV wakes up and opens the app. The app is identified by the mini driver itself, so the device can be renamed freely in the project. If an app is not recognized (for example a regional app), add it to App Mapping.

The Mini Apps Connected property shows how many mini drivers the driver sees. To test an app without a mini driver, choose it in Test App and run Launch Test App.

Remote buttons

Control4 buttonApple TV
Arrows / OKArrows / Select (press and hold supported)
Back / Cancel / MenuBack
Home (Guide)Home (TV button)
InfoLong press on Select (options)
Play / PausePlay/Pause (see Play/Pause Mode)
Skip Forward / BackNext/previous track or a jump of Skip Interval seconds, as set in Skip Buttons
Scan Forward / BackSkip 3x the Skip Interval
Page Up / Page DownPage Up / Control Center
Volume Up / DownVolume (when the Apple TV controls the TV or receiver volume)
Red (A) / Green (B)Control Center / Screensaver

Properties

PropertyDescription
Debug ModePrint: writes diagnostic messages to the Lua output and to the driver log. Leave Off in normal use.
License Key / Validation4Drivers license and its current state.
Driver VersionInstalled version.
StatusConnection and pairing status.
Discovered Apple TVsApple TVs found on the network. Choose Refresh device list to search again; choosing an Apple TV fills in the IP address.
Apple TV IP AddressAddress of the Apple TV.
Companion PortLeave "Auto". The driver finds the port automatically.
Device Name / Device ModelName and model reported by the Apple TV.
Pairing StatusWhether this driver is paired with the Apple TV.
Pairing PINType the PIN shown on the TV after Start Pairing. The field is cleared after use.
Remote NameName of this remote on the Apple TV. Applied at the next pairing.
Power StateOn or Sleeping.
Wake on Room OnWakes the Apple TV when it (or one of its mini drivers) is selected in a room.
Sleep on Room OffPuts the Apple TV to sleep when the room is turned off. Use "No" when the Apple TV is shared by several rooms through a matrix.
Play/Pause ModeToggle: Play and Pause both act as the remote Play/Pause button (works in all apps). Discrete: separate Play and Pause, for apps that support it.
Skip Interval (seconds)Seconds used by Skip Forward/Back.
Skip ButtonsWhat the skip forward/back buttons do (Control4 remote, Navigator and Now Playing). Auto (default): next/previous track for music and a jump of Skip Interval seconds for films and series. Next/Previous Track: always change track or episode. Skip Seconds: always jump the Skip Interval seconds.
IR BackupWhen IP is unavailable (default): uses IR only when the network connection is down. When IP is unavailable and Force IR Power On: the same, and the power on also goes out by IR every time the Apple TV is asleep (for Apple TVs that do not wake by the network). Off: never uses IR. Always (IR only): uses only IR.
Now PlayingOn: shows what is playing (needs the second PIN). Off: disabled.
Cover Art PortPort used to hand the artwork to the Control4 apps (default 8098).
Now Playing StatusConnected, Paired, Not paired or the last error.
Now Playing App / Title / Artist / StateWhat is playing now.
Installed AppsNumber of apps read from the Apple TV.
Mini Apps ConnectedNumber of mini drivers connected to the Mini App inputs.
Mini App Remote ControlSwitch Room to Apple TV (default): after the mini driver opens its app, the Apple TV becomes the selected source of the room, so the remote, the Control4 app and the room audio work as when Apple TV is chosen. Mini Driver Passthrough: the mini driver stays selected and forwards the buttons; this only works when the room audio path goes through the Apple TV.
App MappingOptional. Links a mini driver name to an app, in the format Name=app id, separated by semicolons. Example: My App=com.company.myapp. To see the app ids, set Debug Mode to Print and run Refresh App List: the log lists every installed app with its id.
Test AppApp used by the Launch Test App action.
Screen LanguageLanguage of the Apple TV Remote screen: Auto (follows each touch screen or phone), English, Portuguese or Spanish.
Screen VolumeRoom (default): the volume and mute buttons of the screen control the room where it was opened. Apple TV: volume goes to the Apple TV.
App IconsThe icons of the most common apps come with the driver. App Store: other apps are looked up on the App Store (once per app; needs internet). Off: only the icons that come with the driver.

Actions

ActionDescription
Discover Apple TVsSearches the network and lists the Apple TVs found (same as Refresh device list in Discovered Apple TVs).
Start PairingStarts pairing. A PIN appears on the TV.
Pair Now PlayingShows the second PIN, used only by Now Playing.
Forget PairingRemoves both pairings from the driver. Also remove the remote on the Apple TV (Settings > Remotes and Devices).
ReconnectReconnects to the Apple TV.
Refresh App ListReads the installed apps again and looks for new mini drivers.
Launch Test AppOpens the app chosen in Test App.
Reload App IconsLooks up the app icons on the App Store again.
Reset Screen FavoritesClears the favorites and shows the hidden apps again on the Apple TV Remote screen.

Programming

Commands: Open app (list of apps installed on the Apple TV), Open app by id or URL, Press button (tap, double tap or hold), Skip seconds, Wake, Sleep.

Events: Connected, Disconnected, Paired, PIN Requested, Playback Started, Playback Paused, Playback Stopped, Now Playing Changed.

Variables: CONNECTED, POWER_STATE, LAST_APP, NP_APP, NP_TITLE, NP_ARTIST, NP_ALBUM, NP_STATE, NP_DURATION.

Troubleshooting

SymptomWhat to check
Refresh device list finds nothingController and Apple TV must be on the same network/VLAN; some routers block discovery traffic. Type the IP address manually - discovery is not required.
No PIN appears on the TVThe TV must be on and showing the Apple TV. Wake the Apple TV with its own remote and run Start Pairing again. Check the IP address.
Pairing failed: wrong PINRun Start Pairing again and type the new PIN (a new PIN is shown at each attempt).
Pairing failed: too many paired remotesRemove old remotes on the Apple TV: Settings > Remotes and Devices.
"The Apple TV rejected this pairing"The remote was removed on the Apple TV or the Apple TV was reset. Run Forget Pairing, then Start Pairing.
Disconnected - retryingThe driver reconnects by itself. If it persists, check the IP (DHCP reservation) and the network.
"App not found on the Apple TV"Install the app on the Apple TV, run Refresh App List, or add the name to App Mapping.
App opens from the mini driver, but the arrows and other buttons do nothingLeave Mini App Remote Control in Switch Room to Apple TV. In Mini Driver Passthrough the buttons only arrive when the room audio path goes through the Apple TV.
Mini driver selected but nothing happensCheck the connection to a Mini App input, that the room has a valid path through the Apple TV (Connections and room audio/video path), and refresh Navigators.
The second PIN (Now Playing) does not appearOn the Apple TV: Settings > AirPlay and HomeKit > Allow Access: choose "Everyone on the Same Network". Then run Pair Now Playing.
Now Playing Status: Rejected by the Apple TVRun Pair Now Playing again.
IR does not workCheck the IR connection and emitter position, and that the Apple TV is not paired with a physical Apple IR remote.
Now Playing shows the text but no artworkCheck that no other driver uses the Cover Art Port and that the touch screen/phone is on the same network as the controller.
The Apple TV Remote screen does not show in the NavigatorCheck that the Apple TV Remote button is visible in the room and refresh Navigators. If the driver was updated from an earlier version and the item is missing in Composer, remove the driver and add it again.
An app shows initials instead of its iconIts icon does not come with the driver and was not found on the App Store. Check that the controller and the touch screen have internet access and run Reload App Icons.
The screen volume changes the wrong roomThe screen follows the room where it was last opened. Open the screen again from the right room. If volume should go to the Apple TV, set Screen Volume to Apple TV.
Still not workingSet Debug Mode to Print, reproduce the problem and send the log to 4Drivers support.

Change Log

1050 - Initial version.