private IEnumerable <SettingItemVM> GenerateRollerShutterAutoamtionSettings()
        {
            yield return(BoolSettingVM.CreateFrom(_settings, "SkipBeforeTimestampIsEnabled", true, "Skip before timestamp").WithIsNoAppSetting());

            yield return(TimeSpanSettingVM.CreateFrom(_settings, "SkipBeforeTimestamp", TimeSpan.Parse("07:15:00"), "Skip before timestamp time").WithIsNoAppSetting());

            yield return(BoolSettingVM.CreateFrom(_settings, "SkipIfFrozenIsEnabled", true, "Skip if frozen").WithIsNoAppSetting());

            yield return(FloatSettingVM.CreateFrom(_settings, "SkipIfFrozenTemperature", 2, "Skip if frozen temperature").WithIsNoAppSetting());

            yield return(BoolSettingVM.CreateFrom(_settings, "AutoCloseIfTooHotIsEnabled", true, "'Close if too hot' enabled").WithIsNoAppSetting());

            yield return(FloatSettingVM.CreateFrom(_settings, "AutoCloseIfTooHotTemperaure", 25F, "'Close if too hot' temperature").WithIsNoAppSetting());

            yield return
                (TimeSpanSettingVM.CreateFrom(_appSettings, "OpenOnSunriseOffset", TimeSpan.Parse("-00:30:00"),
                                              "Sunrise offset").WithIsNoAppSetting());

            yield return
                (TimeSpanSettingVM.CreateFrom(_appSettings, "CloseOnSunsetOffset", TimeSpan.Parse("00:30:00"),
                                              "Sunset offset").WithIsNoAppSetting());
        }
        private IEnumerable <SettingItemVM> GenerateRollerShutterAutoamtionSettings()
        {
            yield return(BoolSettingVM.CreateFrom(_appSettings, "DoNotOpenBeforeIsEnabled", true, "'Do not open before' enabled").WithIsNoAppSetting());

            yield return(TimeSpanSettingVM.CreateFrom(_appSettings, "DoNotOpenBeforeTime", TimeSpan.Parse("07:15:00"), "'Do not open before' time").WithIsNoAppSetting());

            yield return(BoolSettingVM.CreateFrom(_appSettings, "DoNotOpenIfTooColdIsEnabled", true, "'Do not open if frozen' enabled").WithIsNoAppSetting());

            yield return(FloatSettingVM.CreateFrom(_appSettings, "DoNotOpenIfTooColdTemperature", 2, "'Do not open if frozen' temperature").WithIsNoAppSetting());

            yield return(BoolSettingVM.CreateFrom(_appSettings, "AutoCloseIfTooHotIsEnabled", true, "'Close if too hot' enabled").WithIsNoAppSetting());

            yield return(FloatSettingVM.CreateFrom(_appSettings, "AutoCloseIfTooHotTemperaure", 25F, "'Close if too hot' temperature").WithIsNoAppSetting());

            yield return
                (TimeSpanSettingVM.CreateFrom(_appSettings, "OpenOnSunriseOffset", TimeSpan.Parse("-00:30:00"),
                                              "Sunrise offset").WithIsNoAppSetting());

            yield return
                (TimeSpanSettingVM.CreateFrom(_appSettings, "CloseOnSunsetOffset", TimeSpan.Parse("00:30:00"),
                                              "Sunset offset").WithIsNoAppSetting());
        }
Example #3
0
        private IEnumerable <SettingItemVM> GenerateHumiditySensorSettings()
        {
            yield return(FloatSettingVM.CreateFrom(_appSettings, "WarningValue", 60, "Warning value"));

            yield return(FloatSettingVM.CreateFrom(_appSettings, "DangerValue", 70, "Danger value"));
        }