summaryrefslogtreecommitdiffstats
path: root/app/api/Binding.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/api/Binding.qml')
-rw-r--r--app/api/Binding.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/api/Binding.qml b/app/api/Binding.qml
index 93da6f4..1aeee57 100644
--- a/app/api/Binding.qml
+++ b/app/api/Binding.qml
@@ -27,9 +27,15 @@ WebSocket {
property real fanSpeed: 0.0
property real leftTemperature: 21.0
property real rightTemperature: 21.0
+ property real acEnabled: 0.0
property Connections c : Connections {
target: root
+ onAcEnabledChanged: {
+ var json = [MessageId.call, '9999', 'hvac/set_acenabled', {'ACEnabled': acEnabled}]
+ console.debug(JSON.stringify(json))
+ sendTextMessage(JSON.stringify(json))
+ }
onFanSpeedChanged: {
var json = [MessageId.call, '9999', 'hvac/set', {'FanSpeed': fanSpeed}]
console.debug(JSON.stringify(json))