Build your own lock sensor

preview_player
Показать описание
In this video I will show you how to convert a door/window sensor into a lock sensor, also how to change the device class of the sensor and lastly how to combine the lock sensor with a door sensor into one sensor in Home Assistant.

0:00 Intro
0:36 Prerequisites
1:26 Building the lock sensor and installation
5:39 Home Assistant Setup: Lock sensor
6:23 Home Assistant Setup: Combine Door and Lock sensor into one sensor
7:30 The result
8:01 Outro
Рекомендации по теме
Комментарии
Автор

Thanks for making this video! It was exactly what i was looking for. I was able to put my sensor into the wall (we have sheetrock) and everything is completely hidden.

nonamemcgee
Автор

I love this simple idea. This could be really handy for any kind of door. The only issue I see is that it does not look good as is. There would be the need to hide it better. I will make up my mind about this and might post a video myself in case I came to a conclusion

the_smart_home_maker
Автор

Great job! Especially with combining them! Subbed

Roedy_Coedy
Автор

Great video and great function, thank you so much!

pungas
Автор

Sweet. Is this a sliding glass door you are attaching to?

jerrychambers
Автор

### configuration.yaml ###

sensor:
## Garage Door ##
- platform: template
sensors:
garage_door:
friendly_name: "Garage door"
value_template: >-
{% if is_state("binary_sensor.garage_door", "on") -%}
Open
{% elif is_state("binary_sensor.garage_door", "off") and is_state("binary_sensor.garage_door_lock", "off") %}
Locked
{%- else -%}
Closed
{%- endif %}
icon_template: >-
{% if is_state("binary_sensor.garage_door", "on") -%}
mdi:door-open
{% elif is_state("binary_sensor.garage_doorr", "off") and is_state("binary_sensor.garage_door_lock", "off") %}
mdi:door-closed-lock
{% else %}
mdi:door-closed
{% endif %}

markussmarthometech
Автор

If you do not remove the reed contact on the lock sensor it can bee trick with a big magnet

sekt