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: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Action struct {
Controller string `json:"controller"`
Device string `json:"device"`
Property *Property `json:"property"`
}
Action is a single step in a scene
Validate checks that the action makes sense
type Property struct {
Name string `json:"name"`
Value interface{} `json:"value"`
}
Property defines an action property.
The value is going to be stored as a
string, it's type will be stored accoringly
Validate checks that the action makes sense
type Scene struct {
ID string `json:"id"`
Name string `json:"name"`
Owner string `json:"owner"`
Actions []*Action `json:"actions"`
}
Scene represents a set of actions
Validate checks that the scene makes sense
Source Files
¶
Click to show internal directories.
Click to hide internal directories.