From 0120a38079b5287d7da1cdaea4d779467f366c9c Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Tue, 8 Oct 2013 17:08:29 +0000 Subject: [PATCH] backdoor spaceapi --- go/r3-netstatus/webstatus.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/r3-netstatus/webstatus.go b/go/r3-netstatus/webstatus.go index d29fe02..537b5ab 100644 --- a/go/r3-netstatus/webstatus.go +++ b/go/r3-netstatus/webstatus.go @@ -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() -- 1.7.10.4