Skip to content

Commit

Permalink
Add MeterPro device support (#24)
Browse files Browse the repository at this point in the history
* add MeterPro physical device type

* add CO2 field
  • Loading branch information
SlashNephy authored Oct 20, 2024
1 parent 6849913 commit 755254e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ type DeviceStatus struct {
Battery int `json:"battery"`
Version DeviceVersion `json:"version"`
Direction string `json:"direction"`
CO2 int `json:"CO2"`
}

type PowerState string
Expand Down
4 changes: 3 additions & 1 deletion switchbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ const (
IndoorCam PhysicalDeviceType = "Indoor Cam"
// PanTiltCam is SwitchBot Pan/Tilt Cam Model No. W1801200
PanTiltCam PhysicalDeviceType = "Pan/Tilt Cam"
//PanTiltCam2K is SwitchBot Pan/Tilt Cam 2K Model No. W3101100
// PanTiltCam2K is SwitchBot Pan/Tilt Cam 2K Model No. W3101100
PanTiltCam2K PhysicalDeviceType = "Pan/Tilt Cam 2K"
// BlindTilt is SwitchBot Blind Tilt Model No. W2701600
BlindTilt PhysicalDeviceType = "Blind Tilt"
// MeterPro is SwitchBot CO2 Sensor Model No. W4900010
MeterPro PhysicalDeviceType = "MeterPro"
)

type VirtualDeviceType string
Expand Down

0 comments on commit 755254e

Please sign in to comment.