Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions HeishaMon/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,29 @@ unsigned int set_quiet_mode_priority(char *msg, unsigned char *cmd, char *log_ms
return sizeof(panasonicSendQuery);
}

unsigned int set_pump_flowrate_mode(char *msg, unsigned char *cmd, char *log_msg) {

const byte address=29;
byte value = 0b01;

if ( String(msg).toInt() == 1 ) {
value = 0b10;
}

{
char tmp[256] = { 0 };
snprintf_P(tmp, 255, PSTR("set pump flowrate mode %d"), value - 1);
memcpy(log_msg, tmp, sizeof(tmp));
}

{
memcpy_P(cmd, panasonicSendQuery, sizeof(panasonicSendQuery));
cmd[address] = value << 4;
}

return sizeof(panasonicSendQuery);
}

unsigned int set_external_compressor_control(char *msg, unsigned char *cmd, char *log_msg){
const byte off_state=64;
const byte address=23;
Expand Down
2 changes: 2 additions & 0 deletions HeishaMon/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ unsigned int set_external_error(char *msg, unsigned char *cmd, char *log_msg);
unsigned int set_heatingcontrol(char *msg, unsigned char *cmd, char *log_msg);
unsigned int set_smart_dhw(char *msg, unsigned char *cmd, char *log_msg);
unsigned int set_quiet_mode_priority(char *msg, unsigned char *cmd, char *log_msg);
unsigned int set_pump_flowrate_mode(char *msg, unsigned char *cmd, char *log_msg);

//optional pcb commands
unsigned int set_heat_cool_mode(char *msg, char *log_msg);
Expand Down Expand Up @@ -159,6 +160,7 @@ const cmdStruct commands[] PROGMEM = {
{ "SetHeatingControl", set_heatingcontrol },
{ "SetSmartDHW", set_smart_dhw },
{ "SetQuietModePriority", set_quiet_mode_priority },
{ "SetPumpFlowrateMode", set_pump_flowrate_mode },
};

struct optCmdStruct{
Expand Down
2 changes: 1 addition & 1 deletion MQTT-Topics.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ SET38 | SetBivalentAPStopTemp | Set bivalent adv. par. stop temp | -15 to 35
SET39 | SetHeatingControl | Set heating control | 0=comfort, 1=efficiency
SET40 | SetSmartDHW | Set SmartDHW | 0=variable, 1=standard
SET41 | SetQuietModePriority | Set Quiet Mode Priority | 0=sound, 1=capacity

SET42 | SetPumpFlowrateMode | Set Pump Flowrate Mode | 0=deltaT, 1=max. duty

*If you operate your heatpump in water mode with direct temperature setup: topics ending xxxRequestTemperature will set the absolute target temperature.*

Expand Down