From: Bernhard Tittelbach Date: Tue, 8 Oct 2013 17:08:29 +0000 (+0000) Subject: backdoor spaceapi X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=0120a38079b5287d7da1cdaea4d779467f366c9c;p=svn42.git backdoor spaceapi --- 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()