add trigger event idea.

This commit is contained in:
2022-08-18 12:58:47 +02:00
parent b6262007c0
commit c6da62d0c1
3 changed files with 40 additions and 0 deletions
+11
View File
@@ -61,6 +61,17 @@ func main() {
SceneID: 7,
})
bus.RunEvent(events.ExternalEvent{
Kind: "weather",
Values: map[string]string{
"city": "Ørland",
"region": "Trøndelag",
"country": "Norway",
"temperature_celsius": "21.00",
"precipitation_mm": "3.21",
},
})
time.Sleep(time.Second / 8)
log.Println("Search \"**:Hexagon {1,5,6}\"")