8000 DEV-1250 Extend Niflheim site structure to include additional data from Vinculum by rhstr · Pull Request #46 · futurehomeno/fimpgo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DEV-1250 Extend Niflheim site structure to include additional data from Vinculum #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions fimptype/primefimp/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ type RequestParam struct {
}

type Fimp struct {
Adapter string `json:"adapter"`
Address string `json:"address"`
Group string `json:"group"`
Adapter string `json:"adapter"`
Address string `json:"address"`
AdapterResource string `json:"adapter_resource"`
AdapterAddress string `json:"adapter_address"`
Group string `json:"group"`
}

type Client struct {
Expand All @@ -82,13 +84,21 @@ type Device struct {

type Thing struct {
ID int `json:"id"`
Fimp ThingFimp `json:"fimp"`
Address string `json:"addr"`
Name string `json:"name"`
Devices []int `json:"devices,omitempty"`
Props map[string]string `json:"props,omitempty"`
RoomID int `json:"room"`
}

type ThingFimp struct {
Address string `json:"address"`
AdapterService string `json:"adapter_service"`
AdapterResource string `json:"adapter_resource"`
AdapterAddress string `json:"adapter_address"`
}

type House struct {
Learning interface{} `json:"learning"`
Mode string `json:"mode"`
Expand Down
0