Documentation ¶
Index ¶
- func BuildNHCItems()
- func Dump()
- func FillNHCItems()
- func GetInternalType(provider, pType string) (internalType string)
- func GetItemByJeedomID(id string) (item types.NHCItem, found bool)
- func GetJeedomLocationID(name string) string
- func GetMissingJeedomEquipment() []types.NHCItem
- func GetMissingJeedomObjects() []string
- func GetNHCAction(id int) types.Action
- func GetNHCItem(id int) (item types.NHCItem, found bool)
- func GetNHCItems() []types.NHCItem
- func GetNHCLocation(id int) types.Location
- func GetNhcSysInfo() (nhcSysInfo types.NHCSystemInfo)
- func ProcessNHCEvent(evt types.Event) []byte
- func SaveJeedomCMD(cmd types.JeedomCMD)
- func SaveJeedomItem(item types.JeedomEquipment)
- func SaveJeedomLocation(loc types.JeedomLocation)
- func SaveNHCAction(act types.Action)
- func SaveNHCItem(item types.NHCItem)
- func SaveNHCLocation(loc types.Location)
- func SaveNhcSysInfo(nhcSysInfo types.NHCSystemInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNHCItems ¶
func BuildNHCItems()
BuildNHCItems builds the collection of NHC items "merges" actions and locations
func FillNHCItems ¶
func FillNHCItems()
FillNHCItems add Jeedom attributes to NHC items that could be matched on name and location
func GetInternalType ¶
GetInternalType return the internal device type
func GetItemByJeedomID ¶
GetItemByJeedomID return item matching provided jeedom id
func GetJeedomLocationID ¶ added in v0.4.0
func GetMissingJeedomEquipment ¶ added in v0.4.0
GetMissingJeedomEquipment returns missing
func GetMissingJeedomObjects ¶ added in v0.4.0
func GetMissingJeedomObjects() []string
GetMissingJeedomObjects returns the list of NHC locations not found in Jeedom
func GetNHCAction ¶
GetNHCAction gets nhc action from collection
func GetNHCItem ¶
GetNHCItem return specific item
func GetNHCItems ¶
GetNHCItems lists all NHC items from items collection
func GetNHCLocation ¶
GetNHCLocation gets nhc action from collection
func GetNhcSysInfo ¶
func GetNhcSysInfo() (nhcSysInfo types.NHCSystemInfo)
GetNhcSysInfo returns the NHC system information
func ProcessNHCEvent ¶
ProcessNHCEvent saves new state of nhc equipment to relevant collections
func SaveJeedomCMD ¶
SaveJeedomCMD save Jeedom equipment to collection
func SaveJeedomItem ¶
func SaveJeedomItem(item types.JeedomEquipment)
SaveJeedomItem save Jeedom equipment to collection
func SaveJeedomLocation ¶
func SaveJeedomLocation(loc types.JeedomLocation)
SaveJeedomLocation save Jeedom object (location) to collection
func SaveNHCAction ¶
SaveNHCAction insert/update action in collection
func SaveNHCItem ¶ added in v0.4.0
SaveNHCItem update NHC items collection
func SaveNHCLocation ¶
SaveNHCLocation insert/update location in collection
func SaveNhcSysInfo ¶
func SaveNhcSysInfo(nhcSysInfo types.NHCSystemInfo)
SaveNhcSysInfo saves the NHC system information in mem
Types ¶
This section is empty.