types

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: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	Type     int    `json:"type"`
	Location int    `json:"location"`
	Value1   int    `json:"value1"`
	Value2   int    `json:"value2"`
	Value3   int    `json:"value3"`
}

Action holds one individual nhc action (equipment)

type Event

type Event struct {
	ID    int `json:"id"`
	Value int `json:"value1"`
}

Event holds an individual event

type ItemType

type ItemType struct {
	Provider     string `json:"provider,omitempty"`
	ProviderType string `json:"provider_type,omitempty"`
	InternalType string `json:"internal_type,omitempty"`
}

ItemType stores the external to internal item types

type JeedomCMD

type JeedomCMD struct {
	Apikey        string            `json:"apikey"`
	ID            string            `json:"id"`
	LogicalID     string            `json:"logicalId"`
	EqType        string            `json:"eqType_name"`
	Name          string            `json:"name"`
	Order         string            `json:"order"`
	Type          string            `json:"type"`
	SubType       string            `json:"subType"`
	EqLogicID     string            `json:"eqLogic_id"`
	IsHistorized  string            `json:"isHistorized"`
	Unite         string            `json:"unite"`
	Configuration JeedomCMDConfig   `json:"configuration"`
	Template      JeedomCMDTemplate `json:"template"`
	Display       JeedomCMDDisplay  `json:"display"`
	HTML          interface{}       `json:"html"`
	IsVisible     string            `json:"isVisible"`
	GenericType   string            `json:"generic_type"`
	CurrentValue  int               `json:"currentValue"`
	Value         string            `json:"value"`
}

JeedomCMD Jeedom CMD

type JeedomCMDConfig added in v0.4.0

type JeedomCMDConfig struct {
	RequestType                      string `json:"requestType"`
	Request                          string `json:"request"`
	NoSslCheck                       string `json:"noSslCheck"`
	AllowEmptyResponse               string `json:"allowEmptyResponse"`
	DoNotReportHTTPError             string `json:"doNotReportHttpError"`
	ReponseMustContain               string `json:"reponseMustContain"`
	Timeout                          string `json:"timeout"`
	MaxHTTPRetry                     string `json:"maxHttpRetry"`
	HTTPUsername                     string `json:"http_username"`
	HTTPPassword                     string `json:"http_password"`
	URLXML                           string `json:"urlXml"`
	XMLNoSslCheck                    string `json:"xmlNoSslCheck"`
	XMLTimeout                       string `json:"xmlTimeout"`
	MaxXMLRetry                      string `json:"maxXmlRetry"`
	XMLUsername                      string `json:"xml_username"`
	XMLPassword                      string `json:"xml_password"`
	URLHTML                          string `json:"urlHtml"`
	HTMLNoSslCheck                   string `json:"htmlNoSslCheck"`
	HTMLTimeout                      string `json:"htmlTimeout"`
	MaxHTMLRetry                     string `json:"maxHtmlRetry"`
	HTMLUsername                     string `json:"html_username"`
	HTMLPassword                     string `json:"html_password"`
	URLJSON                          string `json:"urlJson"`
	JSONNoSslCheck                   string `json:"jsonNoSslCheck"`
	JSONTimeout                      string `json:"jsonTimeout"`
	MaxJSONRetry                     string `json:"maxJsonRetry"`
	JSONUsername                     string `json:"json_username"`
	JSONPassword                     string `json:"json_password"`
	MinValue                         string `json:"minValue"`
	MaxValue                         string `json:"maxValue"`
	UpdateCmdID                      string `json:"updateCmdId"`
	UpdateCmdToValue                 string `json:"updateCmdToValue"`
	CalculValueOffset                string `json:"calculValueOffset"`
	HistorizeRound                   string `json:"historizeRound"`
	JeedomCheckCmdOperator           string `json:"jeedomCheckCmdOperator"`
	JeedomCheckCmdTest               string `json:"jeedomCheckCmdTest"`
	JeedomCheckCmdTime               string `json:"jeedomCheckCmdTime"`
	JeedomCheckCmdActionType         string `json:"jeedomCheckCmdActionType"`
	JeedomCheckCmdCmdActionID        string `json:"jeedomCheckCmdCmdActionId"`
	JeedomCheckCmdScenarioActionMode string `json:"jeedomCheckCmdScenarioActionMode"`
	JeedomCheckCmdScenarioActionID   string `json:"jeedomCheckCmdScenarioActionId"`
	HistorizeMode                    string `json:"historizeMode"`
	HistoryPurge                     string `json:"historyPurge"`
	DoNotRepeatEvent                 string `json:"doNotRepeatEvent"`
	JeedomPushURL                    string `json:"jeedomPushUrl"`
	Value                            string `json:"value"`
}

JeedomCMDConfig Jeedom CMD config

type JeedomCMDDisplay added in v0.4.0

