Mobile Controller (MC) brings your Android device into your home automation setup, ideal for wall-mounted tablets or personal mobile phones. MC allows you to:
Control your mobile device from your HE automations, including screen brightness, volume / media control and Do Not Disturb settings
Send interactive notifications and TTS notifications to your mobile device from your HE hub
Capture status information on your HE hub about your mobile device, such as battery level, Wi-Fi connectivity and Bluetooth devices connected
Trigger automations on your HE hub based on events, including changes in Wi-Fi connectivity or BT devices connected to detect presence, low/high battery levels to control charging your device, unread messages or incoming calls to adjust lights or A/V controls
Communication can be entirely local, with optional cloud communications for reporting status updates and events back to your HE hub, or the use of a VPN for two-way remote communications
Below is a more comprehensive list of the MC features.
Track connection to two sets of Wi-Fi Networks, Home and an Alternate list
Track status of VPN connection on the mobile device
Bluetooth Device Tracking
Track the list of paired bluetooth devices as separate devices on the HE hub
Status / Events for bluetooth device connections
Call Status Tracking and Events
Status / Events for calls that are incoming and in progress
General Device Status Information
Battery Percentage and Status (Charging, Discharging, Idle)
Local alerts for low or high battery levels
Device Heartbeat
Synchronising With Hubitat
Hubitat Mode - Synchronise the Hubitat Mode into a Tasker Variable on the mobile device
Control the Hubitat Mode from the mobile device
Setup Options:
Use Direct HTTP calls to Tasker or use AutoRemote commands
Local and/or Cloud Communication with Hubitat hub
Controls via HTTP Requests and/or AutoRemote can be initiated from other systems outside of HE
Requirements
MC is designed for Android devices only
Tasker must be installed on your mobile device. You can also choose to install and use the AutoRemote Plugin if you wish
Note, some Tasker features used by MC require elevated permissions to be granted for the Tasker app on the mobile device. When attempting to use these features a notification will appear on your mobile device prompting for these permissions to be granted
It is highly recommended to use Hubitat Package Manager (HPM) to manage the installation of this utility on your HE hub. If you would prefer to install manually, please contact me and I can guide you through the process.
Open the Administration web interface for your HE hub, accessing the Apps page
Open HPM and chose Install, using keyword search, entering "Mobile Controller"
Choose the Mobile Controller Package and install it. This will:
Install a Mobile Controller Bundle, shown in the Bundles section under Developer tools
Install the Mobile Device Driver, shown in the Drivers Code section under Developer tools
Install the Mobile Controller App Code, shown in the Apps Code section under Developer tools
Download the Mobile Controller Tasker project(s) to the local file storage on the HE hub, accessible from the File Manager under Settings
Mobile Device - Tasker
See the notes under the Requirements for Mobile Controller regarding the version of Tasker being used and use of AutoRemote
Install and configure Tasker and optionally AutoRemote on the mobile device, use of AutoApps to install AutoRemote is also supported
Import the Mobile Controller Tasker Project into Tasker, located in File Manager on the HE hub
Hubitat - Mobile Controller App and Device Setup
On the HE Apps page choose Install User App and select Mobile Controller
Select the Configure New Mobile Device option
Give the new device a name and enter the IP address of the mobile device
Click Next to create the HE virtual device
On the Mobile Controller main page, expand the Existing Mobile Devices section and click on the new device to open the Device Details page
09-Jan-2024 - Added Do Not Disturb commands to Mobile Device driver
08-Jan-2024 - Improvements to device setup process and code tidy-up, media controls (Play, Pause, Next/Prev Track, etc), notification setting (Vibrate, Sound, Mute)
23-Dec-2023 - Initial ALPHA release
If I didn't release it soon, I'd never do it.... It's by no means ready, but for those that are keen, and happy to take the plunge with low expectations and limited instruction, come aboard
NOTE - The assumption is that you have Tasker installed and functioning. There are two methods for the MC App on your HE hub to communicate with your mobile device, using the AutoRemote plugin using a local HTTP request, or the new Tasker (beta) built-in HTTP Request feature, requiring you to be on the Tasker beta program and running the beta version that includes this feature.
Check the IP Address of your mobile device - probably a good point to locate the IP Address of the mobile / tablet you are wanting to integrate. Get this on the device via the network settings screens, or via your router configuration.
Mobile Controller (MC) is available in HPM. Installing MC should download the App / driver bundle and two Tasker project files to the local HE storage, one for the AutoRemote plugin another for the AutoRemoteLite version (see below).
Import Tasker Profile - Get the necessary Tasker profile from your HE hub onto your phone. It may be useful to add it into your Google Drive if you are using G Drive, to make it easier to transfer. Use the import option in Tasker to import the project on your mobile device.
Install the Mobile Controller App on HE - Once installed, setup a new mobile device (this bit is not working like it should, you may need to do it twice.... I'll fix it eventually). Enter the device details as prompted.
Check out the mobile device for updates and issue commands - Open the Devices page on the HE hub and locate the new mobile device created by the app. You should eventually see battery readings and heartbeat date/time values come through. Adjust the communication method from AutorRemote to HTTP Request in the Preference Settings as needed. You should also be able to send notifications and issue other commands. You can also configure your local Wifi Network(s) and alternate Wifi Network(s) to track those on the device, separated by a "/" (the alternate one isn't finished yet).
I must be going crazy. Got the project imported into Tasker just fine and used HPM to install the HE MC app, seemingly fine. But I can't add the MC user app. It doesn't appear in my list of Add User App.
I used to know what I'm doing, but I'm a bit rusty. Please tell me what I have missed!
I installed it successfully on my other development hub. I:
Opened HPM and chose Install, using keyword search, entering Mobile Controller
Chose the Mobile Controller Package and installed it
Back on the HE Apps page chose Install User App and chose Mobile Controller
Could it be you needed to refresh your Apps page? I was able to see that behaviour where an Apps page I had open prior to installing the package in HPM would not display Mobile Controller as a User App for install after I had installed the package in HPM, but a freshly opened one (or just the tab I used for the HPM install) would provide MC as an option.
If, when you get back to this, you wouldn't mind re-installing the package and the Tasker project, I have released various changes to the HE App, driver and Tasker project.
Hi, Simon. Thanks for this project and for helping me get it going. It's still very perplexing. I've restarted the hub and refreshed the web page and tried different browsers but the app does not appear in the user app list. Neither do I see the app code or drivers in the code lists.
And the Tasker xml is in the HE File manager. I believe that is working because it shows in my project list. (To "upgrade" to today's profiles, I deleted the project and re-imported it. Is that the best way?)
So, I'm still be befuddled about how to get the Mobile Controller app to install in HE. Ideas, please?
Are you running the latest he platform and latest hpm version?
And yes, for now removing and re-importung the tasker project is what I would suggest in your situation. I need to do a little more work on this eventually to make sure it handles future updates to an existing setup.
That was encouraging, but still no appearance of Mobile Controller in the Add User App or in the Apps Code.
I suppose I can go back to the old fashioned way of cutting and pasting the code.
UPDATE: My bad. I see that HPM was not current. I've updated it to 1.9.1 and repaired Mobile Controller. I think this has met going. But in the morning...
Glad you (hopefully) worked it out @CAL.hub . Let me know how it goes and I'll add a note in the requirements for the App if it does require the later version of HPM.
Yes, if you haven't got AutoRemote installed the AR profiles will display a warning, but it won't affect anything. I realised yesterday that I forgot to include the tasker project in the HPM package that can be used when AutoRemote has been installed using the AutoApps.
And thanks for reminding me about DND, I should be able to put the. command in relatively easily today. I'll let you know when it's released.
I have now added Do Not Disturb commands to the Mobile Device driver and released this to HPM as version 0.2.1. This should only require an update via HPM, there is no change in the Tasker project.
There is a Do Not Disturb On command and a Do Not Disturb Off command now available on a Mobile Device in HE. The on command takes a "setting" parameter, which needs to be one of "noInt", "priority" or "alarms", relating to what level of interruption is allowed, if any.
For those looking at the tasker project, the off HE command simply sends the equivalent of an "allowAll" setting to the same profile in Tasker. I will look at whether I can make the on command use a list of valid options, rather than free-text.
Note - When running the off command, this still leaves notifications as muted. For now you will need to run the appropriate notification command to set this to either vibrate or a sound, if you want notifications to make a noise. I will look at capturing the notification setting in HE and/or Tasker to allow this to be put back to it's previous setting when turning off Do Not Disturb.
After a little experimenting, I have a couple of questions.
Sync HE Mode? Turn on to send HE mode updates to the mobile device
I have this on, in the hope that Tasker can use this to be informed of HE modes. I'd like for a task to be able to query HE for its current mode. Is this possible?
These two tasks seem to have permission issues. Can you give me a point on how to resolve?
Yes and no... Well, mostly yes... The HE mode should get send to a project variable in the MC project in Tasker. That's the extent of what happens now... I need to work on how best to make this available for you to use outside of the MC project. The idea I want to look at is the ability to nominate a Tasker variable you want the mode recorded in, to use in your own profiles / tasks, but I need to do more work on this. So still a WIP at this stage...