Skip to content

Commit c317316

Browse files
committed
Initial YX1F8F support
1 parent 23177fb commit c317316

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

src/IRsend.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ enum gree_ac_remote_model_t {
157157
YBOFB, // (2) Green, YBOFB2, YAPOF3
158158
YX1FSF, // (3) Soleus Air window unit (Similar to YAW1F, but with an
159159
// Operation mode of Energy Saver (Econo))
160+
YX1F8F, // Similiar to YX1FSF
160161
};
161162

162163
/// HAIER_AC176 A/C model numbers

src/ir_Gree.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,16 @@ void IRGreeAC::stateReset(void) {
122122
std::memset(_.remote_state, 0, sizeof _.remote_state);
123123
_.Temp = 9; // _.remote_state[1] = 0x09;
124124
_.Light = true; // _.remote_state[2] = 0x20;
125-
_.unknown1 = 5; // _.remote_state[3] = 0x50;
126-
_.unknown2 = 4; // _.remote_state[5] = 0x20;
125+
126+
if (_model == gree_ac_remote_model_t::YX1F8F) {
127+
_.unknown1 = 10; // _.remote_state[3] = 0x0A;
128+
_.unknown2 = 0; // _.remote_state[5] = 0x01;
129+
_.unknown3 = 1; // _.remote_state[5] = 0x01;
130+
} else {
131+
_.unknown1 = 5; // _.remote_state[3] = 0x50;
132+
_.unknown2 = 4; // _.remote_state[5] = 0x20;
133+
_.unknown3 = 0; // _.remote_state[5] = 0x20;
134+
}
127135
}
128136

129137
/// Fix up the internal state so it is correct.
@@ -188,7 +196,8 @@ void IRGreeAC::setModel(const gree_ac_remote_model_t model) {
188196
switch (model) {
189197
case gree_ac_remote_model_t::YAW1F:
190198
case gree_ac_remote_model_t::YBOFB:
191-
case gree_ac_remote_model_t::YX1FSF: _model = model; break;
199+
case gree_ac_remote_model_t::YX1FSF:
200+
case gree_ac_remote_model_t::YX1F8F: _model = model; break;
192201
default: _model = gree_ac_remote_model_t::YAW1F;
193202
}
194203
}

src/ir_Gree.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
// Brand: Vailland, Model: YACIFB remote
2727
// Brand: Vailland, Model: VAI5-035WNI A/C
2828
// Brand: Soleus Air, Model: window A/C (YX1FSF)
29+
// Brand: Frigidaire, Model: YX1F8F remote
2930

3031
#ifndef IR_GREE_H_
3132
#define IR_GREE_H_
@@ -76,7 +77,7 @@ union GreeProtocol{
7677
uint8_t IFeel :1;
7778
uint8_t unknown2 :3; // value = 0b100
7879
uint8_t WiFi :1;
79-
uint8_t :1;
80+
uint8_t unknown3 :1; // value = 0b0
8081
// Byte 6
8182
uint8_t :8;
8283
// Byte 7

0 commit comments

Comments
 (0)