Skip to content

eric-winkler/MyAir3Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyAir 3 Api

Build Status

The MyAir3Api provides a .net consumable interface for interacting with the airconditioner control functions exposed by AdvantageAir's MyAir3 controller.

There is both a .netstandard 1.3 implementation, and a .net Micro Framework implementation available. THe netstandard implementation has been developed and tested against a rasberry pi running win10 IoT as well as a win10 desktop machine. The .net MF implementation has been developed and tested against a netduino plus 2.

Recent Changes

  • Automatic discovery of aircon controllers via UDP broadcast

Example Usage

Turn on, max fans and cool to 22 degrees

var zoneStation = await Aircon.ConnectAsync();
zoneStation.CentralDesiredTemp = 22m;
zoneStation.InverterMode = InverterMode.Cool;
zoneStation.FanSpeed = FanSpeed.High;
zoneStation.PowerOn = true;
await zoneStation.UpdateAsync();

Turn on the master bedroom zone, and turn everything else off

var zoneStation = await Aircon.ConnectAsync();
foreach(var zone in await zoneStation.GetZonesAsync())
{
	zone.Enabled = zone.Name == "MASTER BED";
	await zone.UpdateAsync();
}

Clear all the schedules, then set a new schedule for weekends, 0500-0600

var zoneStation = await Aircon.ConnectAsync();
var schedules = await zoneStation.GetSchedulesAsync();
await Task.WhenAll(schedules.Select (s => s.DisableAsync()));

var earlyMorningSchedule = schedules.First();
earlyMorningSchedule.Name = "Comfy Morning";
earlyMorningSchedule.ScheduledDays = ScheduledDay.Saturday | ScheduledDay.Sunday;
earlyMorningSchedule.StartTime = new TimeSpan(5,0,0);
earlyMorningSchedule.EndTime = new TimeSpan(6,0,0);
foreach(var zone in earlyMorningSchedule.Zones)
{
	zone.Enabled = true;
}
await earlyMorningSchedule.UpdateAsync();

License

MyAir3Api is released under the Apache License (see the license file) and is copyright Eric Winkler, 2014.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published