2024年11月24日星期日 上午4:11:20

HADotNet - A .NET Standard Library for Home Assistant

8 个月 前
#29635 引用
HADotNet - A .NET Standard Library for Home Assistant

https://community.home-assistant.io/t/hadotnet-a-net-standard-library-for-home-assistant/128021

The project’s homepage is located here: https://github.com/qJake/HADotNet/
0
8 个月 前
#29636 引用
I’ve started an open-source code library to wrap the official external Home Assistant API into an easy-to-use, strongly-typed C# library.

Get State

var statesClient = ClientFactory.GetClient<StatesClient>();
var state = await statesClient.GetState("sun.sun");
0