radiodan/magic-button — pull request #7 by andrewn (2014-11-05 18:06:42+00:00)
Title: Emit power messages

Emit power messages over the event stream so that web UI can react even when it didn't initiate the transition (like when physical button is pressed, or another web UI).

event:message
data:{"topic":"power","data":{"isOn":true}}