fixed issue #23: Using Lockngo does not change the lock state

This commit is contained in:
technyon
2022-08-06 18:22:10 +02:00
parent 241d39a2e4
commit bdb377a031
8 changed files with 60 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ public:
void initialize();
void publishKeyTurnerState(const NukiOpener::OpenerState& keyTurnerState, const NukiOpener::OpenerState& lastKeyTurnerState);
void publishBinaryState(NukiOpener::LockState lockState);
void publishAuthorizationInfo(const uint32_t authId, const char* authName);
void publishCommandResult(const char* resultStr);
void publishBatteryReport(const NukiOpener::BatteryReport& batteryReport);
@@ -54,6 +55,7 @@ private:
std::vector<char*> _configTopics;
bool _firstTunerStatePublish = true;
bool _haEnabled= false;
bool (*_lockActionReceivedCallback)(const char* value) = nullptr;
void (*_configUpdateReceivedCallback)(const char* path, const char* value) = nullptr;