add notify service

This commit is contained in:
Sam Lewis
2022-11-06 15:00:39 -05:00
parent e3e7889574
commit ba9132745e
5 changed files with 49 additions and 3 deletions

4
app.go
View File

@@ -3,6 +3,7 @@ package gomeassistant
import (
"context"
"fmt"
"log"
"os"
"time"
@@ -164,6 +165,9 @@ func getSunriseSunset(a *App, sunrise bool, offset []DurationString) carbon.Carb
}
func (a *App) Start() {
log.Default().Println("Starting", a.schedules.Len(), "schedules")
log.Default().Println("Starting", len(a.entityListeners), "entity listeners")
log.Default().Println("Starting", len(a.eventListeners), "event listeners")
// schedules
go runSchedules(a)