C# library to connect to the Geberit AquaClean Mera toilet using UWP (Universal Windows Platform)
This library can be used to connect to the Geberit AquaClean Mera toilet. Using a standard Windows or Windows IoT Core on a Raspberry Pi.
The library works fine for basic controlling of the toilet. The code could need a rewrite and more structure. It is an early alpha!
Usage of the library
String deviceId = "BluetoothLE#BluetoothLE00:xx:xx:xx:xx:xx-xx:xx:xx:xx:xx:xx";
var factory = new AquaCleanClientFactory(new BluetoothLeConnector());
var client = factory.CreateClient();
client.DeviceStateChanged += async (sender, args) =>
{
if (args.IsUserSitting.HasValue)
{
Debug.WriteLine(String.Format("IsUserSitting={0}", args.IsUserSitting.Value));
}
if (args.IsAnalShowerRunning.HasValue)
{
Debug.WriteLine(String.Format("IsAnalShowerRunning={0}", args.IsAnalShowerRunning.Value));
}
if (args.IsLadyShowerRunning.HasValue)
{
Debug.WriteLine(String.Format("IsLadyShowerRunning={0}", args.IsLadyShowerRunning.Value));
}
};
await client.Connect(deviceId);
client.ToggleLidPosition();
Work in Progress...