mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-10 04:07:28 -06:00
fix zwave js event type
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
|
||||
ga "github.com/saml-dev/gome-assistant"
|
||||
@@ -39,7 +40,10 @@ func pantryLights(service *ga.Service, data ga.EntityData) {
|
||||
}
|
||||
|
||||
func onEvent(service *ga.Service, data ga.EventData) {
|
||||
service.HomeAssistant.Toggle("light.el_gato_key_lights")
|
||||
// service.HomeAssistant.Toggle("light.el_gato_key_lights")
|
||||
ev := ga.EventZWaveJSValueNotification{}
|
||||
json.Unmarshal(data.RawEventJSON, &ev)
|
||||
log.Default().Println(ev)
|
||||
}
|
||||
|
||||
func cool(service *ga.Service, state *ga.State) {
|
||||
|
||||
Reference in New Issue
Block a user