mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-10 22:07:22 -06:00
design and impl BaseServiceRequest
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user