* WWST-1402 Add discrete Thermostat capabilties to have Zen work with ui metadata
* WWST-1402 Zen Thermostat adjustments to work with OneApp
Shortens the timeout before collecting UI events to change setpoints
Automatically sends updated setpoint event when we send the zigbee command, since we never waited for confirmation previously
* PROB-1869 Zen thermostat connecting with no battery state
Changing algorithm for calculating battery % so it no longer need the check
for upper/lower limit of the received voltage.
* Update zen-thermostat.groovy
A customer reported on PR 2296;
"My Zen can only Heat (10A setting I think). There is no option for "Off, Heat" in the thermostat modes settings UI."
Adding ["off", "heat"] and ["off", "cool"] to settings.
* PROB-1869 Zen thermostat connecting with no battery state
Changing max allowed battery voltage from 6.0 to 6.1 as
logs from a user showed the thermostat reporting 6.1V despite
there's only 4 x 1.5V batteries.
Also made a change so that thermostatMode and fanMode only generate
an event when the mode is changing.
* Update zen-thermostat.groovy
ICP-1047 - Zen Thermostat doesn't have Temperature unit(C or F).
ICP-1041 - [Zen Thermostat] Fan mode is not displayed in ST Plugin
ICP-1148 - [P170712-02680] Support Thermostat Dynamic data
MOB-3388 - ST app: Zen Thermostat is missing Icon on Android Device
DVCSMP-2838 - Raw Zen Thermostat Setpoint Inconsistent with Device Display
DVCSMP-1492 - Zen Thermostat in Emergency Heat Mode Doesn't Display/Respond
DVCSMP-1014 - Zen thermostat: device handler doesn't handle attribute reports with invalid values
Also changed UI to use multiattribute tile, added battery status, removed config button as it doesn't add any value,
added user configurable thermostat modes in settings page