mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
parent
d5c727129e
commit
1f5c1baeae
@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Matter fix local Occupancy sensor
|
- Matter fix local Occupancy sensor
|
||||||
- Zigbee fixed regression with SetOption101
|
- Zigbee fixed regression with SetOption101
|
||||||
- Berry fixed parser error with upvals in closures
|
- Berry fixed parser error with upvals in closures
|
||||||
|
- NeoPool fix NPFiltration switch result (#18871)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -2118,6 +2118,19 @@ void CmndNeopoolBit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CmndNeopoolFiltrationRes(uint16_t data)
|
||||||
|
{
|
||||||
|
uint16_t speed = NeoPoolGetFiltrationSpeed();
|
||||||
|
if (speed) {
|
||||||
|
Response_P(PSTR("{\"%s\":\"%s\",\"" D_NEOPOOL_JSON_FILTRATION_SPEED "\":\"%d\"}"),
|
||||||
|
XdrvMailbox.command,
|
||||||
|
GetStateText(data),
|
||||||
|
(speed < 3) ? speed : 3);
|
||||||
|
} else {
|
||||||
|
ResponseCmndStateText(data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CmndNeopoolFiltration(void)
|
void CmndNeopoolFiltration(void)
|
||||||
{
|
{
|
||||||
uint16_t addr = MBF_PAR_FILT_MANUAL_STATE;
|
uint16_t addr = MBF_PAR_FILT_MANUAL_STATE;
|
||||||
@ -2165,6 +2178,8 @@ void CmndNeopoolFiltration(void)
|
|||||||
NeopoolResponseError();
|
NeopoolResponseError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
CmndNeopoolFiltrationRes(value[0]);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
NeopoolCmndError();
|
NeopoolCmndError();
|
||||||
return;
|
return;
|
||||||
@ -2174,15 +2189,7 @@ void CmndNeopoolFiltration(void)
|
|||||||
NeopoolResponseError();
|
NeopoolResponseError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
uint16_t speed = NeoPoolGetFiltrationSpeed();
|
CmndNeopoolFiltrationRes(data);
|
||||||
if (speed) {
|
|
||||||
Response_P(PSTR("{\"%s\":\"%s\",\"" D_NEOPOOL_JSON_FILTRATION_SPEED "\":\"%d\"}"),
|
|
||||||
XdrvMailbox.command,
|
|
||||||
GetStateText(data),
|
|
||||||
(speed < 3) ? speed : 3);
|
|
||||||
} else {
|
|
||||||
ResponseCmndStateText(data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user