Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
6028c63
Merge pull request #2 from copy-ninja/master
brbeaird May 31, 2016
b5df852
Updated namespace to brbeaird
brbeaird May 31, 2016
835bdd1
Renamed SmartApp to MyQLite
brbeaird May 31, 2016
d597853
MyQLite is born!
brbeaird May 31, 2016
c30e94a
Update README.md
brbeaird May 31, 2016
787604e
Fix issue with Alexa not being able to close the door (credit: gussery3)
brbeaird May 31, 2016
febd86c
Fix handling of opening/closing status
brbeaird Jun 1, 2016
f24b2cb
Fix naming for github integration
brbeaird Jun 1, 2016
c32f990
Renaming for github integration
brbeaird Jun 1, 2016
c5f505d
Enable debugging for sensor changes
brbeaird Jun 1, 2016
300c098
Fix issue with Push toggle functionality
brbeaird Jun 1, 2016
ef51728
Add more subscriptions to keep doors and sensors in sync
brbeaird Jun 5, 2016
0adb1dd
Add refresh to keep doors and sensors better in sync
brbeaird Jun 5, 2016
8627513
Fix mode subscriptions to point to correct method.
brbeaird Jun 5, 2016
e57ec5c
Update README.md
brbeaird Jun 7, 2016
eaa34d7
Update README.md
brbeaird Jun 7, 2016
ed32bc3
Correct last updated value
brbeaird Jun 8, 2016
c0c5b10
Correct last updated value
brbeaird Jun 8, 2016
81c414f
Add handling of null timestamps from sensors that haven't moved after…
brbeaird Jun 13, 2016
7371664
Add handling of null timestamps from stale sensors
brbeaird Jun 13, 2016
9dbf54e
Extend sensor timestamp activity search back 7 days instead of 1
brbeaird Jun 13, 2016
d013de3
Add tile to show the sensor associated with the door
brbeaird Jun 14, 2016
9a266d5
Add friendlier logging for door names
brbeaird Jun 14, 2016
a3724fa
Fix bug where doors 3 and 4 were always sync'ing to sensor #2.
brbeaird Jun 14, 2016
e7d44d9
Update README.md
brbeaird Jun 14, 2016
f95875a
Added support for MultiSensor/Acceleration Sensor (#3)
SANdood Jul 7, 2016
70263f5
Fixed bug where doors sometimes wouldn't update due to null sensor va…
brbeaird Jul 28, 2016
39e6191
Fixed issue where switch wasn't totally behaving as a switch (was spe…
brbeaird Aug 22, 2016
9c5b32f
Ignore VGDO devices from MyQ
brbeaird Dec 10, 2016
b771430
Now supporting doors without needing sensors!
brbeaird Dec 10, 2016
864cc51
Update README.md
brbeaird Dec 10, 2016
d141976
Update README.md
brbeaird Dec 10, 2016
34c3589
Update README.md
brbeaird Dec 10, 2016
9118001
Update README.md
brbeaird Dec 10, 2016
11d73c9
Renamed push-buttons to "Closer" and "Opener" for easier Alexa intera…
brbeaird Dec 12, 2016
92b3f00
Adding from ST integration
brbeaird Dec 13, 2016
beeedb0
Revert renaming no-sensor door device
brbeaird Dec 13, 2016
181b618
Adding Momentary Button Tile to repo
brbeaird Dec 13, 2016
a7af49b
Update README.md
brbeaird Dec 13, 2016
55aeab7
Added Alexa instructions to README
brbeaird Dec 13, 2016
7529f36
Updated Readme links
brbeaird Dec 14, 2016
677b101
Update README.md
brbeaird Dec 14, 2016
a021c89
Update README.md
brbeaird Dec 25, 2016
8d36466
Simplified on/off behavior and added switch tile
brbeaird Dec 29, 2016
73c073d
Updated date
brbeaird Dec 29, 2016
482e2e7
Updated switch indicator to use the normal switch icon
brbeaird Dec 29, 2016
218c447
Updated acceleration sensor default to closing
brbeaird Jan 10, 2017
e85f006
Modified logging to be more clear when updating status
brbeaird Jan 10, 2017
fcbd8b3
Fix date typo
brbeaird Jan 10, 2017
e3cd3ce
Re-added light control
brbeaird Jan 13, 2017
f8722ca
Fixed dates
brbeaird Jan 13, 2017
7e7443d
Update README.md
brbeaird Jan 13, 2017
baa70e4
Added special thanks
brbeaird Jan 13, 2017
b904c8c
Merge branch 'master' of https://github.com/brbeaird/SmartThings_MyQ
brbeaird Jan 13, 2017
4d7f60f
Updating icon to use the full mobile width and light bulb icon.
brbeaird Jan 13, 2017
3790c9d
Updated for MyQ API changes
brbeaird Feb 14, 2017
c722774
Updated LastUpdated line
brbeaird Feb 15, 2017
2a91d75
Add icons
brbeaird Feb 16, 2017
794b4c6
Rename 3x
brbeaird Feb 16, 2017
041e269
Point to new icon location
brbeaird Feb 16, 2017
51ecccc
Update README.md
brbeaird Feb 20, 2017
fe8839a
Update README.md
brbeaird Feb 20, 2017
461c9f7
Fixed issue where door icons would sometimes not update automatically…
brbeaird Feb 23, 2017
164330e
Update README.md
brbeaird Feb 28, 2017
71615db
Created new Device for IFTTT mail integration (#5)
ph4r Mar 6, 2017
97cca9a
Added summary page
brbeaird Mar 6, 2017
88f9af8
Fix issue with subscriptions being cancelled when Update method is ca…
brbeaird Mar 11, 2017
20870eb
Fix virtual contact switch organization for github integration
brbeaird Mar 13, 2017
d1e0f28
Added versioning header
brbeaird Mar 21, 2017
f0dd43b
Added version warning message to setup summary page
brbeaird Mar 21, 2017
aeee740
Fix heading bug introduced last commit
brbeaird Mar 21, 2017
592c2d3
Redesigned open/close button on no-sensor device
brbeaird Mar 30, 2017
b2416cc
Update README.md
brbeaird Apr 10, 2017
9477247
Fix buttons on sensor door device
brbeaird Apr 13, 2017
31849f5
Update README.md
brbeaird Apr 13, 2017
4c2a11a
Added debugging for blank desc
brbeaird May 11, 2017
fda9b3c
Get version numbers via actual JSON endpoint instead of janky web scr…
brbeaird May 26, 2017
12112bf
Add hub ID association when creating devices
brbeaird May 26, 2017
26fe037
Cleaned up callout for version checking
brbeaird May 29, 2017
0802339
Clean up version check
brbeaird May 29, 2017
0c959aa
Added version cleanup to uninstall method
brbeaird May 29, 2017
9ab108a
Fix typo
brbeaird May 30, 2017
51c3b9d
Updated device handlers to use new standard color schemes
brbeaird Jun 6, 2017
7056b0f
Added UK URL (experimental)
brbeaird Sep 13, 2017
fbdc109
Reverted last change
brbeaird Sep 15, 2017
f3d195d
Added SecurityToken to header
brbeaird Oct 28, 2017
0407ad1
Added token to header for PUT calls
brbeaird Oct 28, 2017
2ec2644
Updated door closed color to white
brbeaird Nov 27, 2017
223ab1f
Fixed bug where app install would fail if using a lamp module on its …
brbeaird Nov 28, 2017
e7924f7
Re-added LastActivity timestamp
brbeaird Nov 28, 2017
1432a64
More bug fixing for lights-only setup
brbeaird Nov 28, 2017
cdb3a89
Fixed versioning and last-updated date
brbeaird Nov 28, 2017
9bf29e2
Updated Readme with BTC link
brbeaird Dec 12, 2017
25a4b04
Update README.md
brbeaird Dec 12, 2017
95309a8
Update README.md
brbeaird Dec 12, 2017
ae8580f
Update README.md
brbeaird Jan 29, 2018
10f13ae
Update README.md
brbeaird Jan 29, 2018
df2fb7b
Added support for commercial door types.
brbeaird Jan 29, 2018
31eca66
Added installerManifest.json
brbeaird Feb 9, 2018
246e8ba
Updated installerManifest.json
brbeaird Feb 9, 2018
09b1f71
Updated installerManifest.json
brbeaird Feb 9, 2018
d250edb
Updated installerManifest.json
brbeaird Feb 9, 2018
ddb87ff
Updated installerManifest.json
brbeaird Feb 9, 2018
27426db
Updated installerManifest.json
brbeaird Feb 9, 2018
8b1bb2b
Updated banner
brbeaird Feb 9, 2018
62daa90
Update README.md
brbeaird Feb 13, 2018
b72d483
Update README.md
brbeaird Feb 13, 2018
7349477
Added handling for null hub query
brbeaird May 30, 2018
07bf15f
Update README.md
brbeaird Jul 16, 2018
ad12eff
Delete virtual-contact-sensor-switch.groovy
brbeaird Jul 16, 2018
8cdb91c
Update README.md
brbeaird Jul 17, 2018
e157eed
Changed door closed background color to standard blue
brbeaird Aug 2, 2018
6e7725e
Added 'actuator' capability (#36)
joshualyon Aug 27, 2018
dcc2f2b
Update IDE URL
brbeaird Sep 4, 2018
d31a0d8
Door limit and new app support
brbeaird Nov 17, 2018
010676c
Fix door setup typos
brbeaird Nov 18, 2018
ce90749
Re-added door control capability
brbeaird Nov 19, 2018
73a2707
Update ping call
brbeaird Nov 20, 2018
637c9ff
Remove health check capability
brbeaird Nov 23, 2018
c9bbdf4
Fix settings refresh issue
brbeaird Nov 23, 2018
536da8d
Fix validated door bug for single door setups
brbeaird Nov 23, 2018
6a3644d
More single-door fixing (credit @Zhourj)
brbeaird Nov 24, 2018
7412167
And even more single-door fixing
brbeaird Nov 24, 2018
49698e1
Bump version
brbeaird Nov 24, 2018
a8aa76b
Band-aid fixes for door syncing issue #49
brbeaird Dec 7, 2018
f5d0170
Add lock capability (issue #48 - credit @jrseliga)
brbeaird Dec 25, 2018
aec2924
Fix errors for no-sensor door types (issue #51)
brbeaird Dec 28, 2018
a7b97bb
Add lock door type
brbeaird Jan 1, 2019
6582d6c
Lock and refresh changes
brbeaird Jan 1, 2019
1cae9f5
Fix hubId debugging
brbeaird Jan 2, 2019
9eb9456
Add uninstall method/fix event log spamming
brbeaird Jan 3, 2019
b7a53a6
Update README.md
brbeaird Jan 3, 2019
e2f74d8
Add code to actually force-delete child devices
brbeaird Jan 3, 2019
867b468
Merge branch 'master' of https://github.com/brbeaird/SmartThings_MyQ
brbeaird Jan 3, 2019
78f9138
Push buttons now optional
brbeaird Jan 3, 2019
9a920e6
Add better valid hub detection (#50)
brbeaird Jan 3, 2019
8a71ed3
Re-add Door Control (its absence was causing issues with older automa…
brbeaird Jan 4, 2019
c812bbf
Lock option UI and door action fixes (#54)
brbeaird Jan 4, 2019
8b51a3a
Update README.md
brbeaird Jan 4, 2019
a9d4402
Fix SmartApp version in installerManifest.json
brbeaird Jan 4, 2019
ba9059b
Update README.md
brbeaird Jan 4, 2019
9e79063
Update README.md
brbeaird Jan 9, 2019
6017237
Update README.md
brbeaird Feb 28, 2019
8250e2e
Fix UserDeviceDetails casing #57
brbeaird Feb 28, 2019
43f3b3c
Fix other getDevicesURL reference #57
brbeaird Feb 28, 2019
5f767a4
Update README.md
brbeaird Feb 28, 2019
d1a0762
Added more handling for null door description
brbeaird Feb 28, 2019
dc86424
Correct put API URL
rboy1 Mar 5, 2019
f2ec552
Improve authentication management (#59)
rboy1 Mar 21, 2019
8661798
Bump versions and extend token life
brbeaird Mar 22, 2019
08bef25
Updated MyQAppId and headers
brbeaird Apr 30, 2019
1900ebe
Fix content type (#60)
rboy1 May 2, 2019
07fdf0e
Updating community installer version
brbeaird May 25, 2019
a90bc9d
V3 - Major code refactoring and clean up (#69)
brbeaird Oct 9, 2019
e44bdb8
Bump installerManifest.json versions for ST Community Installer
brbeaird Oct 9, 2019
c26e038
Update README.md
brbeaird Oct 9, 2019
2a30fb4
Fix issue with open push-button
brbeaird Oct 11, 2019
c62c695
Fix version storage bug
brbeaird Oct 13, 2019
a7d6d1a
Update to support MyQ API V5 (#70)
brbeaird Oct 19, 2019
9f68523
Update lock door
brbeaird Oct 19, 2019
b143557
Fix light functionality for V5
brbeaird Oct 21, 2019
5a5a9c1
Update README.md
brbeaird Oct 21, 2019
3c0e36b
Update README.md
brbeaird Oct 21, 2019
eb10d05
Update README.md
brbeaird Oct 21, 2019
b538912
Update README.md
brbeaird Oct 21, 2019
dbfc307
Update README.md
brbeaird Oct 21, 2019
5b061fa
Remove brand from setup page
brbeaird Oct 24, 2019
05031b8
Create FUNDING.yml
brbeaird Oct 30, 2019
9ac3f1f
Add battery capability and fix update messages
brbeaird Nov 7, 2019
d84e9a5
Default sensor battery to 100
brbeaird Nov 7, 2019
5593cb2
Delete myq-lock-door.groovy
brbeaird Nov 11, 2019
15a5cbe
Update momentary-button-tile.groovy
brbeaird Nov 11, 2019
2e48c08
Add momentary button
brbeaird Nov 11, 2019
2dd659b
Move momentary button under same namespace
brbeaird Nov 11, 2019
dbadda9
Update refresh logic to use door status instead of contact
brbeaird May 25, 2020
3cea543
Fix username/password casing
brbeaird Jul 3, 2020
6f474ea
Add virtual switch
brbeaird Aug 9, 2020
2b5d92f
Convert momentary push-button to virtual switch
brbeaird Aug 9, 2020
051879f
Clarify switch text
brbeaird Aug 9, 2020
14091d5
Update readme - remove momentary references
brbeaird Aug 10, 2020
fb326e0
Update readme
brbeaird Aug 11, 2020
fb8fa49
Update door handler for new app
brbeaird Aug 15, 2020
e5b3508
Lower device URL casing
brbeaird Jan 5, 2021
7126409
Fix the sendCommand URL references
brbeaird Jan 5, 2021
7d8bec9
Limit latest activity search to contact sensor events
brbeaird Jul 29, 2021
b6f5faf
Update door icon in dashboard view
brbeaird Jul 29, 2021
884d2af
Clean up door refresh logic
brbeaird Jul 29, 2021
e013eb2
Improve tracking of when sensors/buttons are used (fix #87)
brbeaird Jul 29, 2021
7377029
Fix latest activity bug
brbeaird Aug 2, 2021
6bb0d2a
Update CHANGELOG.md
brbeaird Aug 2, 2021
a3e9b81
Add changelogs for DTH
brbeaird Aug 5, 2021
7753bbe
Clean up automation capabilities for sensor version
brbeaird Aug 5, 2021
8749a3b
Add no-sensor device handling for new app
brbeaird Aug 5, 2021
25466ee
Fix dateModified typo
brbeaird Aug 5, 2021
dde5251
Update README.md
brbeaird Aug 26, 2021
b0f487e
APIv6 (#129)
brbeaird Sep 10, 2021
aaabd3b
Update README.md
brbeaird Sep 10, 2021
ac54fe6
Update README.md
brbeaird Sep 10, 2021
e5da53a
Fix no-sensor missing vid and add accountId fallback
brbeaird Sep 12, 2021
1013bbd
Token generator improvements
brbeaird Sep 12, 2021
ce8a6f8
Add AccountId fallback to light and sensor DTH
brbeaird Sep 12, 2021
2c92d5d
Add handling for auto-copy token issues
brbeaird Sep 20, 2021
f094d83
Oauth token generation (#146)
brbeaird Sep 24, 2021
36d38d2
Update README.md
brbeaird Sep 24, 2021
f1a1801
Update README.md
brbeaird Sep 24, 2021
b6a8626
Fix close button typo
brbeaird Sep 24, 2021
acf5538
Fix other close button syntax issue
brbeaird Sep 24, 2021
a2096f9
Version and suffix (#147)
rboy1 Sep 25, 2021
10e64f2
Update installerManifest.json for community installer
brbeaird Sep 25, 2021
1d7098c
Fix httpPost error
brbeaird Sep 25, 2021
72dd758
Fixed issue where refresh was too frequent
brbeaird Sep 30, 2021
b67b0aa
Move non-groovy files into misc folders
brbeaird Oct 16, 2021
5877af2
Add redirect auth server URL option
brbeaird Oct 25, 2021
d6fbaac
Add Readme deprecation warning
brbeaird Sep 15, 2022
902666e
Add link to new Edge driver
brbeaird Sep 30, 2022
48d5c0b
Update README.md
brbeaird Jan 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: brbeaird
102 changes: 102 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Changelog

## 4.1.2 (2021-10-25)

### Added
- Added ability to specify redirect auth server

### Changed
- Changed default redirect auth URL to https

## 4.1.1 (2021-09-30)

### Fixed
- Fixed logic where refresh was happening too frequently

### Changed
- Added clearer error messaging (MyQ command errors are now passed straight through)

## 4.1.0 (2021-09-24)

### Added
- Added full oauth support within the SmartApp

## 4.0.1 (2021-09-12)

### Changed
- Added more backwards-compatibility for AccountId

## 4.0.0 (2021-09-09)

### Changed
- Update to support MyQ API v6

## 3.1.7 (2021-08-02)

### Fixed
- Fixed issue where Last Activity was not actually getting saved

## 3.1.6 (2021-07-29)

### Fixed
- Limit lastest activity search to contact sensor events
- Clean up door refresh logic

## 3.1.5 (2021-01-05)

### Fixed
- Lower device URL casing

## 3.1.4 (2020-08-09)

### Changed
- Change momentary to virtual switch to support new app

## 3.1.3 (2020-07-30)

### Fixed
- Fix username/password casing

## 3.1.2 (2020-05-25)

### Changed
- Update refresh logic to use door status instead of contact



## 3.1.1 (2019-11-07)

### Added
- Battery capability is now supported on sensor door device type
- SmartApp config page now links to this changelog

### Fixed
- Fixed issue where the app would incorrectly show updates available if the version server was unreachable

## 3.1.0 (2019-10-18)

### Changed

- Changed API calls to use the MyQ API V5 endpoints

### Notes
- Important! After updating your code, be sure to open the SmartApp, tap "modify devices", and go through the steps selecting your devices. This is necessary to make sure the app picks up the new ID's from MyQ.
- This update will try to keep your existing devices and simply update them based on name matching. However, if you end up with duplicate devices, you may need to delete the old ones manually or uninstall/reinstall.

### Known Issues
- The Momentary push button for open/close will not automatically be updated. If you already had buttons in use, this update will create new ones, and you'll need to discard the old ones.

## 3.0.0 (2019-10-09)

### Added
- Optional push notifications when version updates are available
- Optional push notifications when door or lamp module commands fail

### Changed
- Improve SmartApp screens and setup flow
- Cap on number of doors has been removed. Behind the scenes, this also means sensor variables are fully
dynamic instead of hard-coded.

### Removed
- Removed acceleration functionality (for simplification - may re-add later)
- Removed extra refreshes (hopefully these aren't actually needed anymore)
146 changes: 143 additions & 3 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/**
* Copyright 2021 Brian Beaird
*
* Provides a on/off switch, effectively mimicking a momentary for sending open/close MyQ door commands
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
metadata {
definition (name: "MyQ Action Switch", namespace: "brbeaird", author: "SmartThings", mnmn: "SmartThings", vid: "generic-switch") {
capability "Actuator"
capability "Sensor"
capability "Switch"
}

preferences {}

tiles(scale: 2) {
multiAttributeTile(name:"switch", type: "lighting", width: 6, height: 4, canChangeIcon: true){
tileAttribute ("device.switch", key: "PRIMARY_CONTROL") {
attributeState "on", label:'${name}', action:"switch.off", icon:"st.Home.home30", backgroundColor:"#00A0DC", nextState:"turningOff"
attributeState "off", label:'${name}', action:"switch.on", icon:"st.Home.home30", backgroundColor:"#FFFFFF", nextState:"turningOn", defaultState: true
attributeState "turningOn", label:'Turning On', action:"switch.off", icon:"st.Home.home30", backgroundColor:"#00A0DC", nextState:"turningOn"
attributeState "turningOff", label:'Turning Off', action:"switch.on", icon:"st.Home.home30", backgroundColor:"#FFFFFF", nextState:"turningOff"
}
}

standardTile("explicitOn", "device.switch", width: 2, height: 2, decoration: "flat") {
state "default", label: "On", action: "switch.on", icon: "st.Home.home30", backgroundColor: "#ffffff"
}
standardTile("explicitOff", "device.switch", width: 2, height: 2, decoration: "flat") {
state "default", label: "Off", action: "switch.off", icon: "st.Home.home30", backgroundColor: "#ffffff"
}

main(["switch"])
details(["switch", "explicitOn", "explicitOff"])

}
}

def parse(description) {
}

def on() {
sendEvent(name: "switch", value: "on", isStateChange: true)
}

def off() {
sendEvent(name: "switch", value: "off", isStateChange: true)
}

def installed() {
on()
}

def showVersion(){
return "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Changelog

## 4.0.1 (2021-09-12)

### Fixed
- Fixed missing vid for custom handler

## 4.0.0 (2021-09-09)

### Changed
- Update to support MyQ API v6

## 3.2.0 (2021-08-04)

### Changed
- Update custom handler for new app - support buttons and automations

## 3.1.0 (2019-10-18)

### Changed
- Update to support MyQ API v5

## 3.0.0 (2019-10-09)

### Changed
- Refactor app to use MyQDeviceId instead of serial number (in prep for API v5)

## 1.1.8 (2019-01-04)

### Fixed
- Fix inconsistent door actions

## 1.1.7 (2019-01-04)

### Fixed
- Re-add door control to fix issues with some automations

## 1.1.6 (2019-01-01)

### Removed
- Remove experimental lock capability changes (moved to separate DTH)

## 1.1.5 (2018-11-23)

### Fixed
- Remove Health check capability to fix barrage of random issues

## 1.1.4 (2018-11-20)

### Fixed
- Update ping call - attempt to fix new app issues

## 1.1.3 (2018-11-19)

### Fixed
- Re-add door control capability

## 1.1.2 (2018-08-27)

### Added
- Add actuator capability

## 1.1.0 (2017-03-30)

### Changed
- Redesign with open/close button

## 1.0.0 (2017-03-21)

### Added
- Add versioning
Loading