KeyMaster Z-Wave lock manager and scheduler

First this https://github.com/FutureTense/lock-manager/wiki/Pre-Installation-Steps-(IMPORTANT)

If you didn’t do this first step, that’s the cause of your errors, if you do have this done then:
Did you restart Home Assistant?

Is that going to conflic with what I have in there?

Already?

image

homeassistant:
  latitude: !secret latitude_home
  longitude: !secret longitude_home
  elevation: !secret longitude_home
  unit_system: imperial
  time_zone: America/Los_Angeles
  packages:
    pack_1: !include_dir_merge_named packages
  customize: !include customize.yaml

Depending on the contents of the other files, you may have to restructure them.

Basically they all follow similar things to these two.

iRobot Setup “Vacuum”

https://pastebin.ubuntu.com/p/hHN9Sc97vr/

Rectec

https://pastebin.ubuntu.com/p/BGZDBWZTjf/

Please don’t post pictures of text.

You should be fine altering the configuration as outlined in the wiki.

Sorry about that. (fixed)

No worries, it’s just REALLY hard to read text in images :stuck_out_tongue:

You should be fine with what I see from the snips of code there.

1 Like

Cleaned up configuration.yaml to include packges in a cleaner manner

https://github.com/FutureTense/lock-manager/wiki/Pre-Installation-Steps-(IMPORTANT)

 packages: !include_dir_named packages

Cleaned up folder structure to put each [package_name].yaml file in it’s own directory

image

And all is right with the world

1 Like

Just adding the corrected OZW yaml

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

  system_ready:
    name: 'System Ready'
    initial: off

binary_sensor:
  - platform: mqtt
    name: ozw_network_status
    state_topic: OpenZWave/1/status/
    value_template: >
      {{ "ON" if value_json.Status in ["driverAwakeNodesQueried", "driverAllNodesQueriedSomeDead", "driverAllNodesQueried"] else "OFF" }}
    json_attributes_topic: OpenZWave/1/status/
    device_class: "connectivity"

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

automation:
  - alias: open_zwave_network_down
    initial_state: true
    trigger:
      - platform: state
        entity_id: binary_sensor.ozw_network_status
        to: "off"
    action:
      - service: homeassistant.turn_off
        entity_id: input_boolean.allow_automation_execution

  - alias: open_zwave_network_up
    initial_state: true
    trigger:
      - platform: homeassistant
        event: start
      - platform: state
        entity_id: binary_sensor.ozw_network_status
        to: "on"
    condition:
      - condition: state
        entity_id: binary_sensor.ozw_network_status
        state: "on"
    action:
      - service: homeassistant.turn_on
        entity_id: input_boolean.allow_automation_execution
1 Like

Thanks I’ll get it updated :slight_smile:

Still not having much lock. Just getting a lot of these for both slots:

2020-10-26 17:15:50 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_1 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_1'

I am using 6-digit pins if that makes any difference.

If you could follow the directions on https://github.com/FutureTense/lock-manager/wiki/Troubleshooting#enable-debugging and post your logs with the debugging on that’d be super helpful :slight_smile: feel free to redact any lock codes that might show up in the logs.

Feel free to open an issue on github as well if you like, easier to track.

I think I got the logs. Home Assistant is pretty new to me.

