Skip to content

Commit

Permalink
custom states persist fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rednblkx committed Jul 2, 2024
1 parent b322f0e commit 4c9930c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ namespace espConfig
/* Flags */
bool lockEnableCustomState = MQTT_CUSTOM_STATE_ENABLED;
bool hassMqttDiscoveryEnabled = MQTT_DISCOVERY;
std::map<const char *, int> customLockStates = {{"C_LOCKED", C_LOCKED}, {"C_UNLOCKING", C_UNLOCKING}, {"C_UNLOCKED", C_UNLOCKED}, {"C_LOCKING", C_LOCKING}, {"C_JAMMED", C_JAMMED}, {"C_UNKNOWN", C_UNKNOWN}};
std::map<const char *, int> customLockActions = {{"UNLOCK", UNLOCK}, {"LOCK", LOCK}};
std::map<std::string, int> customLockStates = {{"C_LOCKED", C_LOCKED}, {"C_UNLOCKING", C_UNLOCKING}, {"C_UNLOCKED", C_UNLOCKED}, {"C_LOCKING", C_LOCKING}, {"C_JAMMED", C_JAMMED}, {"C_UNKNOWN", C_UNKNOWN}};
std::map<std::string, int> customLockActions = {{"UNLOCK", UNLOCK}, {"LOCK", LOCK}};
} mqttData;

struct misc_config_t
Expand Down

0 comments on commit 4c9930c

Please sign in to comment.