design and impl BaseServiceRequest

This commit is contained in:
Sam Lewis
2022-10-12 01:14:32 -04:00
parent 4cf16d0d41
commit 7f9e346d34
6 changed files with 54 additions and 11 deletions

View File

@@ -24,8 +24,8 @@ func main() {
log.Println(s2)
}
func lightsOut(service ga.Service, state ga.State) {
// ga.TurnOff("light.all_lights")
func lightsOut(service *ga.Service, state *ga.State) {
service.HomeAssistant.Toggle("light.office_ceiling_lights")
}
func cool(service ga.Service, data ga.Data) {