db

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

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 Dump

func Dump()

Dump save collections to log file (debug)

func FillNHCItems

func FillNHCItems()

FillNHCItems add Jeedom attributes to NHC items that could be matched on name and location

func GetInternalType

func GetInternalType(provider, pType string) (internalType string)

GetInternalType return the internal device type

func GetItemByJeedomID

func GetItemByJeedomID(id string) (item types.NHCItem, found bool)

GetItemByJeedomID return item matching provided jeedom id

func GetJeedomLocationID added in v0.4.0

func GetJeedomLocationID(name string) string

func GetMissingJeedomEquipment added in v0.4.0

func GetMissingJeedomEquipment() []types.NHCItem

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

func GetNHCAction(id int) types.Action

GetNHCAction gets nhc action from collection

func GetNHCItem

func GetNHCItem(id int) (item types.NHCItem, found bool)

GetNHCItem return specific item

func GetNHCItems

func GetNHCItems() []types.NHCItem

GetNHCItems lists all NHC items from items collection

func GetNHCLocation

func GetNHCLocation(id int) types.Location

GetNHCLocation gets nhc action from collection

func GetNhcSysInfo

func GetNhcSysInfo() (nhcSysInfo types.NHCSystemInfo)

GetNhcSysInfo returns the NHC system information

func ProcessNHCEvent

func ProcessNHCEvent(evt types.Event) []byte

ProcessNHCEvent saves new state of nhc equipment to relevant collections

func SaveJeedomCMD

func SaveJeedomCMD(cmd types.JeedomCMD)

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

func SaveNHCAction(act types.Action)

SaveNHCAction insert/update action in collection

func SaveNHCItem added in v0.4.0

func SaveNHCItem(item types.NHCItem)

SaveNHCItem update NHC items collection

func SaveNHCLocation

func SaveNHCLocation(loc types.Location)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL