The Switchbot dotnet SDK based on https://github.com/OpenWonderLabs/SwitchBotAPI
Note: This SDK is unofficial.
SwitchbotClient client = new SwitchbotClient("{token}");
DeviceListResponse devices = await client.Device.GetListAsync();
SwitchbotClient client = new SwitchbotClient("{token}");
DeviceStatusResponse status = await client.Device.GetStatusAsync("{deviceId}");
SwitchbotClient client = new SwitchbotClient("{token}");
CommandExecuteResoponse result = await client.Device.Bot.PressAsync("{deviceId}");
SwitchbotClient client = new SwitchbotClient("{token}");
SceneListResponse devices = await client.Scene.GetListAsync();
SwitchbotClient client = new SwitchbotClient("{token}");
SceneExecuteResoponse result = await client.Scene.ExecuteAsync("{sceneId}");