A port of the HADotNet library for Unity.
HADotNet is a simple, straighforward .NET Standard library for the Home Assistant API.
Dependencies
This library depends on JSON.Net, a modified version can be installed from the Asset store.
Usage
See the scripts folder for a sample usage to turn on/off a light.
- Attach HomeAssistant to an Empty Gameobject in your scene
- Configure the url & api key
- Attach a HALight to one of your scene objects, be sure to also have a collider component configured
- Provide the HA device id of your light entity & configure the interaction
- Turn on/off your light