mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-10 14:07:26 -06:00
time constraints on listener are working
This commit is contained in:
@@ -18,7 +18,7 @@ func main() {
|
||||
simpleListener := ga.EntityListenerBuilder().
|
||||
EntityIds("group.office_ceiling_lights").
|
||||
Call(listenerCB).
|
||||
// OnlyBetween("07:00", "14:00").
|
||||
OnlyAfter("23:03").
|
||||
Build()
|
||||
app.RegisterEntityListener(simpleListener)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user