NEnvoy 0.3.2-alpha

This is a prerelease version of NEnvoy.
dotnet add package NEnvoy --version 0.3.2-alpha
                    
NuGet\Install-Package NEnvoy -Version 0.3.2-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NEnvoy" Version="0.3.2-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NEnvoy" Version="0.3.2-alpha" />
                    
Directory.Packages.props
<PackageReference Include="NEnvoy" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NEnvoy --version 0.3.2-alpha
                    
#r "nuget: NEnvoy, 0.3.2-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NEnvoy@0.3.2-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NEnvoy&version=0.3.2-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=NEnvoy&version=0.3.2-alpha&prerelease
                    
Install as a Cake Tool

Logo NEnvoy

Build Status Nuget version

A .Net Enphase Envoy client available as a NuGet package.

Currently a work in progress. The list of currently implemented (and not yet implemented) items can be found here.

Quickstart

// Create client and login (assumes "envoy" hostname)
var ci = new EnvoyConnectionInfo
{
	Username = "user@gmail.com",
	Password = "sup3rs3cet",
};
var client = await EnvoyClient.FromLoginAsync(ci).ConfigureAwait(false);

// Get information from Envoy
var deviceinfo = await client.GetEnvoyInfoAsync();

Sessions

A login is slow; once a session has been set up (logged in successfully) you can obtain the token and save it for later use:

var token = client.GetToken();
// Save the token to a file/database/whatever

You can then create client from the token:

var client = EnvoyClient.FromToken(token, ci);

Connection

You can specify a different hostname or IP address for your Envoy:

var ci = new ConnectionInfo("user@gmail.com", "sup3rs3cet", "envoy.local");
// or:
var ci = new ConnectionInfo("user@gmail.com", "sup3rs3cet", "192.168.123.45");

Similarly, the base URI's for the enphase portal can be overridden:

var ci = new ConnectionInfo("user@gmail.com", "sup3rs3cet", EnphaseBaseUri: "https://enlighten-new.enphaseenergy.com");
// or:
var ci = new ConnectionInfo("user@gmail.com", "sup3rs3cet", EnphaseEntrezBaseUri: "https://entrez-new.enphaseenergy.com");

Contributing

Yes please! Implement any of the methods and make a PR and we'll take it from there.

License

Licensed under MIT license. See LICENSE for details.


Icon made by Payungkead from www.flaticon.com is licensed by CC 3.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.2-alpha 98 3/7/2024
0.3.1-alpha 157 6/2/2023
0.3.0-alpha 132 6/2/2023
0.2.5-alpha 130 5/30/2023
0.2.4-alpha 120 5/30/2023
0.2.3-alpha 124 5/22/2023
0.2.2-alpha 122 5/22/2023
0.2.1-alpha 126 5/22/2023
0.2.0-alpha 125 5/22/2023
0.1.2-alpha 125 5/17/2023
0.1.1-alpha 118 5/17/2023
0.1.0-alpha 128 5/16/2023