diff --git a/device.go b/device.go index 3b5bce0..bd1ec76 100644 --- a/device.go +++ b/device.go @@ -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 diff --git a/switchbot.go b/switchbot.go index cfb51bb..e97dda6 100644 --- a/switchbot.go +++ b/switchbot.go @@ -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