Feature: Turn off LED 1 if no inverters are enabled for polling

This means that e.g. at night, when polling at night is disabled, LED 1 will be turned off now.
This commit is contained in:
Thomas Basler
2023-07-10 18:30:10 +02:00
parent 0ffbba0cf5
commit fe3d6588bc
3 changed files with 19 additions and 1 deletions

View File

@@ -50,6 +50,9 @@ public:
// True if at least one inverter is producing
bool getIsAtLeastOneProducing();
// True if at least one inverter is enabled for polling
bool getIsAtLeastOnePollEnabled();
// True if all enabled inverters are producing
bool getIsAllEnabledProducing();
@@ -75,6 +78,7 @@ private:
bool _isAtLeastOneProducing = false;
bool _isAllEnabledProducing = false;
bool _isAllEnabledReachable = false;
bool _isAtLeastOnePollEnabled = false;
};
extern DatastoreClass Datastore;