hubitat-myq
Driver Code for the MyQ garage door opener integration for Hubitat Elevation
Pre-requisites
Must have a Hubitat Elevation hub installed
(Originally built for C7, but should work for other hub versions aswell)
Must have a MyQ account setup (https://myq.com)
To integrate this into Hubitat, you'll follow these steps:
Start by logging into to your Hubitat local hub
2 AVAILABLE OPTIONS
- Driver Code: recognizes as a DOOR
1. Drivers Code
- Navigation, click on Drivers Code.
- Click on [+ New Driver].
- Select the From Code tab.
- DOOR CAPABILITY - drivercode-myq-door.groovy
- SWITCH CAPABILITY - drivercode-myq-switch.groovy
- Copy and paste in the code from the selected file.
- Click [Save].
2. Devices
- Navigation, click on Devices.
- Click [+ Add Virtual Device].
- Create the new device as such:
- Device Name: MyQ Garage Door Opener
- Device Label: MyQ Garage Door Opener
- Zigbee Id:
- Event history size:
- State history size:
- Device Network Id:
- Type: MyQ Garage Door Opener
- Hub mesh enabled:
- Then click [Save Device].
- Once the page reloads, scroll down to the Preferences row and set the following:
- Username aka MyQ Username (email address):
- Password aka MyQ Password:
- Device Name aka Name of the device to manage: <the name of the device/door that is labeled in MyQ>
- Then click [Save Preferences].
Test MyQ Device Setup
- Navigation, click on Device.
- Click on MyQ Garage Door Opener.
- Click [Refresh] to get the updated door state.
DEBUGGING/TROUBLESHOOTING
If you edit the driver code in your local Hubitat environment, search for the "refresh()" function and enable debugging by setting the following:
set_DEBUG("off")
...to...
set_DEBUG("on")
DISCLOSURE
I am not a Hubitat or a MyQ Chamberlain developer, this driver code is no way tied to Hubitat or MyQ companies. I personally had a need for the MyQ garage door opener in my local Hubitat hub, so I created one myself. It works well for me and this isn't for sale, so feel free to use it, tweak it, whatever you want!
Enjoy!