Add switch_flipped event support

This commit is contained in:
Kirigaya Kazuto 2018-02-12 19:42:35 +08:00
parent e88959649f
commit db306383c2

View File

@ -165,6 +165,13 @@ local function doInternalEventInit()
t["message"]=raw_event[4]
end
tb["switch_flipped"]=function(raw_event,t)
t["event"]=raw_event[1]
t["address"]=raw_event[2]
t["index"]=raw_event[3]
t["newState"]=raw_event[4]
end
--- OpenSecurity
tb["magData"]=function(raw_event,t)