Added lots of services and fixed bug with ID for websocket calls

This commit is contained in:
Sam Lewis
2022-10-13 02:17:36 -04:00
parent 7f9e346d34
commit b99c1e5925
13 changed files with 379 additions and 59 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"log"
"time"
ga "github.com/saml-dev/gome-assistant"
)
@@ -25,7 +26,10 @@ func main() {
}
func lightsOut(service *ga.Service, state *ga.State) {
service.HomeAssistant.Toggle("light.office_ceiling_lights")
service.InputDatetime.Set("input_datetime.garage_last_triggered_ts", time.Now())
// service.HomeAssistant.Toggle("group.living_room_lamps", map[string]any{"brightness_pct": 100})
// service.Light.Toggle("light.entryway_lamp", map[string]any{"brightness_pct": 100})
// service.Switch.Toggle("switch.espurna_sunroom_lamp")
}
func cool(service ga.Service, data ga.Data) {