Component for lockable objects.
Public Functions
-
Lock() = default
-
bool from_json(const nlohmann::json &archive)
-
nlohmann::json to_json() const
Public Members
-
String key_name
-
bool key_required = false
-
bool lockable = false
-
bool locked = false
-
uint8_t lock_dc = 0
-
uint8_t unlock_dc = 0
-
bool remove_key = false