backdoor spaceapi
authorBernhard Tittelbach <xro@realraum.at>
Tue, 8 Oct 2013 17:08:29 +0000 (17:08 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Tue, 8 Oct 2013 17:08:29 +0000 (17:08 +0000)
go/r3-netstatus/webstatus.go

index d29fe02..537b5ab 100644 (file)
@@ -80,6 +80,9 @@ func EventToWeb(ps *pubsub.PubSub) {
             case r3events.PresenceUpdate:
                 statusstate.present = event.Present
                 publishStateToWeb()
+            case r3events.BackdoorAjarUpdate:
+                spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("HintertorwaechterAjarSensor", "Hintertürkontakt", event.Shut))
+                publishStateToWeb()
             case r3events.DoorAjarUpdate:
                 spaceapidata.MergeInSensor(spaceapi.MakeDoorLockSensor("TorwaechterAjarSensor", "Türkontakt", event.Shut))
                 publishStateToWeb()