summaryrefslogtreecommitdiffstats
path: root/app/api/Binding.qml
diff options
context:
space:
mode:
authorJan-Simon Möller <dl9pf@gmx.de>2017-05-12 00:34:45 +0200
committerJan-Simon Möller <dl9pf@gmx.de>2017-05-12 00:34:45 +0200
commitb87f50ea2c03d864b6f3e5285a5171fa4c276f16 (patch)
treee5810f79f6f596adb99d3ab31db803fe31503891 /app/api/Binding.qml
parent479c3ebd2eb907d5d7f8f36ba0db8a9223d7fa9a (diff)
A/C blinks i2c LEDsandbox/jsmoeller/i2ctest
Change-Id: I877fae21a3150c3b48a4390f9795a5333d393b49 Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
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))