Monoprice recessed door/window sensor #1562

Does anyone have this device? I was able to include it and was wondering what the various sensors are for and how to use them. The documentation is a tad shoddy.

The zwave device itself shows as zwave.vision_zd2105us_5_recessed_door_window_sensor

And then 6 sensors appear in HA:

sensor.vision_zd2105us_5_recessed_door_window_sensor_access_control

sensor.vision_zd2105us_5_recessed_door_window_sensor_burglar

sensor.vision_zd2105us_5_recessed_door_window_sensor_power_management

sensor.vision_zd2105us_5_recessed_door_window_sensor_emergency

sensor.vision_zd2105us_5_recessed_door_window_sensor_alarm_type

sensor.vision_zd2105us_5_recessed_door_window_sensor_alarm_level

I’m interested in figuring out what each of the sensors are for. The access control changes from 23 to 22 and the alarm level changes from 0 to 255 when the door is open (magnet conntact is not closed).

Here is a package I use for my contact sensors:

mudroom_door_sensor:

  sensor:
    - platform: template
      sensors:
        mudroom_door_sensor_battery:
          friendly_name: "Mudroom Door Sensor Battery"
          value_template: "{% if states.zwave.mudroom_door_sensor %}
              {{ states.zwave.mudroom_door_sensor.attributes.battery_level }}
            {% else %}
              unknown
            {% endif %}"
          unit_of_measurement: '%'
          # entity_id: zwave.mudroom_door_sensor
          icon_template: >-
            {% set battery_level = states('sensor.mudroom_door_sensor_battery')|int('unknown') %}
            {% set battery_round = (battery_level|int / 10)|int * 10 %}
            {% if battery_level == 'unknown' %}
              mdi:battery-unknown
            {% else %}
              {% if battery_round >= 100 %}
                mdi:battery
              {% elif battery_round > 0 %}
                mdi:battery-{{ battery_round }}
              {% else %}
                mdi:battery-alert
              {% endif %}
            {% endif %}

  binary_sensor:
    - platform: template
      sensors:
        mudroom_door_sensor_contact:
          value_template: "{{ is_state('sensor.mudroom_door_sensor_access_control', '22') }}"
          friendly_name: "Mudroom Door"
          device_class: door
          # entity_id: sensor.mudroom_door_sensor_access_control

        mudroom_door_sensor_tamper:
          value_template: "{{ is_state('sensor.mudroom_door_sensor_burglar', '3') }}"
          friendly_name: "Mudroom Door Sensor Tamper"
          device_class: safety
          # entity_id: sensor.mudroom_door_sensor_burglar

  homeassistant:
    customize:

      sensor.mudroom_door_sensor_access_control:
        hidden: true
      sensor.mudroom_door_sensor_alarm_level:
        hidden: true
      sensor.mudroom_door_sensor_alarm_type:
        hidden: true
      sensor.mudroom_door_sensor_burglar:
        hidden: true
      sensor.mudroom_door_sensor_clock:
        hidden: true
      sensor.mudroom_door_sensor_sourcenodeid:
        hidden: true
      binary_sensor.mudroom_door_sensor_sensor:
        hidden: true
      sensor.mudroom_door_sensor_system:
        hidden: true
      sensor.mudroom_door_sensor_emergency:
        hidden: true
      sensor.mudroom_door_sensor_power_management:
        hidden: true
      sensor.mudroom_door_sensor_homehealth:
        hidden: true        
  group:
    mudroom_door_sensor:
      name: Mudroom Door Sensor
      control: hidden
      entities:
        - binary_sensor.mudroom_door_sensor_contact
        - binary_sensor.mudroom_door_sensor_tamper
        - sensor.mudroom_door_sensor_battery

2 Likes

Very clean. I’ll give it a go

That worked like a charm! I just renamed my devices using your format and it worked the first time. Well done sir!

1 Like