Nesse vídeo, eu mostro como você pode utilizar todos os status das Fechaduras Yale YRD226, YRD256, YMF40 e YDF40 para integrar em suas automações do dia a dia.
1. Fechadura YALE
- Fechadura Digital Yale YRD256 – https://amzn.to/3y7NlAy (Rolete) / https://amzn.to/3pEBANn (Lingueta)
- Fechadura Digital Yale YRD226 – https://amzn.to/3o9gjuX (Rolete) / https://amzn.to/3sYp8c7 (Lingueta)
- Fechadura Digital Yale YMF40 – https://amzn.to/2ROyQRu
- Fechadura Digital Yale YDF40 – https://amzn.to/3tyKMnq (Rolete) / https://amzn.to/2R4xSR4 (Lingueta)
- Módulo Zigbee para Fechaduras Yale YRD256 e YRD226 – https://amzn.to/3ckjcpa
- Módulo Zigbee para Fechaduras Yale YMF40 e YDF40 – https://amzn.to/3uyZLz3
2. Zigbee2mqtt: https://youtu.be/KG4RCz_P1wI
- Adaptador Zigbee2mqtt – https://bit.ly/3uf4YLX
3. Node-Red: https://youtu.be/7TugenJP9K0
4. Nós para importação
- Trancar/Destrancar via botão de ação ou interruptor de cenas
[{"id":"d6d96d4f.80b04","type":"switch","z":"6824df5d.1990d","name":"Ação Botão","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"hold","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":310,"y":1820,"wires":[["8180c6e0.3fd088"],["89dc1862.420fe8"],[]]},{"id":"38b97407.0b84ec","type":"server-state-changed","z":"6824df5d.1990d","name":"Botão de Ação","server":"27f1aa3c.860de6","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.botao_samsung_click","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":120,"y":1820,"wires":[["d6d96d4f.80b04"]]},{"id":"8180c6e0.3fd088","type":"api-call-service","z":"6824df5d.1990d","name":"Tranca YMF40 YRD226","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"lock","service":"lock","entityId":"lock.ymf40, lock.yrd226","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":530,"y":1780,"wires":[[]]},{"id":"89dc1862.420fe8","type":"api-call-service","z":"6824df5d.1990d","name":"Destranca YMF40 YRD226","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"lock","service":"unlock","entityId":"lock.ymf40, lock.yrd226","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":1860,"wires":[[]]},{"id":"27f1aa3c.860de6","type":"server","name":"HA","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
- Fechadura YRD226
[{"id":"686b3f01.ccd41","type":"mqtt in","z":"cab51100.3b457","name":"YRD226","topic":"zigbee2mqtt/YRD226","qos":"2","datatype":"json","broker":"638dc60d.a3ff88","nl":false,"rap":true,"rh":0,"x":80,"y":180,"wires":[["77b174c1.178ecc"]]},{"id":"77b174c1.178ecc","type":"switch","z":"cab51100.3b457","name":"Fonte","property":"payload.action_source","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":230,"y":180,"wires":[["6e1240e1.49c7d"],["1d32a7a4.2c6168"],["2c90bfed.c4866"]]},{"id":"6e1240e1.49c7d","type":"switch","z":"cab51100.3b457","name":"Usuário","property":"payload.action_user","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":380,"y":80,"wires":[["806391e.609947"],["6315e92b.d38c58"]]},{"id":"806391e.609947","type":"api-call-service","z":"cab51100.3b457","name":"Usuario 1234","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Usuario 1 2 3 4 destrancou a porta\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":550,"y":40,"wires":[[]]},{"id":"6315e92b.d38c58","type":"api-call-service","z":"cab51100.3b457","name":"Usuario 4321","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Usuario 4 3 2 1 destrancou a porta\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":550,"y":100,"wires":[[]]},{"id":"1d32a7a4.2c6168","type":"switch","z":"cab51100.3b457","name":"Lock / Unlock","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"lock","vt":"str"},{"t":"eq","v":"unlock","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":400,"y":180,"wires":[["a546e0fd.c6ed"],["d90b8cf.68e587"]]},{"id":"a546e0fd.c6ed","type":"api-call-service","z":"cab51100.3b457","name":"Trancada HA","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada via Home Assistant\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":610,"y":160,"wires":[[]]},{"id":"d90b8cf.68e587","type":"api-call-service","z":"cab51100.3b457","name":"Destrancada HA","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Destrancada via Home Assistant\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":200,"wires":[[]]},{"id":"2c90bfed.c4866","type":"switch","z":"cab51100.3b457","name":"Manual / Auto","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"auto_lock","vt":"str"},{"t":"eq","v":"one_touch_lock","vt":"str"},{"t":"eq","v":"manual_unlock","vt":"str"},{"t":"eq","v":"manual_lock","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":400,"y":340,"wires":[["82416542.f3e6f8"],["51a7f299.146d0c"],["22daf7c1.f8c578"],["340daca9.893c54"]]},{"id":"82416542.f3e6f8","type":"api-call-service","z":"cab51100.3b457","name":"Bloqueio Automatico","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada automaticamente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":640,"y":280,"wires":[[]]},{"id":"51a7f299.146d0c","type":"api-call-service","z":"cab51100.3b457","name":"Manual","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada manualmente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":600,"y":320,"wires":[[]]},{"id":"340daca9.893c54","type":"api-call-service","z":"cab51100.3b457","name":"Manual Lock","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada manualmente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":610,"y":400,"wires":[[]]},{"id":"22daf7c1.f8c578","type":"api-call-service","z":"cab51100.3b457","name":"Manual Unlock","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Destrancada manualmente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":360,"wires":[[]]},{"id":"34dc06f9.c7ecaa","type":"comment","z":"cab51100.3b457","name":"As vezes falha","info":"","x":760,"y":320,"wires":[]},{"id":"638dc60d.a3ff88","type":"mqtt-broker","name":"MQTT HA","broker":"192.168.40.200","port":"1883","clientid":"","usetls":false,"compatmode":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"27f1aa3c.860de6","type":"server","name":"HA","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
- Fechadura YMF40
Atenção: Caso a função de digital não funcione, aconselho que faça o pareamento novamente e teste. Percebi que é comum acontecer isso.
[{"id":"5eb7bb78.c9cc94","type":"mqtt in","z":"cab51100.3b457","name":"YMF40","topic":"zigbee2mqtt/YMF40","qos":"0","datatype":"json","broker":"638dc60d.a3ff88","nl":false,"rap":false,"x":70,"y":720,"wires":[["b545879f.594408"]]},{"id":"b545879f.594408","type":"switch","z":"cab51100.3b457","name":"Fonte","property":"payload.action_source","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"4","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":210,"y":720,"wires":[["769126ae.695068"],["b4ec35ce.f09938"],["b9795325.63043"],["61b1197f.10f008"]]},{"id":"769126ae.695068","type":"switch","z":"cab51100.3b457","name":"Usuários - Senhas","property":"payload.action_user","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":410,"y":520,"wires":[["2284d648.9f2c9a"],["75679243.6f29bc"]]},{"id":"2284d648.9f2c9a","type":"api-call-service","z":"cab51100.3b457","name":"Usuario 654321","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Usuario 1 destrancou a porta\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":640,"y":480,"wires":[[]]},{"id":"75679243.6f29bc","type":"api-call-service","z":"cab51100.3b457","name":"Usuario 321654","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Usuario 2 destrancou a porta\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":640,"y":540,"wires":[[]]},{"id":"b4ec35ce.f09938","type":"switch","z":"cab51100.3b457","name":"Lock / Unlock HA","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"lock","vt":"str"},{"t":"eq","v":"unlock","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":410,"y":620,"wires":[["47fe053d.8ace8c"],["89f9aea4.6d644"]]},{"id":"b9795325.63043","type":"switch","z":"cab51100.3b457","name":"Auto Lock / Unlock","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"auto_lock","vt":"str"},{"t":"eq","v":"unlock","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":410,"y":740,"wires":[["c98d412.dd3bac"],["4daf9858.a09598"]]},{"id":"c98d412.dd3bac","type":"api-call-service","z":"cab51100.3b457","name":"Bloqueio Automatico","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada automaticamente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":660,"y":740,"wires":[[]]},{"id":"4daf9858.a09598","type":"api-call-service","z":"cab51100.3b457","name":"Manual / Chaves","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Destrancada manualmente\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":650,"y":800,"wires":[[]]},{"id":"61b1197f.10f008","type":"switch","z":"cab51100.3b457","name":"Usuários - Digital","property":"payload.action_user","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":900,"wires":[["934cc36e.ddc3"]]},{"id":"934cc36e.ddc3","type":"api-call-service","z":"cab51100.3b457","name":"Usuário 1 Digital","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Usuário destrancou por digital\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":640,"y":900,"wires":[[]]},{"id":"47fe053d.8ace8c","type":"api-call-service","z":"cab51100.3b457","name":"Trancada HA - Alexa","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"","data":"{\"data\":{\"type\":\"announce\",\"method\":\"all\"},\"title\":\"TESTE ALEXA\",\"message\":\"Trancada via home assistant!\",\"target\":[\"media_player.echo_4\"]}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":660,"y":600,"wires":[[]]},{"id":"89f9aea4.6d644","type":"api-call-service","z":"cab51100.3b457","name":"Destrancada HA - Alexa","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media","entityId":"","data":"{\"data\":{\"type\":\"announce\",\"method\":\"all\"},\"title\":\"TESTE ALEXA\",\"message\":\"Destrancada via home assistant!\",\"target\":[\"media_player.echo_4\"]}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":670,"y":660,"wires":[[]]},{"id":"f9bde7b2.179478","type":"comment","z":"cab51100.3b457","name":"ou","info":"","x":830,"y":600,"wires":[]},{"id":"f7cf23ae.f36b9","type":"comment","z":"cab51100.3b457","name":"ou","info":"","x":850,"y":660,"wires":[]},{"id":"8d90e58a.a0b0d8","type":"api-call-service","z":"cab51100.3b457","name":"Destrancada HA - Google","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Destrancada via Sistema\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":660,"wires":[[]]},{"id":"fc6bd4df.c59b68","type":"api-call-service","z":"cab51100.3b457","name":"Trancada HA - Google","server":"27f1aa3c.860de6","version":1,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.googlenestpointb041","data":"{\"message\":\"Trancada via Sistema\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1000,"y":600,"wires":[[]]},{"id":"638dc60d.a3ff88","type":"mqtt-broker","name":"MQTT HA","broker":"192.168.40.200","port":"1883","clientid":"","usetls":false,"compatmode":false,"protocolVersion":"5","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"27f1aa3c.860de6","type":"server","name":"HA","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]