type JeedomCMDDisplay struct {
	Icon                     string        `json:"icon"`
	InvertBinary             string        `json:"invertBinary"`
	HideOndashboard          string        `json:"hideOndashboard"`
	HideOnmobile             string        `json:"hideOnmobile"`
	DoNotShowNameOnDashboard string        `json:"doNotShowNameOnDashboard"`
	DoNotShowNameOnView      string        `json:"doNotShowNameOnView"`
	DoNotShowStatOnDashboard string        `json:"doNotShowStatOnDashboard"`
	DoNotShowStatOnView      string        `json:"doNotShowStatOnView"`
	DoNotShowStatOnMobile    string        `json:"doNotShowStatOnMobile"`
	ForceReturnLineBefore    string        `json:"forceReturnLineBefore"`
	ForceReturnLineAfter     string        `json:"forceReturnLineAfter"`
	Parameters               []interface{} `json:"parameters"`
	ShowOncategory           int           `json:"showOncategory"`
	ShowStatsOncategory      int           `json:"showStatsOncategory"`
	ShowNameOncategory       int           `json:"showNameOncategory"`
	ShowOnstyle              int           `json:"showOnstyle"`
	ShowStatsOnstyle         int           `json:"showStatsOnstyle"`
	ShowNameOnstyle          int           `json:"showNameOnstyle"`
	ShowNameOnDashboard      string        `json:"showNameOndashboard"`
	GenericType              string        `json:"generic_type"`
}

JeedomCMDDisplay Jeedom CMD Display options

type JeedomCMDTemplate added in v0.4.0

type JeedomCMDTemplate struct {
	Dashboard string `json:"dashboard"`
	Mobile    string `json:"mobile"`
}

JeedomCMDTemplate Jeedom CMD template

type JeedomCMDs

type JeedomCMDs struct {
	Jsonrpc string      `json:"jsonrpc"`
	ID      string      `json:"id"`
	Result  []JeedomCMD `json:"result"`
}

JeedomCMDs list of CMDs returned by Jeedom

type JeedomCreateEqRsp added in v0.4.0

type JeedomCreateEqRsp struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	Result  struct {
		ID            string      `json:"id"`
		Name          string      `json:"name"`
		LogicalID     string      `json:"logicalId"`
		ObjectID      string      `json:"object_id"`
		EqTypeName    string      `json:"eqType_name"`
		EqRealID      interface{} `json:"eqReal_id"`
		IsVisible     string      `json:"isVisible"`
		IsEnable      string      `json:"isEnable"`
		Configuration struct {
			Createtime string `json:"createtime"`
			Updatetime string `json:"updatetime"`
		} `json:"configuration"`
		Timeout  interface{} `json:"timeout"`
		Category interface{} `json:"category"`
		Display  struct {
			ShowObjectNameOnview           int    `json:"showObjectNameOnview"`
			ShowObjectNameOndview          int    `json:"showObjectNameOndview"`
			ShowObjectNameOnmview          int    `json:"showObjectNameOnmview"`
			Height                         string `json:"height"`
			Width                          string `json:"width"`
			LayoutDashboardTableParameters struct {
				Center  int    `json:"center"`
				Styletd string `json:"styletd"`
			} `json:"layout::dashboard::table::parameters"`
			LayoutMobileTableParameters struct {
				Center  int    `json:"center"`
				Styletd string `json:"styletd"`
			} `json:"layout::mobile::table::parameters"`
			LayoutDashboardTableCmd21Line   int `json:"layout::dashboard::table::cmd::21::line"`
			LayoutDashboardTableCmd21Column int `json:"layout::dashboard::table::cmd::21::column"`
			LayoutMobileTableCmd21Line      int `json:"layout::mobile::table::cmd::21::line"`
			LayoutMobileTableCmd21Column    int `json:"layout::mobile::table::cmd::21::column"`
		} `json:"display"`
		Order   int         `json:"order"`
		Comment interface{} `json:"comment"`
		Status  string      `json:"status"`
	} `json:"result"`
}

type JeedomCreateRsp added in v0.4.0

type JeedomCreateRsp struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	Result  struct {
		ID   string `json:"id"`
		Data json.RawMessage
	} `json:"result"`
}

type JeedomDimmerDimCMD added in v0.4.0

