-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add GHA workflows * publish dockerfiles * refactor homie part
- Loading branch information
Showing
3 changed files
with
101 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
package homie | ||
|
||
type Nodes map[string]Node | ||
type Device struct { | ||
Name string | ||
Implementation string | ||
NodeIDs []string | ||
} | ||
|
||
type Node struct { | ||
Name string | ||
Type string | ||
|
||
Properties Properties | ||
NodeID string | ||
Name string | ||
Type string | ||
PropertyIDs []string | ||
} | ||
|
||
type Properties map[string]Property | ||
|
||
type Property struct { | ||
NodeID string | ||
PropertyID string | ||
|
||
Name string | ||
DataType string | ||
|
||
Format string | ||
Settable bool | ||
Retained bool | ||
Unit string | ||
|
||
Value any | ||
} |