Documentation ¶
Index ¶
- Variables
- func RegisterFanCoilServiceServer(s grpc.ServiceRegistrar, srv FanCoilServiceServer)
- type FanCoilServiceClient
- type FanCoilServiceServer
- type FanSetting
- type FanSpeed
- type FloorHeatingMode
- func (FloorHeatingMode) Descriptor() protoreflect.EnumDescriptor
- func (x FloorHeatingMode) Enum() *FloorHeatingMode
- func (FloorHeatingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x FloorHeatingMode) Number() protoreflect.EnumNumber
- func (x FloorHeatingMode) String() string
- func (FloorHeatingMode) Type() protoreflect.EnumType
- type GetStateRequest
- type GetStateResponse
- func (*GetStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStateResponse) GetRawSnapshot() *RawRegisterSnapshot
- func (x *GetStateResponse) GetState() *State
- func (*GetStateResponse) ProtoMessage()
- func (x *GetStateResponse) ProtoReflect() protoreflect.Message
- func (x *GetStateResponse) Reset()
- func (x *GetStateResponse) String() string
- type ModbusAddress
- type ModbusEnumValueOptions
- func (*ModbusEnumValueOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ModbusEnumValueOptions) GetRegisterValue() uint32
- func (*ModbusEnumValueOptions) ProtoMessage()
- func (x *ModbusEnumValueOptions) ProtoReflect() protoreflect.Message
- func (x *ModbusEnumValueOptions) Reset()
- func (x *ModbusEnumValueOptions) String() string
- type Mode
- type PowerStatus
- func (PowerStatus) Descriptor() protoreflect.EnumDescriptor
- func (x PowerStatus) Enum() *PowerStatus
- func (PowerStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x PowerStatus) Number() protoreflect.EnumNumber
- func (x PowerStatus) String() string
- func (PowerStatus) Type() protoreflect.EnumType
- type RawRegisterSnapshot
- func (*RawRegisterSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *RawRegisterSnapshot) GetRawValues() map[uint32]uint32
- func (*RawRegisterSnapshot) ProtoMessage()
- func (x *RawRegisterSnapshot) ProtoReflect() protoreflect.Message
- func (x *RawRegisterSnapshot) Reset()
- func (x *RawRegisterSnapshot) String() string
- type RegisterName
- func (RegisterName) Descriptor() protoreflect.EnumDescriptor
- func (x RegisterName) Enum() *RegisterName
- func (RegisterName) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegisterName) Number() protoreflect.EnumNumber
- func (x RegisterName) String() string
- func (RegisterName) Type() protoreflect.EnumType
- type SetStateRequest
- func (*SetStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetStateRequest) GetCoolingTargetTemperature() *Temperature
- func (x *SetStateRequest) GetFancoilName() string
- func (x *SetStateRequest) GetHeatingTargetTemperature() *Temperature
- func (x *SetStateRequest) GetPowerStatus() PowerStatus
- func (x *SetStateRequest) GetPreferenceFanSetting() FanSetting
- func (x *SetStateRequest) GetValveSetting() ValveSetting
- func (*SetStateRequest) ProtoMessage()
- func (x *SetStateRequest) ProtoReflect() protoreflect.Message
- func (x *SetStateRequest) Reset()
- func (x *SetStateRequest) String() string
- type SetStateResponse
- type State
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetAntiCoolingTargetTemperature() *Temperature
- func (x *State) GetAutoModeCoolingTargetTemperature() *Temperature
- func (x *State) GetAutoModeHeatingTargetTemperature() *Temperature
- func (x *State) GetCoilTemperature() *Temperature
- func (x *State) GetCoolingTargetTemperature() *Temperature
- func (x *State) GetCurrentFanSetting() FanSetting
- func (x *State) GetDisplayTemperatureUnits() TemperatureUnits
- func (x *State) GetFanSpeed() *FanSpeed
- func (x *State) GetFloorHeatingMode() FloorHeatingMode
- func (x *State) GetHeatingTargetTemperature() *Temperature
- func (x *State) GetModbusAddress() *ModbusAddress
- func (x *State) GetMode() Mode
- func (x *State) GetPowerStatus() PowerStatus
- func (x *State) GetPreferenceFanSetting() FanSetting
- func (x *State) GetRoomTemperature() *Temperature
- func (x *State) GetSnapshotTime() *timestamp.Timestamp
- func (x *State) GetValveSetting() ValveSetting
- func (x *State) GetValveState() ValveState
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
- type Temperature
- type TemperatureUnits
- func (TemperatureUnits) Descriptor() protoreflect.EnumDescriptor
- func (x TemperatureUnits) Enum() *TemperatureUnits
- func (TemperatureUnits) EnumDescriptor() ([]byte, []int)deprecated
- func (x TemperatureUnits) Number() protoreflect.EnumNumber
- func (x TemperatureUnits) String() string
- func (TemperatureUnits) Type() protoreflect.EnumType
- type UnimplementedFanCoilServiceServer
- type UnsafeFanCoilServiceServer
- type ValveSetting
- func (ValveSetting) Descriptor() protoreflect.EnumDescriptor
- func (x ValveSetting) Enum() *ValveSetting
- func (ValveSetting) EnumDescriptor() ([]byte, []int)deprecated
- func (x ValveSetting) Number() protoreflect.EnumNumber
- func (x ValveSetting) String() string
- func (ValveSetting) Type() protoreflect.EnumType
- type ValveState
Constants ¶
This section is empty.
Variables ¶
var ( TemperatureUnits_name = map[int32]string{ 0: "TEMPERATURE_UNITS_UNSPECIFIED", 1: "TEMPERATURE_UNITS_CELCIUS", 2: "TEMPERATURE_UNITS_FAHRENHEIT", } TemperatureUnits_value = map[string]int32{ "TEMPERATURE_UNITS_UNSPECIFIED": 0, "TEMPERATURE_UNITS_CELCIUS": 1, "TEMPERATURE_UNITS_FAHRENHEIT": 2, } )
Enum value maps for TemperatureUnits.
var ( FloorHeatingMode_name = map[int32]string{ 0: "FLOOR_HEATING_MODE_UNSPECIFIED", 1: "FLOOR_HEATING_MODE_ON", 2: "FLOOR_HEATING_MODE_OFF", } FloorHeatingMode_value = map[string]int32{ "FLOOR_HEATING_MODE_UNSPECIFIED": 0, "FLOOR_HEATING_MODE_ON": 1, "FLOOR_HEATING_MODE_OFF": 2, } )
Enum value maps for FloorHeatingMode.
var ( ValveState_name = map[int32]string{ 0: "VALVE_STATE_UNSPECIFIED", 1: "VALVE_STATE_ON", 2: "VALVE_STATE_OFF", } ValveState_value = map[string]int32{ "VALVE_STATE_UNSPECIFIED": 0, "VALVE_STATE_ON": 1, "VALVE_STATE_OFF": 2, } )
Enum value maps for ValveState.
var ( ValveSetting_name = map[int32]string{ 0: "VALVE_SETTING_UNSPECIFIED", 1: "VALVE_SETTING_ENABLED", 2: "VALVE_SETTING_DISABLED", } ValveSetting_value = map[string]int32{ "VALVE_SETTING_UNSPECIFIED": 0, "VALVE_SETTING_ENABLED": 1, "VALVE_SETTING_DISABLED": 2, } )
Enum value maps for ValveSetting.
var ( RegisterName_name = map[int32]string{ 0: "REGISTER_NAME_UNSPECIFIED", 28301: "REGISTER_NAME_ON_OFF", 28302: "REGISTER_NAME_MODE", 28303: "REGISTER_NAME_FANSPEED", 28306: "REGISTER_NAME_TIMER_OFF1", 28307: "REGISTER_NAME_TIMER_OFF2", 28308: "REGISTER_NAME_MAX_SET_TEMPERATURE", 28309: "REGISTER_NAME_MIN_SET_TEMPERATURE", 28310: "REGISTER_NAME_COOLING_SET_TEMPERATURE", 28311: "REGISTER_NAME_HEATING_SET_TEMPERATURE", 28312: "REGISTER_NAME_COOLING_SET_TEMPERATURE_AUTO", 28313: "REGISTER_NAME_HEATING_SET_TEMPERATURE_AUTO", 28314: "REGISTER_NAME_ANTI_COOLING_WIND_SETTING_TEMPERATURE", 28315: "REGISTER_NAME_START_ANTI_HOT_WIND", 28316: "REGISTER_NAME_START_ULTRA_LOW_WIND", 28317: "REGISTER_NAME_USE_VALVE", 28318: "REGISTER_NAME_USE_FLOOR_HEATING", 28319: "REGISTER_NAME_USE_FAHRENHEIT", 28320: "REGISTER_NAME_MASTER_SLAVE", 28321: "REGISTER_NAME_UNIT_ADDRESS", 46801: "REGISTER_NAME_ROOM_TEMPERATURE", 46802: "REGISTER_NAME_COIL_TEMPERATURE", 46803: "REGISTER_NAME_CURRENT_FAN_SPEED", 46804: "REGISTER_NAME_FAN_RPM", 46805: "REGISTER_NAME_VALVE_ON_OFF", 46806: "REGISTER_NAME_REMOTE_ON_OFF", 46807: "REGISTER_NAME_SIMULATION_SIGNAL", 46808: "REGISTER_NAME_FAN_SPEED_SIGNAL_FEEDBACK_FAULT", 46809: "REGISTER_NAME_ROOM_TEMPERATURE_SENSOR_FAULT", 46810: "REGISTER_NAME_COIL_TEMPERATURE_SENSOR_FAULT", } RegisterName_value = map[string]int32{ "REGISTER_NAME_UNSPECIFIED": 0, "REGISTER_NAME_ON_OFF": 28301, "REGISTER_NAME_MODE": 28302, "REGISTER_NAME_FANSPEED": 28303, "REGISTER_NAME_TIMER_OFF1": 28306, "REGISTER_NAME_TIMER_OFF2": 28307, "REGISTER_NAME_MAX_SET_TEMPERATURE": 28308, "REGISTER_NAME_MIN_SET_TEMPERATURE": 28309, "REGISTER_NAME_COOLING_SET_TEMPERATURE": 28310, "REGISTER_NAME_HEATING_SET_TEMPERATURE": 28311, "REGISTER_NAME_COOLING_SET_TEMPERATURE_AUTO": 28312, "REGISTER_NAME_HEATING_SET_TEMPERATURE_AUTO": 28313, "REGISTER_NAME_ANTI_COOLING_WIND_SETTING_TEMPERATURE": 28314, "REGISTER_NAME_START_ANTI_HOT_WIND": 28315, "REGISTER_NAME_START_ULTRA_LOW_WIND": 28316, "REGISTER_NAME_USE_VALVE": 28317, "REGISTER_NAME_USE_FLOOR_HEATING": 28318, "REGISTER_NAME_USE_FAHRENHEIT": 28319, "REGISTER_NAME_MASTER_SLAVE": 28320, "REGISTER_NAME_UNIT_ADDRESS": 28321, "REGISTER_NAME_ROOM_TEMPERATURE": 46801, "REGISTER_NAME_COIL_TEMPERATURE": 46802, "REGISTER_NAME_CURRENT_FAN_SPEED": 46803, "REGISTER_NAME_FAN_RPM": 46804, "REGISTER_NAME_VALVE_ON_OFF": 46805, "REGISTER_NAME_REMOTE_ON_OFF": 46806, "REGISTER_NAME_SIMULATION_SIGNAL": 46807, "REGISTER_NAME_FAN_SPEED_SIGNAL_FEEDBACK_FAULT": 46808, "REGISTER_NAME_ROOM_TEMPERATURE_SENSOR_FAULT": 46809, "REGISTER_NAME_COIL_TEMPERATURE_SENSOR_FAULT": 46810, } )
Enum value maps for RegisterName.
var ( FanSetting_name = map[int32]string{ 0: "FAN_SETTING_UNSPECIFIED", 7: "FAN_SETTING_OFF", 1: "FAN_SETTING_ULTRA_LOW", 2: "FAN_SETTING_LOW", 3: "FAN_SETTING_MEDIUM", 4: "FAN_SETTING_HIGH", 5: "FAN_SETTING_MAX", 6: "FAN_SETTING_AUTO", } FanSetting_value = map[string]int32{ "FAN_SETTING_UNSPECIFIED": 0, "FAN_SETTING_OFF": 7, "FAN_SETTING_ULTRA_LOW": 1, "FAN_SETTING_LOW": 2, "FAN_SETTING_MEDIUM": 3, "FAN_SETTING_HIGH": 4, "FAN_SETTING_MAX": 5, "FAN_SETTING_AUTO": 6, } )
Enum value maps for FanSetting.
var ( PowerStatus_name = map[int32]string{ 0: "POWER_STATUS_UNSPECIFIED", 1: "POWER_STATUS_ON", 2: "POWER_STATUS_OFF", } PowerStatus_value = map[string]int32{ "POWER_STATUS_UNSPECIFIED": 0, "POWER_STATUS_ON": 1, "POWER_STATUS_OFF": 2, } )
Enum value maps for PowerStatus.
var ( Mode_name = map[int32]string{ 0: "MODE_UNSPECIFIED", 5: "MODE_AUTO", 1: "MODE_COOLING", 2: "MODE_DEHUMIDIFICATION", 3: "MODE_VENTILATION", 4: "MODE_HEATING", } Mode_value = map[string]int32{ "MODE_UNSPECIFIED": 0, "MODE_AUTO": 5, "MODE_COOLING": 1, "MODE_DEHUMIDIFICATION": 2, "MODE_VENTILATION": 3, "MODE_HEATING": 4, } )
Enum value maps for Mode.
var (
// optional fancoil.ModbusEnumValueOptions modbus_options = 60000;
E_ModbusOptions = &file_fancoil_proto_extTypes[0]
)
Extension fields to descriptor.EnumValueOptions.
var FanCoilService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fancoil.FanCoilService", HandlerType: (*FanCoilServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetState", Handler: _FanCoilService_GetState_Handler, }, { MethodName: "SetState", Handler: _FanCoilService_SetState_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "fancoil.proto", }
FanCoilService_ServiceDesc is the grpc.ServiceDesc for FanCoilService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_fancoil_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFanCoilServiceServer ¶
func RegisterFanCoilServiceServer(s grpc.ServiceRegistrar, srv FanCoilServiceServer)
Types ¶
type FanCoilServiceClient ¶
type FanCoilServiceClient interface { // Get a snapshot of the state of a single fan coil unit. GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error) // Set some parameters of the fan coil unit. SetState(ctx context.Context, in *SetStateRequest, opts ...grpc.CallOption) (*SetStateResponse, error) }
FanCoilServiceClient is the client API for FanCoilService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFanCoilServiceClient ¶
func NewFanCoilServiceClient(cc grpc.ClientConnInterface) FanCoilServiceClient
type FanCoilServiceServer ¶
type FanCoilServiceServer interface { // Get a snapshot of the state of a single fan coil unit. GetState(context.Context, *GetStateRequest) (*GetStateResponse, error) // Set some parameters of the fan coil unit. SetState(context.Context, *SetStateRequest) (*SetStateResponse, error) // contains filtered or unexported methods }
FanCoilServiceServer is the server API for FanCoilService service. All implementations must embed UnimplementedFanCoilServiceServer for forward compatibility
type FanSetting ¶
type FanSetting int32
const ( FanSetting_FAN_SETTING_UNSPECIFIED FanSetting = 0 FanSetting_FAN_SETTING_OFF FanSetting = 7 FanSetting_FAN_SETTING_ULTRA_LOW FanSetting = 1 FanSetting_FAN_SETTING_LOW FanSetting = 2 FanSetting_FAN_SETTING_MEDIUM FanSetting = 3 FanSetting_FAN_SETTING_HIGH FanSetting = 4 FanSetting_FAN_SETTING_MAX FanSetting = 5 FanSetting_FAN_SETTING_AUTO FanSetting = 6 )
func (FanSetting) Descriptor ¶
func (FanSetting) Descriptor() protoreflect.EnumDescriptor
func (FanSetting) Enum ¶
func (x FanSetting) Enum() *FanSetting
func (FanSetting) EnumDescriptor
deprecated
func (FanSetting) EnumDescriptor() ([]byte, []int)
Deprecated: Use FanSetting.Descriptor instead.
func (FanSetting) Number ¶
func (x FanSetting) Number() protoreflect.EnumNumber
func (FanSetting) String ¶
func (x FanSetting) String() string
func (FanSetting) Type ¶
func (FanSetting) Type() protoreflect.EnumType
type FanSpeed ¶
type FanSpeed struct { // Rotations per minute for the fan. Rpm int64 `protobuf:"varint,1,opt,name=rpm,proto3" json:"rpm,omitempty"` // contains filtered or unexported fields }
func (*FanSpeed) Descriptor
deprecated
func (*FanSpeed) ProtoMessage ¶
func (*FanSpeed) ProtoMessage()
func (*FanSpeed) ProtoReflect ¶
func (x *FanSpeed) ProtoReflect() protoreflect.Message
type FloorHeatingMode ¶
type FloorHeatingMode int32
const ( FloorHeatingMode_FLOOR_HEATING_MODE_UNSPECIFIED FloorHeatingMode = 0 FloorHeatingMode_FLOOR_HEATING_MODE_ON FloorHeatingMode = 1 FloorHeatingMode_FLOOR_HEATING_MODE_OFF FloorHeatingMode = 2 )
func (FloorHeatingMode) Descriptor ¶
func (FloorHeatingMode) Descriptor() protoreflect.EnumDescriptor
func (FloorHeatingMode) Enum ¶
func (x FloorHeatingMode) Enum() *FloorHeatingMode
func (FloorHeatingMode) EnumDescriptor
deprecated
func (FloorHeatingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use FloorHeatingMode.Descriptor instead.
func (FloorHeatingMode) Number ¶
func (x FloorHeatingMode) Number() protoreflect.EnumNumber
func (FloorHeatingMode) String ¶
func (x FloorHeatingMode) String() string
func (FloorHeatingMode) Type ¶
func (FloorHeatingMode) Type() protoreflect.EnumType
type GetStateRequest ¶
type GetStateRequest struct { // The name of the fan coil unit. Empty for default. FancoilName string `protobuf:"bytes,1,opt,name=fancoil_name,json=fancoilName,proto3" json:"fancoil_name,omitempty"` // contains filtered or unexported fields }
func (*GetStateRequest) Descriptor
deprecated
func (*GetStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead.
func (*GetStateRequest) GetFancoilName ¶
func (x *GetStateRequest) GetFancoilName() string
func (*GetStateRequest) ProtoMessage ¶
func (*GetStateRequest) ProtoMessage()
func (*GetStateRequest) ProtoReflect ¶
func (x *GetStateRequest) ProtoReflect() protoreflect.Message
func (*GetStateRequest) Reset ¶
func (x *GetStateRequest) Reset()
func (*GetStateRequest) String ¶
func (x *GetStateRequest) String() string
type GetStateResponse ¶
type GetStateResponse struct { State *State `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` RawSnapshot *RawRegisterSnapshot `protobuf:"bytes,2,opt,name=raw_snapshot,json=rawSnapshot,proto3" json:"raw_snapshot,omitempty"` // contains filtered or unexported fields }
func (*GetStateResponse) Descriptor
deprecated
func (*GetStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStateResponse.ProtoReflect.Descriptor instead.
func (*GetStateResponse) GetRawSnapshot ¶
func (x *GetStateResponse) GetRawSnapshot() *RawRegisterSnapshot
func (*GetStateResponse) GetState ¶
func (x *GetStateResponse) GetState() *State
func (*GetStateResponse) ProtoMessage ¶
func (*GetStateResponse) ProtoMessage()
func (*GetStateResponse) ProtoReflect ¶
func (x *GetStateResponse) ProtoReflect() protoreflect.Message
func (*GetStateResponse) Reset ¶
func (x *GetStateResponse) Reset()
func (*GetStateResponse) String ¶
func (x *GetStateResponse) String() string
type ModbusAddress ¶
type ModbusAddress struct { // Address of a modbus device. Address uint32 `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ModbusAddress) Descriptor
deprecated
func (*ModbusAddress) Descriptor() ([]byte, []int)
Deprecated: Use ModbusAddress.ProtoReflect.Descriptor instead.
func (*ModbusAddress) GetAddress ¶
func (x *ModbusAddress) GetAddress() uint32
func (*ModbusAddress) ProtoMessage ¶
func (*ModbusAddress) ProtoMessage()
func (*ModbusAddress) ProtoReflect ¶
func (x *ModbusAddress) ProtoReflect() protoreflect.Message
func (*ModbusAddress) Reset ¶
func (x *ModbusAddress) Reset()
func (*ModbusAddress) String ¶
func (x *ModbusAddress) String() string
type ModbusEnumValueOptions ¶
type ModbusEnumValueOptions struct { // The modbus encoding of the value as a big endian uint16. RegisterValue uint32 `protobuf:"varint,1,opt,name=register_value,json=registerValue,proto3" json:"register_value,omitempty"` // contains filtered or unexported fields }
func (*ModbusEnumValueOptions) Descriptor
deprecated
func (*ModbusEnumValueOptions) Descriptor() ([]byte, []int)
Deprecated: Use ModbusEnumValueOptions.ProtoReflect.Descriptor instead.
func (*ModbusEnumValueOptions) GetRegisterValue ¶
func (x *ModbusEnumValueOptions) GetRegisterValue() uint32
func (*ModbusEnumValueOptions) ProtoMessage ¶
func (*ModbusEnumValueOptions) ProtoMessage()
func (*ModbusEnumValueOptions) ProtoReflect ¶
func (x *ModbusEnumValueOptions) ProtoReflect() protoreflect.Message
func (*ModbusEnumValueOptions) Reset ¶
func (x *ModbusEnumValueOptions) Reset()
func (*ModbusEnumValueOptions) String ¶
func (x *ModbusEnumValueOptions) String() string
type Mode ¶
type Mode int32
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
type PowerStatus ¶
type PowerStatus int32
const ( PowerStatus_POWER_STATUS_UNSPECIFIED PowerStatus = 0 PowerStatus_POWER_STATUS_ON PowerStatus = 1 PowerStatus_POWER_STATUS_OFF PowerStatus = 2 )
func (PowerStatus) Descriptor ¶
func (PowerStatus) Descriptor() protoreflect.EnumDescriptor
func (PowerStatus) Enum ¶
func (x PowerStatus) Enum() *PowerStatus
func (PowerStatus) EnumDescriptor
deprecated
func (PowerStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use PowerStatus.Descriptor instead.
func (PowerStatus) Number ¶
func (x PowerStatus) Number() protoreflect.EnumNumber
func (PowerStatus) String ¶
func (x PowerStatus) String() string
func (PowerStatus) Type ¶
func (PowerStatus) Type() protoreflect.EnumType
type RawRegisterSnapshot ¶
type RawRegisterSnapshot struct { // The actual values are 16 bit. Protobuf only supports 32-bit values, // otherwise we would use uint16. // // The key of the map will be an entry from the RegisterName enum if it is a // known value. RawValues map[uint32]uint32 `` /* 178-byte string literal not displayed */ // contains filtered or unexported fields }
RawRegisterSnapshot holds the values of all of the known fan coil modbus registers for archival purposes.
func (*RawRegisterSnapshot) Descriptor
deprecated
func (*RawRegisterSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use RawRegisterSnapshot.ProtoReflect.Descriptor instead.
func (*RawRegisterSnapshot) GetRawValues ¶
func (x *RawRegisterSnapshot) GetRawValues() map[uint32]uint32
func (*RawRegisterSnapshot) ProtoMessage ¶
func (*RawRegisterSnapshot) ProtoMessage()
func (*RawRegisterSnapshot) ProtoReflect ¶
func (x *RawRegisterSnapshot) ProtoReflect() protoreflect.Message
func (*RawRegisterSnapshot) Reset ¶
func (x *RawRegisterSnapshot) Reset()
func (*RawRegisterSnapshot) String ¶
func (x *RawRegisterSnapshot) String() string
type RegisterName ¶
type RegisterName int32
RegisterName is an enum of all the known registers of the fan coil units.
See fancoil/chiltrix-htp-fancoil-documentation.md for more details about the encodings of the registers.
const ( RegisterName_REGISTER_NAME_UNSPECIFIED RegisterName = 0 // ENUM = Address Function Code Content Description // Holding registers: Can be read and set. RegisterName_REGISTER_NAME_ON_OFF RegisterName = 28301 // 28301 03/10 On/Off 0=off,1=on RegisterName_REGISTER_NAME_MODE RegisterName = 28302 // 28302 03/10 Mode 0~auto;1~cooling;2~dehumidification;3~ventilate;4~heating; RegisterName_REGISTER_NAME_FANSPEED RegisterName = 28303 // 28303 03/10 Fanspeed "2~low speed;3~medium speed; 4~high speed; 6~auto" RegisterName_REGISTER_NAME_TIMER_OFF1 RegisterName = 28306 // 28306 03/10 Timer off RegisterName_REGISTER_NAME_TIMER_OFF2 RegisterName = 28307 // 28307 03/10 Timer off RegisterName_REGISTER_NAME_MAX_SET_TEMPERATURE RegisterName = 28308 // 28308 03/10 Max. set temperature (-9~96)℃ RegisterName_REGISTER_NAME_MIN_SET_TEMPERATURE RegisterName = 28309 // 28309 03/10 Min. set temperature (-9~96)℃ RegisterName_REGISTER_NAME_COOLING_SET_TEMPERATURE RegisterName = 28310 // 28310 03/10 Cooling set temperature RegisterName_REGISTER_NAME_HEATING_SET_TEMPERATURE RegisterName = 28311 // 28311 03/10 heating set temperature RegisterName_REGISTER_NAME_COOLING_SET_TEMPERATURE_AUTO RegisterName = 28312 // 28312 03/10 Cooling set temperature at auto mode RegisterName_REGISTER_NAME_HEATING_SET_TEMPERATURE_AUTO RegisterName = 28313 // 28313 03/10 heating set temperature at auto mode RegisterName_REGISTER_NAME_ANTI_COOLING_WIND_SETTING_TEMPERATURE RegisterName = 28314 // 28314 03/10 Anti-cooling wind setting temperature (5~40)℃ RegisterName_REGISTER_NAME_START_ANTI_HOT_WIND RegisterName = 28315 // 28315 03/10 Whether to start anti-hot wind function (1-Yes;0-No) RegisterName_REGISTER_NAME_START_ULTRA_LOW_WIND RegisterName = 28316 // 28316 03/10 Whether to start ultra-low wind function (1-Yes;0-No) RegisterName_REGISTER_NAME_USE_VALVE RegisterName = 28317 // 28317 03/10 Whether to use vavle (1-Yes;0-No) RegisterName_REGISTER_NAME_USE_FLOOR_HEATING RegisterName = 28318 // 28318 03/10 Whether to use floor heating (1-Yes;0-No) RegisterName_REGISTER_NAME_USE_FAHRENHEIT RegisterName = 28319 // 28319 03/10 Whether to use Fahrenheit (1-℉;0-℃) RegisterName_REGISTER_NAME_MASTER_SLAVE RegisterName = 28320 // 28320 03/10 Master/Slave (1-Yes;0-No) RegisterName_REGISTER_NAME_UNIT_ADDRESS RegisterName = 28321 // 28321 03/10 Unit address (1~99)The default value is 15 // Input registers: read only. RegisterName_REGISTER_NAME_ROOM_TEMPERATURE RegisterName = 46801 // 46801 04 Room temperature RegisterName_REGISTER_NAME_COIL_TEMPERATURE RegisterName = 46802 // 46802 04 Coil temperature RegisterName_REGISTER_NAME_CURRENT_FAN_SPEED RegisterName = 46803 // 46803 04 Current fan speed 0 Off;1 Ultra-low speed; 2 Low speed;3 Medium speed;4 High speed;5 Top speed;6 Auto RegisterName_REGISTER_NAME_FAN_RPM RegisterName = 46804 // 46804 04 Fan revolution 0~2000 (rpm) RegisterName_REGISTER_NAME_VALVE_ON_OFF RegisterName = 46805 // 46805 04 Electromagnetic Valve 0 Off; 1 On RegisterName_REGISTER_NAME_REMOTE_ON_OFF RegisterName = 46806 // 46806 04 Remote on/off 0 Open;1 close RegisterName_REGISTER_NAME_SIMULATION_SIGNAL RegisterName = 46807 // 46807 04 Simulation signal 0 (The main engine needs to be switched to non-heating mode);1 (The main engine needs to be switched to heating mode) RegisterName_REGISTER_NAME_FAN_SPEED_SIGNAL_FEEDBACK_FAULT RegisterName = 46808 // 46808 04 Fan speed signal feedback fault (1-Yes;0-No) RegisterName_REGISTER_NAME_ROOM_TEMPERATURE_SENSOR_FAULT RegisterName = 46809 // 46809 04 Room temperature sensor fault (1-Yes;0-No) RegisterName_REGISTER_NAME_COIL_TEMPERATURE_SENSOR_FAULT RegisterName = 46810 // 46810 04 Coil temperature sensor fault (1-Yes;0-No) )
func (RegisterName) Descriptor ¶
func (RegisterName) Descriptor() protoreflect.EnumDescriptor
func (RegisterName) Enum ¶
func (x RegisterName) Enum() *RegisterName
func (RegisterName) EnumDescriptor
deprecated
func (RegisterName) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegisterName.Descriptor instead.
func (RegisterName) Number ¶
func (x RegisterName) Number() protoreflect.EnumNumber
func (RegisterName) String ¶
func (x RegisterName) String() string
func (RegisterName) Type ¶
func (RegisterName) Type() protoreflect.EnumType
type SetStateRequest ¶
type SetStateRequest struct { // The name of the fan coil unit. Empty for default. Otherwise, the modbus // address formatted as a 10-base integer. FancoilName string `protobuf:"bytes,1,opt,name=fancoil_name,json=fancoilName,proto3" json:"fancoil_name,omitempty"` PowerStatus PowerStatus `protobuf:"varint,2,opt,name=power_status,json=powerStatus,proto3,enum=fancoil.PowerStatus" json:"power_status,omitempty"` PreferenceFanSetting FanSetting `` /* 148-byte string literal not displayed */ // Setpoint for heating mode. HeatingTargetTemperature *Temperature `` /* 135-byte string literal not displayed */ // Setpoint for cooling mode. CoolingTargetTemperature *Temperature `` /* 136-byte string literal not displayed */ // Whether the electromechanical bypass valve is installed and should be // used. When the valve is "on" it means the ValveSetting ValveSetting `protobuf:"varint,18,opt,name=valve_setting,json=valveSetting,proto3,enum=fancoil.ValveSetting" json:"valve_setting,omitempty"` // contains filtered or unexported fields }
func (*SetStateRequest) Descriptor
deprecated
func (*SetStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetStateRequest.ProtoReflect.Descriptor instead.
func (*SetStateRequest) GetCoolingTargetTemperature ¶
func (x *SetStateRequest) GetCoolingTargetTemperature() *Temperature
func (*SetStateRequest) GetFancoilName ¶
func (x *SetStateRequest) GetFancoilName() string
func (*SetStateRequest) GetHeatingTargetTemperature ¶
func (x *SetStateRequest) GetHeatingTargetTemperature() *Temperature
func (*SetStateRequest) GetPowerStatus ¶
func (x *SetStateRequest) GetPowerStatus() PowerStatus
func (*SetStateRequest) GetPreferenceFanSetting ¶
func (x *SetStateRequest) GetPreferenceFanSetting() FanSetting
func (*SetStateRequest) GetValveSetting ¶
func (x *SetStateRequest) GetValveSetting() ValveSetting
func (*SetStateRequest) ProtoMessage ¶
func (*SetStateRequest) ProtoMessage()
func (*SetStateRequest) ProtoReflect ¶
func (x *SetStateRequest) ProtoReflect() protoreflect.Message
func (*SetStateRequest) Reset ¶
func (x *SetStateRequest) Reset()
func (*SetStateRequest) String ¶
func (x *SetStateRequest) String() string
type SetStateResponse ¶
type SetStateResponse struct {
// contains filtered or unexported fields
}
func (*SetStateResponse) Descriptor
deprecated
func (*SetStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetStateResponse.ProtoReflect.Descriptor instead.
func (*SetStateResponse) ProtoMessage ¶
func (*SetStateResponse) ProtoMessage()
func (*SetStateResponse) ProtoReflect ¶
func (x *SetStateResponse) ProtoReflect() protoreflect.Message
func (*SetStateResponse) Reset ¶
func (x *SetStateResponse) Reset()
func (*SetStateResponse) String ¶
func (x *SetStateResponse) String() string
type State ¶
type State struct { // The timestamp when the state was collected. SnapshotTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=snapshot_time,json=snapshotTime,proto3" json:"snapshot_time,omitempty"` // Parsed register values. PowerStatus PowerStatus `protobuf:"varint,2,opt,name=power_status,json=powerStatus,proto3,enum=fancoil.PowerStatus" json:"power_status,omitempty"` // 28301 Mode Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=fancoil.Mode" json:"mode,omitempty"` // 28302 RoomTemperature *Temperature `protobuf:"bytes,4,opt,name=room_temperature,json=roomTemperature,proto3" json:"room_temperature,omitempty"` // readonly CoilTemperature *Temperature `protobuf:"bytes,5,opt,name=coil_temperature,json=coilTemperature,proto3" json:"coil_temperature,omitempty"` // readonly PreferenceFanSetting FanSetting `` /* 148-byte string literal not displayed */ CurrentFanSetting FanSetting `` // readonly /* 139-byte string literal not displayed */ FanSpeed *FanSpeed `protobuf:"bytes,8,opt,name=fan_speed,json=fanSpeed,proto3" json:"fan_speed,omitempty"` // readonly // Setpoint for heating mode. HeatingTargetTemperature *Temperature `` /* 135-byte string literal not displayed */ // Setpoint for cooling mode. CoolingTargetTemperature *Temperature `` /* 136-byte string literal not displayed */ AntiCoolingTargetTemperature *Temperature `` /* 150-byte string literal not displayed */ AutoModeHeatingTargetTemperature *Temperature `` /* 164-byte string literal not displayed */ AutoModeCoolingTargetTemperature *Temperature `` /* 164-byte string literal not displayed */ // User configurable display teperature units. DisplayTemperatureUnits TemperatureUnits `` /* 164-byte string literal not displayed */ // Whether to use floor heating. FloorHeatingMode FloorHeatingMode `` /* 143-byte string literal not displayed */ // Modbus address of the fan coil unit. 0-99. ModbusAddress *ModbusAddress `protobuf:"bytes,16,opt,name=modbus_address,json=modbusAddress,proto3" json:"modbus_address,omitempty"` // Whether the electromechanical bypass valve is active or not. ValveState ValveState `protobuf:"varint,17,opt,name=valve_state,json=valveState,proto3,enum=fancoil.ValveState" json:"valve_state,omitempty"` // Whether the electromechanical bypass valve is installed and should be // used. When the valve is "on" it means the ValveSetting ValveSetting `protobuf:"varint,18,opt,name=valve_setting,json=valveSetting,proto3,enum=fancoil.ValveSetting" json:"valve_setting,omitempty"` // contains filtered or unexported fields }
State holds a parsed version of the fan coil's RegisterSnapshot.
func (*State) Descriptor
deprecated
func (*State) GetAntiCoolingTargetTemperature ¶
func (x *State) GetAntiCoolingTargetTemperature() *Temperature
func (*State) GetAutoModeCoolingTargetTemperature ¶
func (x *State) GetAutoModeCoolingTargetTemperature() *Temperature
func (*State) GetAutoModeHeatingTargetTemperature ¶
func (x *State) GetAutoModeHeatingTargetTemperature() *Temperature
func (*State) GetCoilTemperature ¶
func (x *State) GetCoilTemperature() *Temperature
func (*State) GetCoolingTargetTemperature ¶
func (x *State) GetCoolingTargetTemperature() *Temperature
func (*State) GetCurrentFanSetting ¶
func (x *State) GetCurrentFanSetting() FanSetting
func (*State) GetDisplayTemperatureUnits ¶
func (x *State) GetDisplayTemperatureUnits() TemperatureUnits
func (*State) GetFanSpeed ¶
func (*State) GetFloorHeatingMode ¶
func (x *State) GetFloorHeatingMode() FloorHeatingMode
func (*State) GetHeatingTargetTemperature ¶
func (x *State) GetHeatingTargetTemperature() *Temperature
func (*State) GetModbusAddress ¶
func (x *State) GetModbusAddress() *ModbusAddress
func (*State) GetPowerStatus ¶
func (x *State) GetPowerStatus() PowerStatus
func (*State) GetPreferenceFanSetting ¶
func (x *State) GetPreferenceFanSetting() FanSetting
func (*State) GetRoomTemperature ¶
func (x *State) GetRoomTemperature() *Temperature
func (*State) GetSnapshotTime ¶
func (*State) GetValveSetting ¶
func (x *State) GetValveSetting() ValveSetting
func (*State) GetValveState ¶
func (x *State) GetValveState() ValveState
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type Temperature ¶
type Temperature struct { DegreesCelcius float32 `protobuf:"fixed32,1,opt,name=degrees_celcius,json=degreesCelcius,proto3" json:"degrees_celcius,omitempty"` // contains filtered or unexported fields }
func (*Temperature) Descriptor
deprecated
func (*Temperature) Descriptor() ([]byte, []int)
Deprecated: Use Temperature.ProtoReflect.Descriptor instead.
func (*Temperature) GetDegreesCelcius ¶
func (x *Temperature) GetDegreesCelcius() float32
func (*Temperature) ProtoMessage ¶
func (*Temperature) ProtoMessage()
func (*Temperature) ProtoReflect ¶
func (x *Temperature) ProtoReflect() protoreflect.Message
func (*Temperature) Reset ¶
func (x *Temperature) Reset()
func (*Temperature) String ¶
func (x *Temperature) String() string
type TemperatureUnits ¶
type TemperatureUnits int32
const ( TemperatureUnits_TEMPERATURE_UNITS_UNSPECIFIED TemperatureUnits = 0 TemperatureUnits_TEMPERATURE_UNITS_CELCIUS TemperatureUnits = 1 TemperatureUnits_TEMPERATURE_UNITS_FAHRENHEIT TemperatureUnits = 2 )
func (TemperatureUnits) Descriptor ¶
func (TemperatureUnits) Descriptor() protoreflect.EnumDescriptor
func (TemperatureUnits) Enum ¶
func (x TemperatureUnits) Enum() *TemperatureUnits
func (TemperatureUnits) EnumDescriptor
deprecated
func (TemperatureUnits) EnumDescriptor() ([]byte, []int)
Deprecated: Use TemperatureUnits.Descriptor instead.
func (TemperatureUnits) Number ¶
func (x TemperatureUnits) Number() protoreflect.EnumNumber
func (TemperatureUnits) String ¶
func (x TemperatureUnits) String() string
func (TemperatureUnits) Type ¶
func (TemperatureUnits) Type() protoreflect.EnumType
type UnimplementedFanCoilServiceServer ¶
type UnimplementedFanCoilServiceServer struct { }
UnimplementedFanCoilServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFanCoilServiceServer) GetState ¶
func (UnimplementedFanCoilServiceServer) GetState(context.Context, *GetStateRequest) (*GetStateResponse, error)
func (UnimplementedFanCoilServiceServer) SetState ¶
func (UnimplementedFanCoilServiceServer) SetState(context.Context, *SetStateRequest) (*SetStateResponse, error)
type UnsafeFanCoilServiceServer ¶
type UnsafeFanCoilServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFanCoilServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FanCoilServiceServer will result in compilation errors.
type ValveSetting ¶
type ValveSetting int32
const ( ValveSetting_VALVE_SETTING_UNSPECIFIED ValveSetting = 0 // The valve is installed and enabled. ValveSetting_VALVE_SETTING_ENABLED ValveSetting = 1 // The valve is not installed or installed and should not be used. ValveSetting_VALVE_SETTING_DISABLED ValveSetting = 2 )
func (ValveSetting) Descriptor ¶
func (ValveSetting) Descriptor() protoreflect.EnumDescriptor
func (ValveSetting) Enum ¶
func (x ValveSetting) Enum() *ValveSetting
func (ValveSetting) EnumDescriptor
deprecated
func (ValveSetting) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValveSetting.Descriptor instead.
func (ValveSetting) Number ¶
func (x ValveSetting) Number() protoreflect.EnumNumber
func (ValveSetting) String ¶
func (x ValveSetting) String() string
func (ValveSetting) Type ¶
func (ValveSetting) Type() protoreflect.EnumType
type ValveState ¶
type ValveState int32
const ( ValveState_VALVE_STATE_UNSPECIFIED ValveState = 0 // The valve is directing water to not go through the heat exchange coils of // the fan coil unit. ValveState_VALVE_STATE_ON ValveState = 1 // The valve is directing water to not go through the fan coil unit. ValveState_VALVE_STATE_OFF ValveState = 2 )
func (ValveState) Descriptor ¶
func (ValveState) Descriptor() protoreflect.EnumDescriptor
func (ValveState) Enum ¶
func (x ValveState) Enum() *ValveState
func (ValveState) EnumDescriptor
deprecated
func (ValveState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ValveState.Descriptor instead.
func (ValveState) Number ¶
func (x ValveState) Number() protoreflect.EnumNumber
func (ValveState) String ¶
func (x ValveState) String() string
func (ValveState) Type ¶
func (ValveState) Type() protoreflect.EnumType