type JeedomDimmerDimCMD struct {
	Apikey        string `json:"apikey"`
	ID            string `json:"id"`
	LogicalID     string `json:"logicalId"`
	EqType        string `json:"eqType_name"`
	Name          string `json:"name"`
	Order         string `json:"order"`
	Type          string `json:"type"`
	SubType       string `json:"subType"`
	EqLogicID     string `json:"eqLogic_id"`
	IsHistorized  string `json:"isHistorized"`
	Unite         string `json:"unite"`
	Configuration struct {
		RequestType          string        `json:"requestType"`
		Request              string        `json:"request"`
		NoSslCheck           string        `json:"noSslCheck"`
		AllowEmptyResponse   string        `json:"allowEmptyResponse"`
		DoNotReportHTTPError string        `json:"doNotReportHttpError"`
		ReponseMustContain   string        `json:"reponseMustContain"`
		Timeout              string        `json:"timeout"`
		MaxHTTPRetry         string        `json:"maxHttpRetry"`
		HTTPUsername         string        `json:"http_username"`
		HTTPPassword         string        `json:"http_password"`
		URLXML               string        `json:"urlXml"`
		XMLNoSslCheck        string        `json:"xmlNoSslCheck"`
		XMLTimeout           string        `json:"xmlTimeout"`
		MaxXMLRetry          string        `json:"maxXmlRetry"`
		XMLUsername          string        `json:"xml_username"`
		XMLPassword          string        `json:"xml_password"`
		URLHTML              string        `json:"urlHtml"`
		HTMLNoSslCheck       string        `json:"htmlNoSslCheck"`
		HTMLTimeout          string        `json:"htmlTimeout"`
		MaxHTMLRetry         string        `json:"maxHtmlRetry"`
		HTMLUsername         string        `json:"html_username"`
		HTMLPassword         string        `json:"html_password"`
		URLJSON              string        `json:"urlJson"`
		JSONNoSslCheck       string        `json:"jsonNoSslCheck"`
		JSONTimeout          string        `json:"jsonTimeout"`
		MaxJSONRetry         string        `json:"maxJsonRetry"`
		JSONUsername         string        `json:"json_username"`
		JSONPassword         string        `json:"json_password"`
		MinValue             string        `json:"minValue"`
		MaxValue             string        `json:"maxValue"`
		UpdateCmdID          string        `json:"updateCmdId"`
		UpdateCmdToValue     string        `json:"updateCmdToValue"`
		TimelineEnable       string        `json:"timeline::enable"`
		ActionConfirm        string        `json:"actionConfirm"`
		ActionCodeAccess     string        `json:"actionCodeAccess"`
		ActionCheckCmd       []interface{} `json:"actionCheckCmd"`
		JeedomPreExecCmd     []interface{} `json:"jeedomPreExecCmd"`
		JeedomPostExecCmd    []interface{} `json:"jeedomPostExecCmd"`
	} `json:"configuration"`
	Template struct {
		Dashboard string `json:"dashboard"`
		Mobile    string `json:"mobile"`
	} `json:"template"`
	Display struct {
		Icon                     string        `json:"icon"`
		InvertBinary             string        `json:"invertBinary"`
		GenericType              string        `json:"generic_type"`
		ShowOndashboard          string        `json:"showOndashboard"`
		ShowOnplan               string        `json:"showOnplan"`
		ShowOnview               string        `json:"showOnview"`
		ShowOnmobile             string        `json:"showOnmobile"`
		ShowNameOndashboard      string        `json:"showNameOndashboard"`
		ShowNameOnplan           string        `json:"showNameOnplan"`
		ShowNameOnview           string        `json:"showNameOnview"`
		ShowNameOnmobile         string        `json:"showNameOnmobile"`
		ShowIconAndNamedashboard string        `json:"showIconAndNamedashboard"`
		ShowIconAndNameplan      string        `json:"showIconAndNameplan"`
		ShowIconAndNameview      string        `json:"showIconAndNameview"`
		ShowIconAndNamemobile    string        `json:"showIconAndNamemobile"`
		ForceReturnLineBefore    string        `json:"forceReturnLineBefore"`
		ForceReturnLineAfter     string        `json:"forceReturnLineAfter"`
		Parameters               []interface{} `json:"parameters"`
	} `json:"display"`
	HTML struct {
		Enable    string `json:"enable"`
		Dashboard string `json:"dashboard"`
		Dview     string `json:"dview"`
		Dplan     string `json:"dplan"`
		Mobile    string `json:"mobile"`
		Mview     string `json:"mview"`
	} `json:"html"`
	Value        string      `json:"value"`
	IsVisible    string      `json:"isVisible"`
	Alert        interface{} `json:"alert"`
	GenericType  string      `json:"generic_type"`
	CurrentValue interface{} `json:"currentValue"`
}

JeedomDimmerDimCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomDimmerStateCMD added in v0.4.0

type JeedomDimmerStateCMD struct {
	Apikey        string `json:"apikey"`
	ID            string `json:"id"`
	LogicalID     string `json:"logicalId"`
	EqType        string `json:"eqType_name"`
	Name          string `json:"name"`
	Order         string `json:"order"`
	Type          string `json:"type"`
	SubType       string `json:"subType"`
	EqLogicID     string `json:"eqLogic_id"`
	IsHistorized  string `json:"isHistorized"`
	Unite         string `json:"unite"`
	Configuration struct {
		RequestType                      string        `json:"requestType"`
		Request                          string        `json:"request"`
		NoSslCheck                       string        `json:"noSslCheck"`
		AllowEmptyResponse               string        `json:"allowEmptyResponse"`
		DoNotReportHTTPError             string        `json:"doNotReportHttpError"`
		ReponseMustContain               string        `json:"reponseMustContain"`
		Timeout                          string        `json:"timeout"`
		MaxHTTPRetry                     string        `json:"maxHttpRetry"`
		HTTPUsername                     string        `json:"http_username"`
		HTTPPassword                     string        `json:"http_password"`
		URLXML                           string        `json:"urlXml"`
		XMLNoSslCheck                    string        `json:"xmlNoSslCheck"`
		XMLTimeout                       string        `json:"xmlTimeout"`
		MaxXMLRetry                      string        `json:"maxXmlRetry"`
		XMLUsername                      string        `json:"xml_username"`
		XMLPassword                      string        `json:"xml_password"`
		URLHTML                          string        `json:"urlHtml"`
		HTMLNoSslCheck                   string        `json:"htmlNoSslCheck"`
		HTMLTimeout                      string        `json:"htmlTimeout"`
		MaxHTMLRetry                     string        `json:"maxHtmlRetry"`
		HTMLUsername                     string        `json:"html_username"`
		HTMLPassword                     string        `json:"html_password"`
		URLJSON                          string        `json:"urlJson"`
		JSONNoSslCheck                   string        `json:"jsonNoSslCheck"`
		JSONTimeout                      string        `json:"jsonTimeout"`
		MaxJSONRetry                     string        `json:"maxJsonRetry"`
		JSONUsername                     string        `json:"json_username"`
		JSONPassword                     string        `json:"json_password"`
		MinValue                         string        `json:"minValue"`
		MaxValue                         string        `json:"maxValue"`
		UpdateCmdID                      string        `json:"updateCmdId"`
		UpdateCmdToValue                 string        `json:"updateCmdToValue"`
		CalculValueOffset                string        `json:"calculValueOffset"`
		HistorizeRound                   string        `json:"historizeRound"`
		JeedomCheckCmdOperator           string        `json:"jeedomCheckCmdOperator"`
		JeedomCheckCmdTest               string        `json:"jeedomCheckCmdTest"`
		JeedomCheckCmdTime               string        `json:"jeedomCheckCmdTime"`
		JeedomCheckCmdActionType         string        `json:"jeedomCheckCmdActionType"`
		JeedomCheckCmdCmdActionID        string        `json:"jeedomCheckCmdCmdActionId"`
		JeedomCheckCmdScenarioActionMode string        `json:"jeedomCheckCmdScenarioActionMode"`
		JeedomCheckCmdScenarioActionID   string        `json:"jeedomCheckCmdScenarioActionId"`
		HistorizeMode                    string        `json:"historizeMode"`
		HistoryPurge                     string        `json:"historyPurge"`
		DoNotRepeatEvent                 string        `json:"doNotRepeatEvent"`
		JeedomPushURL                    string        `json:"jeedomPushUrl"`
		Value                            string        `json:"value"`
		TimelineEnable                   string        `json:"timeline::enable"`
		DenyValues                       string        `json:"denyValues"`
		ReturnStateValue                 string        `json:"returnStateValue"`
		ReturnStateTime                  string        `json:"returnStateTime"`
		RepeatEventManagement            string        `json:"repeatEventManagement"`
		ActionCheckCmd                   []interface{} `json:"actionCheckCmd"`
		JeedomPreExecCmd                 []interface{} `json:"jeedomPreExecCmd"`
		JeedomPostExecCmd                []interface{} `json:"jeedomPostExecCmd"`
	} `json:"configuration"`
	Template struct {
		Dashboard string `json:"dashboard"`
		Mobile    string `json:"mobile"`
	} `json:"template"`
	Display struct {
		Icon                     string        `json:"icon"`
		InvertBinary             string        `json:"invertBinary"`
		HideOndashboard          string        `json:"hideOndashboard"`
		HideOnmobile             string        `json:"hideOnmobile"`
		DoNotShowNameOnDashboard string        `json:"doNotShowNameOnDashboard"`
		DoNotShowNameOnView      string        `json:"doNotShowNameOnView"`
		DoNotShowStatOnDashboard string        `json:"doNotShowStatOnDashboard"`
		DoNotShowStatOnView      string        `json:"doNotShowStatOnView"`
		DoNotShowStatOnMobile    string        `json:"doNotShowStatOnMobile"`
		ForceReturnLineBefore    string        `json:"forceReturnLineBefore"`
		ForceReturnLineAfter     string        `json:"forceReturnLineAfter"`
		Parameters               []interface{} `json:"parameters"`
		ShowOncategory           string        `json:"showOncategory"`
		ShowStatsOncategory      string        `json:"showStatsOncategory"`
		ShowNameOncategory       string        `json:"showNameOncategory"`
		ShowOnstyle              string        `json:"showOnstyle"`
		ShowStatsOnstyle         string        `json:"showStatsOnstyle"`
		ShowNameOnstyle          string        `json:"showNameOnstyle"`
		ShowNameOndashboard      string        `json:"showNameOndashboard"`
		GenericType              string        `json:"generic_type"`
		ShowOndashboard          string        `json:"showOndashboard"`
		ShowOnplan               string        `json:"showOnplan"`
		ShowOnview               string        `json:"showOnview"`
		ShowOnmobile             string        `json:"showOnmobile"`
		ShowNameOnplan           string        `json:"showNameOnplan"`
		ShowNameOnview           string        `json:"showNameOnview"`
		ShowNameOnmobile         string        `json:"showNameOnmobile"`
		ShowIconAndNamedashboard string        `json:"showIconAndNamedashboard"`
		ShowIconAndNameplan      string        `json:"showIconAndNameplan"`
		ShowIconAndNameview      string        `json:"showIconAndNameview"`
		ShowIconAndNamemobile    string        `json:"showIconAndNamemobile"`
	} `json:"display"`
	HTML struct {
		Enable    string `json:"enable"`
		Dashboard string `json:"dashboard"`
		Dview     string `json:"dview"`
		Dplan     string `json:"dplan"`
		Mobile    string `json:"mobile"`
		Mview     string `json:"mview"`
	} `json:"html"`
	Value     string `json:"value"`
	IsVisible string `json:"isVisible"`
	Alert     struct {
		Warningif     string `json:"warningif"`
		Warningduring string `json:"warningduring"`
		Dangerif      string `json:"dangerif"`
		Dangerduring  string `json:"dangerduring"`
	} `json:"alert"`
	GenericType  string `json:"generic_type"`
	CurrentValue int    `json:"currentValue"`
}

JeedomDimmerStateCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomDimmerUpdStateCMD added in v0.4.0

type JeedomDimmerUpdStateCMD struct {
	Apikey        string      `json:"apikey"`
	ID            string      `json:"id"`
	LogicalID     interface{} `json:"logicalId"`
	EqType        string      `json:"eqType_name"`
	Name          string      `json:"name"`
	Order         string      `json:"order"`
	Type          string      `json:"type"`
	SubType       string      `json:"subType"`
	EqLogicID     string      `json:"eqLogic_id"`
	IsHistorized  string      `json:"isHistorized"`
	Unite         string      `json:"unite"`
	Configuration struct {
		RequestType          string `json:"requestType"`
		Request              string `json:"request"`
		NoSslCheck           string `json:"noSslCheck"`
		AllowEmptyResponse   string `json:"allowEmptyResponse"`
		DoNotReportHTTPError string `json:"doNotReportHttpError"`
		ReponseMustContain   string `json:"reponseMustContain"`
		Timeout              string `json:"timeout"`
		MaxHTTPRetry         string `json:"maxHttpRetry"`
		HTTPUsername         string `json:"http_username"`
		HTTPPassword         string `json:"http_password"`
		URLXML               string `json:"urlXml"`
		XMLNoSslCheck        string `json:"xmlNoSslCheck"`
		XMLTimeout           string `json:"xmlTimeout"`
		MaxXMLRetry          string `json:"maxXmlRetry"`
		XMLUsername          string `json:"xml_username"`
		XMLPassword          string `json:"xml_password"`
		URLHTML              string `json:"urlHtml"`
		HTMLNoSslCheck       string `json:"htmlNoSslCheck"`
		HTMLTimeout          string `json:"htmlTimeout"`
		MaxHTMLRetry         string `json:"maxHtmlRetry"`
		HTMLUsername         string `json:"html_username"`
		HTMLPassword         string `json:"html_password"`
		URLJSON              string `json:"urlJson"`
		JSONNoSslCheck       string `json:"jsonNoSslCheck"`
		JSONTimeout          string `json:"jsonTimeout"`
		MaxJSONRetry         string `json:"maxJsonRetry"`
		JSONUsername         string `json:"json_username"`
		JSONPassword         string `json:"json_password"`
		MinValue             string `json:"minValue"`
		MaxValue             string `json:"maxValue"`
		UpdateCmdID          string `json:"updateCmdId"`
		UpdateCmdToValue     string `json:"updateCmdToValue"`
	} `json:"configuration"`
	Template interface{} `json:"template"`
	Display  struct {
		Icon         string `json:"icon"`
		InvertBinary string `json:"invertBinary"`
	} `json:"display"`
	HTML         interface{} `json:"html"`
	Value        string      `json:"value"`
	IsVisible    string      `json:"isVisible"`
	Alert        interface{} `json:"alert"`
	GenericType  string      `json:"generic_type"`
	CurrentValue interface{} `json:"currentValue"`
}

JeedomDimmerUpdStateCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomEquipment

type JeedomEquipment struct {
	ID            string      `json:"id"`
	Name          string      `json:"name"`
	LogicalID     string      `json:"logicalId"`
	ObjectID      string      `json:"object_id"`
	EqTypeName    string      `json:"eqType_name"`
	EqRealID      interface{} `json:"eqReal_id"`
	IsVisible     string      `json:"isVisible"`
	IsEnable      string      `json:"isEnable"`
	Configuration struct {
		Createtime  string `json:"createtime"`
		Autorefresh string `json:"autorefresh"`
		Updatetime  string `json:"updatetime"`
	} `json:"configuration"`
	Timeout  interface{} `json:"timeout"`
	Category struct {
		Heating    string `json:"heating"`
		Security   string `json:"security"`
		Energy     string `json:"energy"`
		Light      string `json:"light"`
		Automatism string `json:"automatism"`
		Multimedia string `json:"multimedia"`
		Default    string `json:"default"`
	} `json:"category"`
	Display struct {
		ShowOncategory                 int    `json:"showOncategory"`
		ShowObjectNameOncategory       int    `json:"showObjectNameOncategory"`
		ShowNameOncategory             int    `json:"showNameOncategory"`
		ShowOnstyle                    int    `json:"showOnstyle"`
		ShowObjectNameOnstyle          int    `json:"showObjectNameOnstyle"`
		ShowNameOnstyle                int    `json:"showNameOnstyle"`
		ShowObjectNameOnview           int    `json:"showObjectNameOnview"`
		ShowObjectNameOndview          int    `json:"showObjectNameOndview"`
		ShowObjectNameOnmview          int    `json:"showObjectNameOnmview"`
		Height                         string `json:"height"`
		Width                          string `json:"width"`
		LayoutDashboardTableParameters struct {
			Center  int    `json:"center"`
			Styletd string `json:"styletd"`
		} `json:"layout::dashboard::table::parameters"`
		LayoutDashboardTableCmd416Line   int `json:"layout::dashboard::table::cmd::416::line"`
		LayoutDashboardTableCmd416Column int `json:"layout::dashboard::table::cmd::416::column"`
		LayoutDashboardTableCmd415Line   int `json:"layout::dashboard::table::cmd::415::line"`
		LayoutDashboardTableCmd415Column int `json:"layout::dashboard::table::cmd::415::column"`
		LayoutDashboardTableCmd417Line   int `json:"layout::dashboard::table::cmd::417::line"`
		LayoutDashboardTableCmd417Column int `json:"layout::dashboard::table::cmd::417::column"`
		LayoutMobileTableParameters      struct {
			Center  int    `json:"center"`
			Styletd string `json:"styletd"`
		} `json:"layout::mobile::table::parameters"`
		LayoutMobileTableCmd416Line   int `json:"layout::mobile::table::cmd::416::line"`
		LayoutMobileTableCmd416Column int `json:"layout::mobile::table::cmd::416::column"`
		LayoutMobileTableCmd415Line   int `json:"layout::mobile::table::cmd::415::line"`
		LayoutMobileTableCmd415Column int `json:"layout::mobile::table::cmd::415::column"`
		LayoutMobileTableCmd417Line   int `json:"layout::mobile::table::cmd::417::line"`
		LayoutMobileTableCmd417Column int `json:"layout::mobile::table::cmd::417::column"`
	} `json:"display"`
	Order   string      `json:"order"`
	Comment interface{} `json:"comment"`
	Status  string      `json:"status"`
}

JeedomEquipment returned by Equipmentjeedom

type JeedomEquipments

type JeedomEquipments struct {
	Jsonrpc string            `json:"jsonrpc"`
	ID      string            `json:"id"`
	Result  []JeedomEquipment `json:"result"`
}

JeedomEquipments list of equipment returned by Jeedom

type JeedomItem

type JeedomItem struct {
	ID int
}

JeedomItem holds one Jeedom item (equipment + location)

type JeedomLocation

type JeedomLocation struct {
	ID            string      `json:"id"`
	Name          string      `json:"name"`
	FatherID      interface{} `json:"father_id"`
	IsVisible     string      `json:"isVisible"`
	Position      string      `json:"position"`
	Configuration struct {
		ParentNumber            int    `json:"parentNumber"`
		TagColor                string `json:"tagColor"`
		TagTextColor            string `json:"tagTextColor"`
		DesktopSummaryTextColor string `json:"desktop::summaryTextColor"`
		MobileSummaryTextColor  string `json:"mobile::summaryTextColor"`
	} `json:"configuration"`
	Display struct {
		Icon         string `json:"icon"`
		TagColor     string `json:"tagColor"`
		TagTextColor string `json:"tagTextColor"`
	} `json:"display"`
}

JeedomLocation Object (Location) returned by Jeedom

type JeedomObjects

type JeedomObjects struct {
	Jsonrpc string           `json:"jsonrpc"`
	ID      string           `json:"id"`
	Result  []JeedomLocation `json:"result"`
}

JeedomObjects list of Objects (locations) returned by Jeedom

type JeedomPlugins added in v0.4.0

type JeedomPlugins struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	Result  []struct {
		ID           string `json:"id"`
		Name         string `json:"name"`
		Description  string `json:"description"`
		Licence      string `json:"licence"`
		Installation string `json:"installation"`
		Author       string `json:"author"`
		Require      string `json:"require"`
		Category     string `json:"category"`
		Data         json.RawMessage
	} `json:"result"`
}

JeedomPlugins list of installed plugins returned by Jeedom

type JeedomRPCParams added in v0.4.1

type JeedomRPCParams struct {
	Apikey     string `json:"apikey"`
	Type       string `json:"type,omitempty"`
	EqLogicID  string `json:"eqLogic_id,omitempty"`
	Name       string `json:"name,omitempty"`
	Display    string `json:"display,omitempty"`
	ObjectID   string `json:"object_id,omitempty"`
	IsVisible  string `json:"isVisible,omitempty"`
	IsEnable   string `json:"isEnable,omitempty"`
	EqTypeName string `json:"eqType_name,omitempty"`
}

JeedomRPCParams holds basic Jeedom JSON RPC API params

type JeedomSwitchOnOffCMD added in v0.4.0

type JeedomSwitchOnOffCMD struct {
	Apikey        string      `json:"apikey"`
	ID            string      `json:"id"`
	LogicalID     interface{} `json:"logicalId"`
	EqType        string      `json:"eqType_name"`
	Name          string      `json:"name"`
	Order         string      `json:"order"`
	Type          string      `json:"type"`
	SubType       string      `json:"subType"`
	EqLogicID     string      `json:"eqLogic_id"`
	IsHistorized  string      `json:"isHistorized"`
	Unite         string      `json:"unite"`
	Configuration struct {
		RequestType          string `json:"requestType"`
		Request              string `json:"request"`
		NoSslCheck           string `json:"noSslCheck"`
		AllowEmptyResponse   string `json:"allowEmptyResponse"`
		DoNotReportHTTPError string `json:"doNotReportHttpError"`
		ReponseMustContain   string `json:"reponseMustContain"`
		Timeout              string `json:"timeout"`
		MaxHTTPRetry         string `json:"maxHttpRetry"`
		HTTPUsername         string `json:"http_username"`
		HTTPPassword         string `json:"http_password"`
		URLXML               string `json:"urlXml"`
		XMLNoSslCheck        string `json:"xmlNoSslCheck"`
		XMLTimeout           string `json:"xmlTimeout"`
		MaxXMLRetry          string `json:"maxXmlRetry"`
		XMLUsername          string `json:"xml_username"`
		XMLPassword          string `json:"xml_password"`
		URLHTML              string `json:"urlHtml"`
		HTMLNoSslCheck       string `json:"htmlNoSslCheck"`
		HTMLTimeout          string `json:"htmlTimeout"`
		MaxHTMLRetry         string `json:"maxHtmlRetry"`
		HTMLUsername         string `json:"html_username"`
		HTMLPassword         string `json:"html_password"`
		URLJSON              string `json:"urlJson"`
		JSONNoSslCheck       string `json:"jsonNoSslCheck"`
		JSONTimeout          string `json:"jsonTimeout"`
		MaxJSONRetry         string `json:"maxJsonRetry"`
		JSONUsername         string `json:"json_username"`
		JSONPassword         string `json:"json_password"`
		MinValue             string `json:"minValue"`
		MaxValue             string `json:"maxValue"`
		UpdateCmdID          string `json:"updateCmdId"`
		UpdateCmdToValue     string `json:"updateCmdToValue"`
	} `json:"configuration"`
	Template interface{} `json:"template"`
	Display  struct {
		Icon         string `json:"icon"`
		InvertBinary string `json:"invertBinary"`
	} `json:"display"`
	HTML         interface{} `json:"html"`
	Value        string      `json:"value"`
	IsVisible    string      `json:"isVisible"`
	Alert        interface{} `json:"alert"`
	GenericType  string      `json:"generic_type"`
	CurrentValue interface{} `json:"currentValue"`
}

JeedomSwitchOnOffCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomSwitchStateCMD added in v0.4.0

type JeedomSwitchStateCMD struct {
	Apikey        string `json:"apikey"`
	ID            string `json:"id"`
	LogicalID     string `json:"logicalId"`
	EqType        string `json:"eqType_name"`
	Name          string `json:"name"`
	Order         string `json:"order"`
	Type          string `json:"type"`
	SubType       string `json:"subType"`
	EqLogicID     string `json:"eqLogic_id"`
	IsHistorized  string `json:"isHistorized"`
	Unite         string `json:"unite"`
	Configuration struct {
		RequestType            string        `json:"requestType"`
		Request                string        `json:"request"`
		NoSslCheck             string        `json:"noSslCheck"`
		AllowEmptyResponse     string        `json:"allowEmptyResponse"`
		DoNotReportHTTPError   string        `json:"doNotReportHttpError"`
		ReponseMustContain     string        `json:"reponseMustContain"`
		Timeout                string        `json:"timeout"`
		MaxHTTPRetry           string        `json:"maxHttpRetry"`
		HTTPUsername           string        `json:"http_username"`
		HTTPPassword           string        `json:"http_password"`
		URLXML                 string        `json:"urlXml"`
		XMLNoSslCheck          string        `json:"xmlNoSslCheck"`
		XMLTimeout             string        `json:"xmlTimeout"`
		MaxXMLRetry            string        `json:"maxXmlRetry"`
		XMLUsername            string        `json:"xml_username"`
		XMLPassword            string        `json:"xml_password"`
		URLHTML                string        `json:"urlHtml"`
		HTMLNoSslCheck         string        `json:"htmlNoSslCheck"`
		HTMLTimeout            string        `json:"htmlTimeout"`
		MaxHTMLRetry           string        `json:"maxHtmlRetry"`
		HTMLUsername           string        `json:"html_username"`
		HTMLPassword           string        `json:"html_password"`
		URLJSON                string        `json:"urlJson"`
		JSONNoSslCheck         string        `json:"jsonNoSslCheck"`
		JSONTimeout            string        `json:"jsonTimeout"`
		MaxJSONRetry           string        `json:"maxJsonRetry"`
		JSONUsername           string        `json:"json_username"`
		JSONPassword           string        `json:"json_password"`
		MinValue               string        `json:"minValue"`
		MaxValue               string        `json:"maxValue"`
		UpdateCmdID            string        `json:"updateCmdId"`
		UpdateCmdToValue       string        `json:"updateCmdToValue"`
		TimelineEnable         string        `json:"timeline::enable"`
		CalculValueOffset      string        `json:"calculValueOffset"`
		JeedomCheckCmdOperator string        `json:"jeedomCheckCmdOperator"`
		JeedomCheckCmdTest     string        `json:"jeedomCheckCmdTest"`
		JeedomCheckCmdTime     string        `json:"jeedomCheckCmdTime"`
		HistoryPurge           string        `json:"historyPurge"`
		DenyValues             string        `json:"denyValues"`
		ReturnStateValue       string        `json:"returnStateValue"`
		ReturnStateTime        string        `json:"returnStateTime"`
		RepeatEventManagement  string        `json:"repeatEventManagement"`
		JeedomPushURL          string        `json:"jeedomPushUrl"`
		ActionCheckCmd         []interface{} `json:"actionCheckCmd"`
		JeedomPreExecCmd       []interface{} `json:"jeedomPreExecCmd"`
		JeedomPostExecCmd      []interface{} `json:"jeedomPostExecCmd"`
	} `json:"configuration"`
	Template struct {
		Dashboard string `json:"dashboard"`
		Mobile    string `json:"mobile"`
	} `json:"template"`
	Display struct {
		Icon                     string        `json:"icon"`
		InvertBinary             string        `json:"invertBinary"`
		GenericType              string        `json:"generic_type"`
		ShowOndashboard          string        `json:"showOndashboard"`
		ShowOnplan               string        `json:"showOnplan"`
		ShowOnview               string        `json:"showOnview"`
		ShowOnmobile             string        `json:"showOnmobile"`
		ShowNameOndashboard      string        `json:"showNameOndashboard"`
		ShowNameOnplan           string        `json:"showNameOnplan"`
		ShowNameOnview           string        `json:"showNameOnview"`
		ShowNameOnmobile         string        `json:"showNameOnmobile"`
		ShowIconAndNamedashboard string        `json:"showIconAndNamedashboard"`
		ShowIconAndNameplan      string        `json:"showIconAndNameplan"`
		ShowIconAndNameview      string        `json:"showIconAndNameview"`
		ShowIconAndNamemobile    string        `json:"showIconAndNamemobile"`
		ForceReturnLineBefore    string        `json:"forceReturnLineBefore"`
		ForceReturnLineAfter     string        `json:"forceReturnLineAfter"`
		Parameters               []interface{} `json:"parameters"`
	} `json:"display"`
	HTML struct {
		Enable    string `json:"enable"`
		Dashboard string `json:"dashboard"`
		Dview     string `json:"dview"`
		Dplan     string `json:"dplan"`
		Mobile    string `json:"mobile"`
		Mview     string `json:"mview"`
	} `json:"html"`
	Value     string `json:"value"`
	IsVisible string `json:"isVisible"`
	Alert     struct {
		Warningif     string `json:"warningif"`
		Warningduring string `json:"warningduring"`
		Dangerif      string `json:"dangerif"`
		Dangerduring  string `json:"dangerduring"`
	} `json:"alert"`
	GenericType  string `json:"generic_type"`
	CurrentValue int    `json:"currentValue"`
}

JeedomSwitchStateCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomSwitchUpdStateCMD added in v0.4.0

type JeedomSwitchUpdStateCMD struct {
	Apikey        string      `json:"apikey"`
	ID            string      `json:"id"`
	LogicalID     interface{} `json:"logicalId"`
	EqType        string      `json:"eqType_name"`
	Name          string      `json:"name"`
	Order         string      `json:"order"`
	Type          string      `json:"type"`
	SubType       string      `json:"subType"`
	EqLogicID     string      `json:"eqLogic_id"`
	IsHistorized  string      `json:"isHistorized"`
	Unite         string      `json:"unite"`
	Configuration struct {
		RequestType          string `json:"requestType"`
		Request              string `json:"request"`
		NoSslCheck           string `json:"noSslCheck"`
		AllowEmptyResponse   string `json:"allowEmptyResponse"`
		DoNotReportHTTPError string `json:"doNotReportHttpError"`
		ReponseMustContain   string `json:"reponseMustContain"`
		Timeout              string `json:"timeout"`
		MaxHTTPRetry         string `json:"maxHttpRetry"`
		HTTPUsername         string `json:"http_username"`
		HTTPPassword         string `json:"http_password"`
		URLXML               string `json:"urlXml"`
		XMLNoSslCheck        string `json:"xmlNoSslCheck"`
		XMLTimeout           string `json:"xmlTimeout"`
		MaxXMLRetry          string `json:"maxXmlRetry"`
		XMLUsername          string `json:"xml_username"`
		XMLPassword          string `json:"xml_password"`
		URLHTML              string `json:"urlHtml"`
		HTMLNoSslCheck       string `json:"htmlNoSslCheck"`
		HTMLTimeout          string `json:"htmlTimeout"`
		MaxHTMLRetry         string `json:"maxHtmlRetry"`
		HTMLUsername         string `json:"html_username"`
		HTMLPassword         string `json:"html_password"`
		URLJSON              string `json:"urlJson"`
		JSONNoSslCheck       string `json:"jsonNoSslCheck"`
		JSONTimeout          string `json:"jsonTimeout"`
		MaxJSONRetry         string `json:"maxJsonRetry"`
		JSONUsername         string `json:"json_username"`
		JSONPassword         string `json:"json_password"`
		MinValue             string `json:"minValue"`
		MaxValue             string `json:"maxValue"`
		UpdateCmdID          string `json:"updateCmdId"`
		UpdateCmdToValue     string `json:"updateCmdToValue"`
	} `json:"configuration"`
	Template interface{} `json:"template"`
	Display  struct {
		Icon         string `json:"icon"`
		InvertBinary string `json:"invertBinary"`
	} `json:"display"`
	HTML         interface{} `json:"html"`
	Value        string      `json:"value"`
	IsVisible    string      `json:"isVisible"`
	Alert        interface{} `json:"alert"`
	GenericType  string      `json:"generic_type"`
	CurrentValue interface{} `json:"currentValue"`
}

JeedomSwitchUpdStateCMD struct to parse Jeedom cmd "template" from jeedomconst

type JeedomVersion added in v0.4.0

type JeedomVersion struct {
	Jsonrpc string `json:"jsonrpc"`
	ID      string `json:"id"`
	Result  string `json:"result"`
}

JeedomVersion version returned by Jeedom

type JsonRpcArgs

type JsonRpcArgs struct {
	Jsonrpc string      `json:"jsonrpc"`
	Method  string      `json:"method"`
	ID      string      `json:"id"`
	Params  interface{} `json:"params"`
}

JsonRpcArgs JSON RPC parameters

type Location

type Location struct {
	ID   int
	Name string
}

Location holds one nhc location

type Message

type Message struct {
	Cmd   string `json:"cmd"`
	Event string `json:"event"`
	Data  json.RawMessage
}

Message generic struct to hold nhc messages used to identify the message type before further parsing

type NHCItem

type NHCItem struct {
	// the provider
	// required: true
	Provider string `json:"provider"`
	// the id of this item
	ID int `json:"id"`
	// the type of this item
	// can be switch, dimmer or blind
	Type string `json:"type"`
	// the name of the item
	Name string `json:"name"`
	// the location of the item
	Location string `json:"location"`
	// the current state of the item
	State int `json:"state"`
	// other value of the item
	Value2 int `json:"value2"`
	// other value of the item
	Value3         int `json:"value3"`
	JeedomID       string
	JeedomUpdState string
	JeedomSubType  string
	JeedomState    string
}

NHCItem represents a registered item

swagger:model

type NHCSystemInfo

type NHCSystemInfo struct {
	// NHC Software version
	Swversion       string `json:"swversion"`
	API             string `json:"api"`
	Time            string `json:"time"`
	Language        string `json:"language"`
	Currency        string `json:"currency"`
	Units           int    `json:"units"`
	DST             int    `json:"DST"`
	TZ              int    `json:"TZ"`
	Lastenergyerase string `json:"lastenergyerase"`
	Lastconfig      string `json:"lastconfig"`
}

NHCSystemInfo hold the NHC system information swagger:model

Jump to

Keyboard shortcuts

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