Skip to content

Commit 41497d1

Browse files
authored
Fix: Add battery level field to ContactSensorEventContext (#26)
1 parent a99f607 commit 41497d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ type ContactSensorEventContext struct {
296296
Brightness AmbientBrightness `json:"brightness"`
297297
// the state of the contact sensor, can be "open" or "close" or "timeOutNotClose"
298298
OpenState string `json:"openState"`
299+
// the current battery level, 0-100
300+
Battery int `json:"battery"`
299301
}
300302

301303
type MeterEvent struct {

0 commit comments

Comments
 (0)