package hc3

// LinkRoomsSections links rooms to sections
type linkRoomsSections struct {
	Name      string
	SectionID uint16
}

// Sections contains sections information
type Sections struct {
	ID   uint16 `json:"id"`
	Name string `json:"name"`
}

// Rooms contains rooms information
type Rooms struct {
	ID        uint16 `json:"id"`
	Name      string `json:"name"`
	SectionID uint16 `json:"sectionID"`
}

// Devices contains devices information
type Devices struct {
	ID         uint16 `json:"id"`
	Name       string `json:"name"`
	RoomID     uint16 `json:"roomID"`
	Type       string `json:"type"`
	Enabled    bool   `json:"enabled"`
	Properties struct {
		BatteryLevel *float64    `json:"batteryLevel"`
		Dead         bool        `json:"dead"`
		Energy       *float64    `json:"energy"`
		Power        *float64    `json:"power"`
		Value        interface{} `json:"value"`
		Value2       interface{} `json:"value2"`
	} `json:"properties"`
}
