public ScheduledApp(IHaContext ha, INetDaemonScheduler scheduler) { scheduler.RunAt(new DateTime(2021, 11, 03, 9, 27, 0), () => { // ha.CallService("notify", "persistent_notification", data: new { message = "Another scheduled message", title = "Scheduled message!" }); }); }
public SetCurrentModes(IHaContext ha, INetDaemonScheduler scheduler, ILogger <HouseStateManager> logger) { _haContext = ha; _scheduler = scheduler; _log = logger; _entities = new Entities(ha); InitHouseStateTimeOfDay(); InitHouseStateModes(); }
public HouseStateManager(IHaContext ha, INetDaemonScheduler scheduler, ILogger <HouseStateManager> logger) { _haContext = ha; _scheduler = scheduler; _log = logger; _entities = new Entities(ha); SetDayTime(); //SetCleaning(); SetEveningWhenLowLightLevel(); SetNightTime(); SetMorningWhenBrightLightLevel(); InitHouseStateSceneManagement(); }
public HelloNewModelApp(IHaContext ha, INetDaemonScheduler scheduler) { // ha.CallService("notify", "persistent_notification", data: new { message = "it is a test app", title = "Hello HassModel!!" }); }