mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 06:46:10 +02:00
0.7.31
* fixed docu #1085 * changed active power limit MqTT messages to QOS2 #1072 * improved alarm messages, added alarm-id to log #1089 * trigger power limit read on next day (if inverter was offline meanwhile) * disabled improv implementation to check if it is related to 'Schwuppdizitaet' * changed live view to gray once inverter isn't available * added inverter status to API * changed sum of totals on WebGui depending on inverter status #1084 * merge maximum power (AC and DC) from PR #1080
This commit is contained in:
parent
995c7ea5fb
commit
55764102ce
20 changed files with 223 additions and 112 deletions
|
@ -27,9 +27,9 @@
|
|||
#define F(sl) (sl)
|
||||
#endif
|
||||
|
||||
const uint8_t acList[] = {FLD_UAC, FLD_IAC, FLD_PAC, FLD_F, FLD_PF, FLD_T, FLD_YT, FLD_YD, FLD_PDC, FLD_EFF, FLD_Q};
|
||||
const uint8_t acListHmt[] = {FLD_UAC_1N, FLD_IAC_1, FLD_PAC, FLD_F, FLD_PF, FLD_T, FLD_YT, FLD_YD, FLD_PDC, FLD_EFF, FLD_Q};
|
||||
const uint8_t dcList[] = {FLD_UDC, FLD_IDC, FLD_PDC, FLD_YD, FLD_YT, FLD_IRR};
|
||||
const uint8_t acList[] = {FLD_UAC, FLD_IAC, FLD_PAC, FLD_F, FLD_PF, FLD_T, FLD_YT, FLD_YD, FLD_PDC, FLD_EFF, FLD_Q, FLD_MP};
|
||||
const uint8_t acListHmt[] = {FLD_UAC_1N, FLD_IAC_1, FLD_PAC, FLD_F, FLD_PF, FLD_T, FLD_YT, FLD_YD, FLD_PDC, FLD_EFF, FLD_Q, FLD_MP};
|
||||
const uint8_t dcList[] = {FLD_UDC, FLD_IDC, FLD_PDC, FLD_YD, FLD_YT, FLD_IRR, FLD_MP};
|
||||
|
||||
template<class HMSYSTEM, class HMRADIO>
|
||||
class RestApi {
|
||||
|
@ -365,6 +365,7 @@ class RestApi {
|
|||
obj[F("power_limit_ack")] = iv->powerLimitAck;
|
||||
obj[F("ts_last_success")] = rec->ts;
|
||||
obj[F("generation")] = iv->ivGen;
|
||||
obj[F("status")] = (uint8_t)iv->status;
|
||||
|
||||
JsonArray ch = obj.createNestedArray("ch");
|
||||
|
||||
|
@ -403,7 +404,10 @@ class RestApi {
|
|||
return;
|
||||
}
|
||||
|
||||
obj["cnt"] = iv->alarmCnt;
|
||||
record_t<> *rec = iv->getRecordStruct(RealTimeRunData_Debug);
|
||||
|
||||
obj["cnt"] = iv->alarmCnt;
|
||||
obj["last_id"] = iv->getChannelFieldValue(CH0, FLD_EVT, rec);
|
||||
|
||||
JsonArray alarm = obj.createNestedArray(F("alarm"));
|
||||
for(uint8_t i = 0; i < 10; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue