Skip to content

A library for easily consuming the Homewizard Energy API in .NET

Notifications You must be signed in to change notification settings

fgheysels/homewizard-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fg.HomeWizard.EnergyApi.Client

Build Status NuGet Badge

This library offers an easy integration with the HomeWizard Energy API. It is available via NuGet and can be installed via:

Installation

PM> Install-Package Fg.HomeWizard.EnergyApi.Client

Usage

To be able to retrieve data that is exposed by your HomeWizard P1 device, you first need to know the hostname of your P1 meter. When your P1 meter is connected with your network, you'll be able to find the hostname in your Host Clients list in your router. For instance:

host clients

Find your HomeWizardDevice in your network using its hostname with the HomewizardDeviceResolver:

HomeWizardDevice device = 
    await HomeWizardDeviceResolver.FindHomeWizardDeviceAsync("p1meter-015AB0", logger);

Notice that you need to remove the HW- part of the hostname.

Once the device has been found, you can instantiate a HomeWizardService instance and read out the last readings via the code below:

HomeWizardService service = new HomeWizardService(device);

Measurement currentMeasurement = await service.GetCurrentMeasurementsAsync();

About

A library for easily consuming the Homewizard Energy API in .NET

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages