Documentation ¶
Index ¶
- type Flag
- type Message
- func (m *Message) Decode(msg string) error
- func (m *Message) Encode() (string, error)
- func (m *Message) IsMasterCH() bool
- func (m *Message) IsMasterCH2() bool
- func (m *Message) IsMasterCooling() bool
- func (m *Message) IsMasterDHW() bool
- func (m *Message) IsMasterDHWBlocking() bool
- func (m *Message) IsMasterOTC() bool
- func (m *Message) IsMasterSummer() bool
- func (m *Message) IsSlaveCH() bool
- func (m *Message) IsSlaveCH2() bool
- func (m *Message) IsSlaveCooling() bool
- func (m *Message) IsSlaveDHW() bool
- func (m *Message) IsSlaveDiagnostic() bool
- func (m *Message) IsSlaveElectricity() bool
- func (m *Message) IsSlaveFault() bool
- func (m *Message) IsSlaveFlame() bool
- func (m *Message) RoomSetPoint(value float64)
- func (m *Message) ThermostatSetPoint(value float64)
- type MessageType
- type OpenTherm
- func (o *OpenTherm) OnMessage(client mqtt.Client, msg mqtt.Message)
- func (s *OpenTherm) OnValueChange(it item.Item, old string, new string)
- func (o *OpenTherm) RegisterFlagItem(id, label, unit string, src Src, kind MessageType, flag Flag) item.Item
- func (o *OpenTherm) RegisterValueItem(id, label, unit string, src Src, msgID int, kind MessageType) item.Item
- type OpenthermItem
- type Src
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag int
const ( MasterCH Flag = 1 MasterDHW Flag = 2 MasterCooling Flag = 4 MasterOTC Flag = 8 MasterCH2 Flag = 16 MasterSummer Flag = 32 MasterDHWBlocking Flag = 64 SlaveFault Flag = 1 SlaveCH Flag = 2 SlaveDHW Flag = 4 SlaveFlame Flag = 8 SlaveCooling Flag = 16 SlaveCH2 Flag = 32 SlaveDiagnostic Flag = 64 SlaveElectricity Flag = 128 )
type Message ¶
type Message struct { ID int Src Src Type MessageType Values []interface{} Desc string }
func (*Message) IsMasterCH ¶
func (*Message) IsMasterCH2 ¶
func (*Message) IsMasterCooling ¶
func (*Message) IsMasterDHW ¶
func (*Message) IsMasterDHWBlocking ¶
func (*Message) IsMasterOTC ¶
func (*Message) IsMasterSummer ¶
func (*Message) IsSlaveCH2 ¶
func (*Message) IsSlaveCooling ¶
func (*Message) IsSlaveDHW ¶
func (*Message) IsSlaveDiagnostic ¶
func (*Message) IsSlaveElectricity ¶
func (*Message) IsSlaveFault ¶
func (*Message) IsSlaveFlame ¶
func (*Message) RoomSetPoint ¶
func (*Message) ThermostatSetPoint ¶
type MessageType ¶
type MessageType int
const ( ReadData MessageType = iota WriteData InvData Reserved ReadAck WriteAck DataInv UnkDataId )
func (MessageType) String ¶
func (m MessageType) String() string
type OpenTherm ¶
type OpenTherm struct { sync.RWMutex CurrentItem *item.AnItem ReturnTempItem *item.AnItem PauseStateItem *item.AnItem PauseModeItem *button.SwitchItem // contains filtered or unexported fields }
func NewOpenTherm ¶
func (*OpenTherm) OnValueChange ¶
func (*OpenTherm) RegisterFlagItem ¶
func (*OpenTherm) RegisterValueItem ¶
type OpenthermItem ¶
Click to show internal directories.
Click to hide internal directories.