Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MeterPro device support #24

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

SlashNephy
Copy link
Contributor

いつも便利に使わせていただいています。

10月発売の SwitchBot CO2センサーが届いたので、対応してみました。
OpenWonderLabs/SwitchBotAPI#352 によると、まだ API リファレンスでは undocumented なのですが API からレスポンスが返ってきていることを確認しています。

GET /v1.1/devices HTTP/1.1

{"statusCode":100,"body":{"deviceList":[...,{"deviceId":"xxx","deviceName":"CO2センサー(温湿度計) FA","deviceType":"MeterPro","enableCloudService":true,"hubDeviceId":""},...]},"message":"success"}

GET /v1.1/devices/xxx/status HTTP/1.1

{"statusCode":100,"body":{"deviceId":"xxx","deviceType":"MeterPro","hubDeviceId":"xxx","humidity":55,"temperature":25.6,"CO2":931,"version":"V1.4","battery":100},"message":"success"}

Copy link
Owner

@nasa9084 nasa9084 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

はやい!私も購入はしましたがまだ届いていません・・・

@nasa9084 nasa9084 merged commit 755254e into nasa9084:main Oct 20, 2024
1 check passed
@SlashNephy SlashNephy deleted the feat/meter-pro-support branch October 21, 2024 11:20
@SlashNephy
Copy link
Contributor Author

マージありがとうございます!
早く届くとよいですね😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants