概要
SwitchbotのAPIv1.1を取得した際の実行結果
前提として、ZabbixでSwitchbotを監視する手順で取得したトークンやシークレット、作成したスクリプトを利用します。
https://validationmemo.blogspot.com/2025/09/switchbotzabbix.html
01.スクリプトを実行し、そのデバイスの実行結果を確認します。
$./switchbot_api.py トークン クライアントシークレット デバイスID
{
"statusCode": 100,
"body": {
"version": "V2.0-2.0",
"power": "off",
"voltage": 99.2,
"weight": 0,
"electricityOfDay": 524,
"electricCurrent": 0,
"deviceId": "デバイスID",
"deviceType": "Plug Mini (JP)",
"hubDeviceId": "SwitchbotハブID"
},
"message": "success"
0 件のコメント:
コメントを投稿