-
Notifications
You must be signed in to change notification settings - Fork 11
Configuration Structure
raman325 edited this page Jan 15, 2026
·
4 revisions
If you decide to use the UI option when configuring Lock Code Manager, the UI will step you through the configuration. If you decide to use the YAML approach, refer to the following format:
1: # slot number is the top level key
name: fake_name # this is optional but assigns a friendly name to the slot which will be used in the events
pin: "1234" # this is optional if the slot is disabled using the enabled switch, but if you attempt to enable it, you will need to set this first. Be sure to use quotes!
enabled: true # this is optional and defaults to true, set to false to disable the PIN
entity_id: calendar.my_local_calendar # optional condition entity - see "Using Condition Entities" in wiki
number_of_uses: 15 # this is optional. If excluded, the integration will not track the number of uses for a slot. If provided, it needs to be a positive number > 0.
2: # bare minimum config for a slot
enabled: false
3: # This will cause an error because you need to have a PIN defined if the slot is enabled.
enabled: true
4: null # The equivalent of slot 3Note (v1.0.0+): The
calendarkey has been renamed toentity_idand now supports additional entity types beyond calendars. See Using Condition Entities for details. Existing configurations usingcalendarwill be automatically migrated.