Mercurial > code > home > repos > homeauto
changeset 485:8434e3bddc87
mockup of thermostat rules
Ignore-this: 61a460ac3bdcbc0c4c6de2a2afcc6d5c
author | drewp@bigasterisk.com |
---|---|
date | Sun, 21 Apr 2019 00:06:12 -0700 |
parents | 892937212a04 |
children | 825c53502772 |
files | service/reasoning/rules.n3 |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/rules.n3 Sun Apr 21 00:05:28 2019 -0700 +++ b/service/reasoning/rules.n3 Sun Apr 21 00:06:12 2019 -0700 @@ -163,6 +163,13 @@ bang: :postAction <http://10.2.0.62/rpc/motor> . } . +{ <http://bigasterisk.com/homeauto/sensor/tempHumidKitchen> :temperatureF ?t . + <http://bigasterisk.com/homeauto/thermostatSetTemp> :temperatureF ?setTemp . + ?t math:lessThan ?setTemp . +} => { + :fakeHeater :state :on . +} . + { :frontDoorLockRequest :state :unlocked . } => { :frontDoorLock :putState :unlocked .