Code by Scott שאול בן ישוע
Verified Commit 2390720c authored by Sha'ul ben Yeshua's avatar Sha'ul ben Yeshua 🎗
Browse files

code changes

parent 6219590f
/*
* Hubitat Import URL: https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/ABC_Child_Creator.groovy
* Hubitat Import URL: https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/Inovelli-Scene-Creator-Child.groovy
*
* Inovelli Scene Creator Child
*
* Original Authors: SmartThings, modified by Bruce Ravenel, Dale Coffing, Stephan Hackett
*
* ABC Child Creator for Advanced Button Controller
* Modified for Inovelli Scene control by Scott Grayban (Scott_Inovelli)
*
* Author: SmartThings, modified by Bruce Ravenel, Dale Coffing, Stephan Hackett
*
* 11/05/19 - Added previousTrack support for speakers
*
* 10/06/19 - Added Auto as option under Set Fan Speed
*
* 08/14/19 - Send Http Requests (POST or GET - simple form encoded)
*
* 05/18/19 - Speech notifications now allow random messages to be sent (Use ; to separate options)
* - cycleFan modified to no longer use numeric setSpeed values as this may be deprecated by HE for future fan devices
*
* 04/29/19 - fixed small UI bug handling '0' level values
* - updated adjustFans method
*
* 02/19/19 - rules api bug squashed
*
* 02/17/19 - updated Button Description for rules to show Rule name instead of Rule number
* - Button Descriptions will now be surrounded by [] for better visibility
* - Action details are now stored in a state value to allow for better efficiency
*
* 02/10/19 - setColor Level is no longer required (can be left blank)
*
* 02/07/19 - fixed Set Color bug (missing level option)
*
* 01/14/19 - updated logging output to appropriate type (info vs debug)
* - added input to enable/disable debug logging
* - added url to Raw code at the top of the parent/child apps
* (Thanks for the feedback and suggestions @csteeele)
* - update checking code is now done through json file (Thanks to @Cobra for his guidance)
*
* 12/15/18 - updated color scheme to match new HE theme
* - added suppot for Rules API
*
*
* 10/12/18 - adjusted "Set Mode" to comply with mode related updates in firmware 1.1.5
*
*
* 8/01/18 - added Hubitat Safety Monitor Control (created new MODES section for Set Mode and Set HSM)
* added level to setColor()
* added new detail parameter "myDetail.mul" (Mode and HSM set to multiple:false)
* removed section shallHide for sub inputs .... (section will be visible if primary input has a value...sub value no longer checked)
*
*
* 7/03/18 - code cleanup
* Added pictures enhancements and reordered options for better flow
* Corrected default child app label (previously defaulted to "ABC Button Mapping" on first save)
*
*
* 7/01/18 - added Released actions for all control sections
* Pushed/Held/DoubleTapped/Released hidden from Dimmer Ramp section based on devices capabilities
*
* 6/30/18 - adapted fan cycle to be compliant with fanControl capability (removed cycle support for custom driver)
* added ability to set specific fan speed
* added support for ramping (graceful dimming) - switch/bulb needs changeLevel capability and button device needs releaseableButton capability
*
*
* 6/02/18 - added ability to cycle custom Hampton Bay Zigbee Fan Controller
*
*
* 4/21/18 - added support for new Sonos Player devices (play/pause, next, previous, mute/unmute, volumeup/down)
*
*
* 3/28/18 - added option to set color and temp
* test code for custom commands (not yet working)
*
* 2/06/18 - converted code to hubitat format
* removed ability to hide "held options"
* removed hwspecifics section as is no longer applicable
* adjusted device list to look for "capability.pushableButton"
* adjusted buttonDevice subscription (pushed, held, doubleTapped)
* adjusted buttonEvent() to swap "name" and "value" as per new rules
* 2/08/18 - change formatting for Button Config Preview (Blue/Complete color)
* Added Double Tap inputs and edited shallHide() getDescription()
* added code for showDouble() to only display when controller support DT
* removed enableSpec and other Virtual Container Code as this is not supported in Hubitat
*2/12/18
* Updated to new detailsMap and modified Button Config/Preview pages
* hides secondary values if primary not set. When dispayed they are now "required".
*
*2/12/18
* Switched to parent/child config
* removed button pics and descriptive text (not utilized by hubitat)
*
*10/24/18
* added the ability to cycle through Scenes (done using push() command and cycles in alphabetical order only)
* minor GUI updates
*/
import hubitat.helper.RMUtils
def version(){"v0.2.191105"}
def version(){"v1.0"}
definition(
name: "Inovelli Scene Creator Child",
......
/*
* Hubitat Import URL: https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/Advanced_Button_Controller.groovy
* Hubitat Import URL: https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/Inovelli-Scene-Creator.groovy
*
*
* Advanced Button Controller (Parent/Child Version)
*
* Author: Stephan Hackett
*
*
* 01/14/19 - added url to Raw code at the top of the parent/child apps
* - adjusted logging
* - update checking code is now done through json file (Thanks to @Cobra for his guidance)
*
* 07/03/18 - added pictures and Update check
* Original Author: Stephan Hackett
* Modified for Inovelli Scene control by Scott Grayban (Scott_Inovelli)
*
*/
def version(){"v0.2.190114"}
def version(){"v1.0"}
definition(
name: "Inovelli Scene Creator",
......
{
"currVersion": "v0.2.191105",
"currVersion": "v1.0",
"rawCode":
"<small><a href='https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/ABC_Child_Creator.groovy' target='_blank'> [Raw Code]</a></small>",
"<small><a href='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/Inovelli-Scene-Creator-Child.groovy' target='_blank'> [Raw Code]</a></small>",
"noUpdateImg":
"<img src='https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"updateImg":
"<img src='https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"changeLog":
"<a href='https://community.hubitat.com/t/advanced-button-controller-abc/' target='_blank'>[Update Notes]</a></span></small>"
"<a href='https://community.inovelli.com/advanced-button-controller-abc/' target='_blank'>[Update Notes]</a></span></small>"
}
{
"currVersion": "v0.2.190114",
"currVersion": "v1.0",
"rawCode":
"<small><a href='https://raw.githubusercontent.com/stephack/Hubitat/master/apps/Advanced%20Button%20Controller%20(ABC)/Advanced_Button_Controller.groovy' target='_blank'> [Raw Code]</a></small>",
"<small><a href='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/Inovelli-Scene-Creator.groovy' target='_blank'> [Raw Code]</a></small>",
"noUpdateImg":
"<img src='https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/noUpdate.png' title='No Update Needed.'><small><span style='color:green'> Up To Date</span></small>",
"updateImg":
"<img src='https://raw.githubusercontent.com/stephack/Hubitat/master/resources/images/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"<img src='https://raw.githubusercontent.com/sgrayban/ABC-Button/master/apps/Inovelli-Scene-Creator/update.png' title='Please Update Driver.'></a><small><span style='color:red'> Update Available: ",
"changeLog":
"<a href='https://community.hubitat.com/t/advanced-button-controller-abc/' target='_blank'>[Update Notes]</a></span></small>"
"<a href='https://community.inovelli.com/advanced-button-controller-abc/' target='_blank'>[Update Notes]</a></span></small>"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment