„Hey Siri. Turn music on at home!“
In this how-to, we show you how to configure voice control of your Max2Play device in a few steps with voice assistant Siri on Apple iOS devices. At the end of this tutorial, you can start music playback via Squeezelite Player in Max2Play with the voice command „Turn music on at home“. Let’s go.
1. Install Max2Play Plug-in Voice Control
Install the plug-in „Voice Control“ on your Max2Play device by pasting this download link into the „Settings/Reboot“ menu of the Max2Play interface and clicking „Install new plugin“. After the installation, the menu „Voice Control“ appears in the interface. The plug-in is also available at our plug-in page.
To control the Max2Play device, the house automation system HomeKit by Apple is required. We are going to install it in the next step.
3. Link HomeKit with Max2Play Device
As soon as the log-in screen appears, enter „admin“ as name and password as described. If you want, you can set your own password at first. To do that, click on the red gear at the top-right corner, choose „My Settings“, enter a new password at the end of the page and set it by hitting the „Submit“ button.
Click on the red gear again now and choose „Apps“ to open the overview of all apps. At first, we are focussing on a „HTTP Device“. After clicking on „Add App“, you have to enter some information about your Max2Play device. At „Name“, you should use a meaningful name, e.g. „Max2Play Living Room“. To stay on top of things, this name should match the name of your Max2Play device in the „Settings/Reboot“ menu. You can leave the field „My Notes“ blank. Choose „switchBinary“ in the next field.
Keep the preconfigured request interval. Please choose „GET“ as „HTTP method to use“, additionally, check the option „Update value on action“. Leave the second checkbox unchecked. Please click on „Save“ to create the HTTP device.
4. Configure your iOS device
To use HomeKit on your iOS device, please install a HomeKit-capable app, a free example is Elegato Eve.
Once the app is installed successfully, open it and hit „Add Accessory“. Set a name for your home and wait while the app is looking for the HomeKit Gate we set up before. Press on its name and on the PIN area on the next screen. Ignore the message that this not certified HomeKit accessory might not work reliably, and press „Add Anyway“ and „Enter code manually“. Enter the row of numbers from the Max2Play interface into the PIN prompt to complete the pairing of your iOS and Max2Play device. The http device should be found automatically now by your iOS device. Optionally, you can assign a Siri name and a room.
After completing all these configuration steps, you can turn on and off the Squeezeliteplayer on your Max2Play device with voice commands.
6. More Use Cases
In the Max2Play interface, „Voice Control“ offers a list with more important URL commands you can again configure as further „HTTP Devices“, e.g. to start and stop Kodi and Jivelite or to shut down your Max2Play device.
Keep in mind that you can find out those URL commands quickly on your own by pushing a button in the Max2Play interface and look after the URL command that is shown after it was executed. for the URL command shown after its execution. For example, click on „Update Max2Play in the „Settings/Reboot“ menu to receive a URL with the command „action=checkMax2PlayUpdate“.
How to configure voice control on an android device, you can look up in „How-to – Max2Play Voice Control with Google Voice Assistant Google Now“ (available soon).
2. Install HomeKit
Click on „Voice Control“ in the Max2Play interface to open the plug-in. Expand the section „I have a Apple Device (iPhone / iPad) with Siri“ to install HomeKit in a few minutes. Finally, the Max2Play device must be restarted. The fastest way is to click on „Click here to Reboot Now“ in the yellow info box. HomeKit is now ready for action.
Click on „Open Z-Wave Server Interface“ to access HomeKit. We are going to configure some settings there to link your Max2Play device with HomeKit.
You find yourself back again in the app overview now. Create a new app, „Apple HomeKit Gate“ right after „HTTP Device“, by hitting „Add App“. At „Name“ and at „Name as it appears in iOS devices“, you could enter „Max2Play HomeKit Server“ for example, „My Notes“ is optional. Click on „Save“ to create the „Apple HomeKit Gate“.
Next step is to hit „Elements“, the menu right next to the little house button („Dashboard“), and look for your http device. If you cannot see it, reload the page by hitting the F5 key. The http device does not automatically carry over the name of the app we created before. If this bothers you, click on the gear of your http device and type out the field „Generated by App“ for example. Click „Save“.
Switch over to the Max2Play interface. In the Siri section, a HomeKit PIN is automatically shown after setting up a HomeKit Gate. We need this PIN to configure your iOS device.
5. Usage of Voice Commands
Activate Siri as usual by pressing the home button of your iOS device for a while and speak: „Turn music on at home“. If you set up the „Hey Siri“ command available since iOS 8, this also work of course. Shortly after, the Squeezelite Player on your Max2Play device should be started and play music. Please don’t get confused: Siri might tell you she switched a lamp on. With the command „Turn music off at home.“, you trigger the stop of the Squeezelite Player. In the background, the embedded URLs are called that we entered before.
Very good. You can simply tell your iOS device whether Max2Play should play music or not. Beyond that, Max2Play offers many other use cases you can control the same way with voice control.