Skip to content

Commit 7d8487b

Browse files
author
Hovhannes Tumanyan
committed
Merge branch 'pr-39'
2 parents 0854ebd + 9930e31 commit 7d8487b

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

esphome/components/navien/navien.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ void NavienBase::send_scheduled_recirculation_off_cmd() {
188188
this->state.units = CELSIUS;
189189
}
190190

191-
std::string contVers = std::to_string(gas.controller_version_lo);
191+
std::string contVers = std::to_string(gas.controller_version);
192192
if (contVers.length() < 2){
193193
contVers.insert(0, 2 - contVers.length(), '0');
194194
}
195195
this->state.controller_version = contVers.substr(0, 1) + "." + contVers.substr(1, 1);
196196

197-
std::string panVers = std::to_string(gas.panel_version_lo);
197+
std::string panVers = std::to_string(gas.panel_version);
198198
if (panVers.length() < 2){
199199
panVers.insert(0, 2 - panVers.length(), '0');
200200
}

esphome/components/navien/navien_proto.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ typedef struct {
192192
uint8_t inlet_temp;
193193
uint8_t unknown_14; //0x00 on NCB-H
194194
uint8_t unknown_15; //0x00 on NCB-H
195-
uint8_t unknown_17; //0x00 on NCB-H
195+
uint8_t unknown_16; //0x00 on NCB-H
196196
uint8_t operating_capacity;
197197
uint8_t water_flow;
198-
uint8_t unknown_20; //0x00 on NCB-H
199-
uint8_t unknown_21; //0x58 on NCB-H
200-
uint8_t unknown_22; //0xB1 on NCB-H
201-
uint8_t unknown_23; //0x10 on NCB-H
202-
uint8_t unknown_24; //0x89 on NCB-H
198+
uint8_t unknown_19; //0x00 on NCB-H
199+
uint8_t unknown_20; //0x58 on NCB-H
200+
uint8_t unknown_21; //0xB1 on NCB-H
201+
uint8_t unknown_22; //0x10 on NCB-H
202+
uint8_t unknown_23; //0x89 on NCB-H
203203
/**
204204
* Kudos and credits to individuals below for this byte
205205
* tsquared at https://community.home-assistant.io/t/navien-esp32-navilink-interface/720567
@@ -228,22 +228,22 @@ typedef struct {
228228
} WATER_DATA;
229229

230230
typedef struct {
231-
uint8_t unknown_00; // pinned to 0x45 on NCB-H models
232-
uint8_t unknown_01; // 0x00
231+
uint8_t unknown_06; // pinned to 0x45 on NCB-H models
232+
uint8_t unknown_07; // 0x00
233233
uint8_t device_type;
234-
uint8_t unknown_03; //0x01 on NCB-H models
235-
uint8_t controller_version_lo;
236-
uint8_t controller_version_hi;
234+
uint8_t unknown_09; //0x01 on NCB-H models
235+
uint8_t controller_version;
236+
uint8_t unknown_11;
237237

238-
uint8_t panel_version_lo;
239-
uint8_t panel_version_hi;
238+
uint8_t panel_version;
239+
uint8_t unknown_13;
240240

241241
uint8_t set_temp;
242242
uint8_t outlet_temp;
243243
uint8_t inlet_temp;
244244
uint8_t sh_outlet_temp; // combi (and space heat?) models
245245
uint8_t sh_return_temp; // combi (and space heat?) models
246-
uint8_t unknown_18; // 0x9E on NCB-H models
246+
uint8_t unknown_19; // 0x9E on NCB-H models
247247
uint8_t heat_capacity; // varies based on boiler cycling while operating
248248
uint8_t system_status_2; // bit 5 always on on NCB-H models; bit 2 is hotbutton-enabled on NPE2 models; bit 0 is units on both
249249
uint8_t current_gas_lo;

0 commit comments

Comments
 (0)