Totally agree on the docs. Try something like this:
(in configuration.yaml)
sensor: - platform: template sensors: lock_front_door_battery: friendly_name: 'Front Door Lock Battery' value_template: '{{ states.zwave.front_door_lock.attributes.battery_level }}' unit_of_measurement: '%' entity_id: zwave.front_door_lock lock_front_door_status: friendly_name: 'Front Door Lock Status' value_template: '{{ states.lock.front_door_lock_locked.attributes.lock_status }}' entity_id: lock.front_door_lock_locked
(in groups.yaml:)
lock_card: name: Front Door Lock entities: - lock.front_door_lock_locked - sensor.lock_front_door_battery - sensor.lock_front_door_status
And then you need to add the lock_card group to one of your view groups. Obviously make sure your entity IDs are right.
To set / clear user codes, you can do that in the Z-Wave Config screen. Select the lock under ‘Nodes’ and the Node User Codes card should appear way down at the bottom of the screen.