public async Task StartAsync(CancellationToken cancellationToken)
 {
     try
     {
         await _ioBroker.ConnectAsync(TimeSpan.FromSeconds(_ioBrokerConfig.ConnectionTimeout));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
 public ToiletFlusherStateMachine(
     IFlushService flusherMotor,
     IManDetectionService manDetection,
     ILedControl ledControl,
     IIoBrokerDotNet ioBroker)
 {
     _ioBroker     = ioBroker;
     mFlusherMotor = flusherMotor;
     mManDetection = manDetection;
     mLedControl   = ledControl;
     mStatus       = new ToiletStateMachineStatus();
     mManDetection.SomeoneDetectedChanged += SomeoneDetectedChangedHandler;
     mManDetection.SomeoneIsPeeingChanged += SomeoneIsPeeingChangedHandler;
     ConfigureStateMachine();
     _ioBroker.ConnectAsync(TimeSpan.FromSeconds(5));
 }