Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimm98y/egonapi

Client to control the ABB Ego-n smart home system
https://github.com/jimm98y/egonapi

abb ego-n netstandard smarthome

Last synced: 17 days ago
JSON representation

Client to control the ABB Ego-n smart home system

Awesome Lists containing this project

README

        

# EgonAPI
Client to control the ABB Ego-n smart home system. The client communicates directly with the web module over HTTP.

## Discover
Call `DiscoverAsync` to get the web module description:
```cs
EgonDescription discovery = await EgonClient.DiscoverAsync("192.168.1.255");
```

## EgonClient
Create the client:
```cs
var egonClient = new EgonClient(discovery, "admin", "123456789");
```

Retrive all devices and groups from the configuration:
```cs
var egonConfig = await egonClient.GetConfigurationAsync();
```

Query the current state of all devices (polling):
```cs
var updated = await egonClient.GetCurrentStateAsync(egonConfig);
```

## Control devices
To turn on the first device:
```cs
await egonClient.ExecuteActionAsync(egonConfig.Devices.First().Value.Id, EgonActions.On);
```