Discover Packages
github.com/cedricgrothues/home-automation
modules
sonoff
routes
package
Version:
v0.0.0-...-2387267
Opens a new window with list of versions in this module.
Published: Jun 9, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetState combines core.device-registry data, with device state
PutState updates a device state
type Response struct {
ID string `json:"id"`
Name string `json:"name"`
Address string `json:"address"`
State struct {
Power bool `json:"power"`
} `json:"state"`
}
Response : a typical response struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.