]> git.basschouten.com Git - openhab-addons.git/commit
Venstar: split away and schedule settings calls (#13046)
authordae1804 <github@daveeberhart.com>
Fri, 22 Jul 2022 19:44:43 +0000 (15:44 -0400)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 19:44:43 +0000 (21:44 +0200)
commit36ad888b9202ef46207051de29350f15eb52fdd1
tree7cc6ecfb2adc94e61efe170449a4c8fcc32d3e5e
parentc729b82d59473f1fac871a5b18bda35f697fcc7a
Venstar: split away and schedule settings calls (#13046)

Separate Venstar thermostat API calls to change the away mode or
schedule-enabled mode so that the POST to the thermostat's REST
API settings endpoint contains only one of these two params.

Newer ColorTouch thermostat firmwares will reject any POSTs to the
settings endpoint that include the 'schedule' parameter when the
thermostat is currently in AWAY mode, regardless of the value
passed for 'schedule'.  This had the effect of preventing the
OpenHab binding from un-setting away mode.

Signed-off-by: David Eberhart <git@daveeberhart.com>
bundles/org.openhab.binding.venstarthermostat/src/main/java/org/openhab/binding/venstarthermostat/internal/handler/VenstarThermostatHandler.java