2020-10-26 19:04:31 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=logger, service=set_default_level, service_data=level=error>
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_TYPE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_LEVEL value: **********
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_POWER value: **********
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ILLUMINANCE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_POWER value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_HUMIDITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VELOCITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DIRECTION value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ATMOSPHERIC_PRESSURE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_ACCESS_CONTROL value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOLAR_RADIATION value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DEW_POINT value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_RAIN_RATE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TIDE_LEVEL value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WEIGHT value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VOLTAGE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CURRENT value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CARBON_DIOXIDE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_AIR_FLOW value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TANK_CAPACITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DISTANCE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ANGLE_POSITION value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ROTATION value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WATER_TEMPERATURE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOIL_TEMPERATURE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_INTENSITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_MAGNITUDE value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ULTRAVIOLET value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_RESISTIVITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_CONDUCTIVITY value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_LOUDNESS value: 
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.UNKNOWN value: False
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.CLEAR_USER_CODE value: 0
2020-10-26 19:04:55 DEBUG (SyncWorker_22) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_RESET value: 30
2020-10-26 19:04:55 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_2 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_2'
2020-10-26 19:04:55 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_1 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_1'
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_TYPE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_LEVEL value: **********
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_POWER value: **********
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ILLUMINANCE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_POWER value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_HUMIDITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VELOCITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DIRECTION value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ATMOSPHERIC_PRESSURE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_ACCESS_CONTROL value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOLAR_RADIATION value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DEW_POINT value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_RAIN_RATE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TIDE_LEVEL value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WEIGHT value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VOLTAGE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CURRENT value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CARBON_DIOXIDE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_AIR_FLOW value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TANK_CAPACITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DISTANCE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ANGLE_POSITION value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ROTATION value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WATER_TEMPERATURE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOIL_TEMPERATURE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_INTENSITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_MAGNITUDE value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ULTRAVIOLET value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_RESISTIVITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_CONDUCTIVITY value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_LOUDNESS value: 
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.UNKNOWN value: False
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.CLEAR_USER_CODE value: 0
2020-10-26 19:05:25 DEBUG (SyncWorker_8) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_RESET value: 30
2020-10-26 19:05:25 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_2 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_2'
2020-10-26 19:05:25 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_1 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_1'
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_TYPE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_LEVEL value: **********
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_POWER value: **********
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: Ignoring code slot with * in value.
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ILLUMINANCE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_POWER value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_HUMIDITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VELOCITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DIRECTION value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ATMOSPHERIC_PRESSURE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.ALARM_ACCESS_CONTROL value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOLAR_RADIATION value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DEW_POINT value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_RAIN_RATE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TIDE_LEVEL value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WEIGHT value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_VOLTAGE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CURRENT value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_CARBON_DIOXIDE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_AIR_FLOW value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_TANK_CAPACITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_DISTANCE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ANGLE_POSITION value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ROTATION value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_WATER_TEMPERATURE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SOIL_TEMPERATURE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_INTENSITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_SEISMIC_MAGNITUDE value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ULTRAVIOLET value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_RESISTIVITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_ELECTRICAL_CONDUCTIVITY value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.SENSOR_MULTILEVEL_LOUDNESS value: 
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.UNKNOWN value: False
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.CLEAR_USER_CODE value: 0
2020-10-26 19:05:55 DEBUG (SyncWorker_39) [custom_components.lock-manager.sensor] DEBUG: code_slot_ValueIndex.METER_RESET value: 30
2020-10-26 19:05:55 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_2 fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
    await self.hass.async_add_executor_job(self.update)  # type: ignore
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_2'
2020-10-26 19:05:55 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.frontinner_code_slot_1 fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/lock-manager/sensor.py", line 167, in update
    self._state = self.data._data[self._name]
KeyError: 'code_slot_1'

I also noticed in the Troubleshooting section, there is mention of Alarm Type or Alarm Level. I don’t see either of these sensors on my locks (BE469 Touchscreen Deadbolt).

Your lock has User Code and Access Control, don’t worry about the alarm stuff. :wink:

I see why the sensor is failing to update, you can ignore the error, it’s due to the slot being populated with stars right now. If you set the code via HA it should get picked up and refresh the sensor properly.

I’ll add handling to stop the error messages .

Sorry for the dumb question. When you say, set the code via HA, what exactly do you mean. Is there a mechanism outside of lock-manager?

Meant when you setup the code in the PIN and Name fields in lock-manager

Okay. That is what I have been trying to do. The PIN never gets synced. I have entered PIN for both codes in Lovelace. No joy.

is the allow_automation boolean turned on?
You can check it in dev-tools->States

I’ve confirmed it has a state of “on”.

Are there any other errors besides the code slot error showing up when you attempt to set a code?