publish lock state query command result

This commit is contained in:
technyon
2023-03-06 17:22:23 +01:00
parent bf3977b130
commit b5da2a5a52
8 changed files with 26 additions and 1 deletions

View File

@@ -398,6 +398,11 @@ void NetworkLock::publishCommandResult(const char *resultStr)
publishString(mqtt_topic_lock_action_command_result, resultStr);
}
void NetworkLock::publishLockstateCommandResult(const char *resultStr)
{
publishString(mqtt_topic_query_lockstate_command_result, resultStr);
}
void NetworkLock::publishBatteryReport(const NukiLock::BatteryReport& batteryReport)
{
publishFloat(mqtt_topic_battery_voltage, (float)batteryReport.batteryVoltage / 1000.0);