KeyMaster Z-Wave lock manager and scheduler

I must muss be missing something but can’t it so I can see the menu on the lovelace, I got all the backend but cant get to where I can set codes.

Did you add the lovelace code?

Thanks that was it

Now my only problem left is, I cant figer out how to add this.

binary_sensor

    allow_automation:
      friendly_name: "Allow Automation"
      value_template: "{{ is_state('input_boolean.allow_automation_execution', 'on') }}"

    system_ready:
      friendly_name: "System ready"
      value_template: "{{ is_state('input_boolean.system_ready', 'on') }}"
      device_class: moving

Thank you for all of the help so far! I seem to be stuck at adding the lock to Lock Manager.

I am going to be adding 3 locks. I only have 1 added for now to test with. I went into Configuration>Entities and searched for all of the BE469 entries. I renamed all of them to Garage Door and added _garagedoor to the end of their Entity IDs. Then I click on Integrations at the top of the page and click on the + in the bottom right. Select Lock Manager. I select my lock from the drop down menu. Enter a name. I am unable to select anything for User Code and Access Control Sensors. When I click submit I get an error message stating User input malformed. I’m not quite sure what I am doing wrong.

binary_sensor:

Missing a :

Go into the ozw integration and select the lock and see if those entities are listed. They might be in “unavailable”, in which case you should flip their switch and see if they become available. Takes a few minutes sometimes

now I am getting this error when checking config

Invalid config for [binary_sensor]: required key not provided @ data['platform']. Got None. (See ?, line ?)

Nevermind got that to work lock codes not updating

Does the slot you are updating say connected? The code gets added on connected and removed on disconnected.

@FutureTense Thanks for updated install instructions. I believe I have everything setup correctly, but the user codes are not being setup. There are 2 errors in the logs, 1 is below:

Logger: homeassistant.helpers.event
Source: helpers/template.py:415
First occurred: 15:14:07 (1 occurrences)
Last logged: 15:14:07

Error while processing template: Template("{% set UC = ‘sensor.schlage_allegion_fe599gr_wireless_door_lock_alarm_level_sidedoor’ %} {% set AC = ‘sensor.schlage_allegion_fe599gr_wireless_door_lock_alarm_type_sidedoor’ %} {% if (((as_timestamp(now()) - as_timestamp(states.UC.last_changed)) < 15) and ((as_timestamp(now()) - as_timestamp(states.AC.last_changed)) < 15)) %} {% set usercode_value = states(UC) %} {% set alarm_type_value = states(AC) %} {% if ‘alarm_type’ in AC %} {% set alarm_type_general_actions = { ‘0’:‘No Status Reported’, ‘9’:‘Lock Jammed’, ‘17’:‘Keypad Lock Jammed’, ‘21’:‘Manual Lock’, ‘22’:‘Manual Unlock’, ‘23’:‘HA Lock Jammed’, ‘24’:‘HA Lock’, ‘25’:‘HA Unlock’, ‘26’:‘Auto Lock Jammed’, ‘27’:‘Auto Lock’, ‘32’:‘All Codes Deleted’, ‘161’:‘Bad Code Entered’, ‘167’:‘Battery Low’, ‘168’:‘Battery Critical’, ‘169’:‘Battery Too Low To Operate Lock’ } %} {% set alarm_type_lock_actions = { ‘18’:‘Keypad Lock’, ‘19’:‘Keypad Unlock’, ‘162’:‘Lock Code Attempt Outside of Schedule’ } %} {% set alarm_type_code_actions = { ‘33’:‘Code Deleted’, ‘112’:‘Code Changed’, ‘113’:‘Duplicate Code’ } %} {% elif ‘access_control’ in AC %} {% set alarm_type_general_actions = { ‘1’:‘Manual Lock’, ‘2’:‘Manual Unlock’, ‘3’:‘RF Lock’, ‘4’:‘RF Unlock’, ‘7’:‘Manual not fully locked’, ‘8’:‘RF not fully locked’, ‘9’:‘Auto Lock locked’, ‘10’:‘Auto Lock not fully locked’, ‘11’:‘Lock Jammed’, ‘16’:‘Keypad temporary disabled’, ‘17’:‘Keypad busy’ } %} {% set alarm_type_lock_actions = { ‘5’:‘Keypad Lock’, ‘6’:‘Keypad Unlock’ } %} {% set alarm_type_code_actions = { ‘12’:‘All User Codes Deleted’, ‘13’:‘Single Code Deleted’, ‘14’:‘New User Code Added’, ‘15’:‘Duplicate Code’ } %} {% endif %} {% if alarm_type_value in alarm_type_code_actions %} {{alarm_type_value}};{{ alarm_type_code_actions[alarm_type_value] }};{{usercode_value}} {% elif alarm_type_value in alarm_type_lock_actions %} {{alarm_type_value}};{{ alarm_type_lock_actions[alarm_type_value] }};{{usercode_value}} {% elif alarm_type_value in alarm_type_general_actions %} {{alarm_type_value}};{{ alarm_type_general_actions[alarm_type_value] }} {% else %} {{-1}};Unknown Alarm Type Value {{ states(AC) }} {% endif %} {% else %} {% endif %} “)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 306, in async_render_to_info
render_info._result = self.async_render(variables, **kwargs)
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 285, in async_render
return compiled.render(kwargs).strip()
File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 1090, in render
self.environment.handle_exception()
File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File “/usr/local/lib/python3.8/site-packages/jinja2/_compat.py”, line 28, in reraise
raise value.with_traceback(tb)
File “”, line 2, in top-level template code
File “/usr/local/lib/python3.8/site-packages/jinja2/sandbox.py”, line 407, in getattr
value = getattr(obj, attribute)
File “/usr/src/homeassistant/homeassistant/helpers/template.py”, line 415, in getattr
raise TemplateError(f"Invalid domain name ‘{name}’”)
homeassistant.exceptions.TemplateError: str: Invalid domain name ‘UC’

Are you using zwave or ozw?

Thank you. I did enable the other items and I was able to select the User Code and Access Control Sensors. Once I selected those and selected binary_sensor.updater as the Door Sensor, it allowed it to be added. I was able to add it to the lovelace card. The issue I am having now is adding the code. I get some errors when I check the config.

2020-09-27 16:10:36 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for lock-manager which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-09-27 16:10:36 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-09-27 16:10:53 ERROR (MainThread) [custom_components.hacs.factory] custom-components/sensor.kodi_recently_added - Repository is archived.
2020-09-27 16:20:26 ERROR (SyncWorker_20) [homeassistant.util.yaml.loader] while parsing a block mapping
  in "/config/configuration.yaml", line 3, column 1
expected <block end>, but found '<block mapping start>'
  in "/config/configuration.yaml", line 26, column 5
2020-09-27 16:20:26 ERROR (MainThread) [homeassistant.components.hassio] Error loading /config/configuration.yaml: while parsing a block mapping
  in "/config/configuration.yaml", line 3, column 1
expected <block end>, but found '<block mapping start>'
  in "/config/configuration.yaml", line 26, column 5
2020-09-27 16:23:43 WARNING (SyncWorker_45) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "system_ready". Check lines 17 and 25

This is my configuration.yaml.

The next section of script I just copied and pasted into my automations.yaml and the last section I copied and pasted into my scripts.yaml.

Edited to add errors

1 Like

yes it does but cant get it to work I am trying everything and nothing is working.

I’m using zwave.

What is the value of allow automation execution? What version of HA?

Does your code pass the yaml check?

I have run the scripts, automations, and configuration.yaml through multiple yaml checkers and they all say the yaml is correct.

This is the error that shows up when I click the Check Configuration button.

Component error: input_booleans - Integration ‘input_booleans’ not found.
Invalid config for [binary_sensor]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 22).

This is my configuration.yaml

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

input_booleans:
  allow_automation_execution:
    name: 'Allow Automation'
    initial: off

  system_ready:
    name: 'System Ready'
    initial: off

binary_sensor:
  allow_automation:
    friendly_name: "Allow Automation"
    value_template: "{{ is_state('input_boolean.allow_automation_execution', 'on') }}"

  system_ready:
    friendly_name: "System ready"
    value_template: "{{ is_state('input_boolean.system_ready', 'on') }}"
    device_class: moving

@FutureTense Running HA 0.115.3 on RPI. Not sure what “value of allow automation execution” is. Passes yaml check.

This isn’t valid. You’re missing - platform: template

binary_sensor:
  - platform: template
    sensors:
      allow_automation:
        friendly_name: "Allow Automation"
        value_template: "{{ is_state('input_boolean.allow_automation_execution', 'on') }}"

      system_ready:
        friendly_name: "System ready"
        value_template: "{{ is_state('input_boolean.system_ready', 'on') }}"
        device_class: moving