Exemplo n.º 1
0
 private (bool, string) IsntBoilerToHeatByBurner()
 {
     if (OilBurner.IsHeatedToReady().Item1)
     {
         return(false, "OilBurner is ready");
     }
     return(true, "Oilburner is too cold");
 }
Exemplo n.º 2
0
        private (bool, string) IsBoilerToHeatByBurner()
        {
            if (!OilBurner.IsHeatedToReady().Item1)
            {
                return(false, "OilBurner isn't ready");
            }
            var temperature = StateService.GetSensor(SensorName.BoilerTop).Value;

            if (temperature <= BOILER_COLD)
            {
                return(true, $"Boiler is to heat by burner: {temperature}");
            }
            return(false, "");
        }
Exemplo n.º 3
0
 private (bool, string) IsBurnerReady() => OilBurner.IsHeatedToReady();