{"id":8336,"date":"2024-09-24T10:27:32","date_gmt":"2024-09-24T01:27:32","guid":{"rendered":"https:\/\/hasu0707.duckdns.org\/blog\/?p=8336"},"modified":"2024-09-24T10:27:32","modified_gmt":"2024-09-24T01:27:32","slug":"home-assistant-%ec%9e%90%eb%8f%99%ed%99%94-%ea%b5%ac%ec%84%b1%ec%97%90-%eb%8c%80%ed%95%9c-%ea%b0%9c%eb%85%90","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=8336","title":{"rendered":"Home Assistant \uc790\ub3d9\ud654 \uad6c\uc131\uc5d0 \ub300\ud55c \uac1c\ub150"},"content":{"rendered":"\n<span style=\"font-family: \ub3cb\uc6c0\uccb4, \uad74\ub9bc\uccb4, \ub098\ub214\uace0\ub515\ucf54\ub529, \uad81\uc11c\uccb4; font-size: 12pt;\">Home Assistant \uc790\ub3d9\ud654 \uad6c\uc131\uc5d0 \ub300\ud55c \uac1c\ub150<br \/>\ucd9c\ucc98: <a href=\"https:\/\/rayblog.tistory.com\/168\" target=\"_blank\" rel=\"noopener\">https:\/\/rayblog.tistory.com\/168<\/a><br \/>\ucc38\uace0: <a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/docs\/automation\/<\/a><br \/><br \/>1. \uc790\ub3d9\ud654(\uc624\ud1a0\uba54\uc774\uc158) \uc774\ub780?<br \/>&nbsp; \uc790\ub3d9\ud654\ub780, \uae00\uc790 \uadf8\ub300\ub85c \ud2b9\uc815 \ub3d9\uc791\uc744 \uc0ac\ub78c\uc774 \uc2e4\ud589\ud558\uc9c0 \uc54a\uace0 \uc790\uccb4\uc801\uc73c\ub85c \uc2e4\ud589\ud560 \uc218 \uc788\uac8c \ub9cc\ub4dc\ub294\uac83 \uc785\ub2c8\ub2e4.<br \/>&nbsp; \uc790\ub3d9\ud654\uac00 \uc5b4\ub824\uc6b4\uac83 \uac19\uc9c0\ub9cc, \uc800\ud76c\ub294 \uc2e4\uc81c\ub85c \uc774\ubbf8 \uad6c\uc131\ub41c \uc790\ub3d9\ud654\ub97c \uc2e4\uc0dd\ud65c\uc5d0\uc11c \ub9ce\uc774 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; \uc81c \uc0dd\uac01\uc5d0 \uac00\uc7a5 \uc27d\uac8c \uc811\ud560 \uc218 \uc788\uace0 \uc0ac\uc6a9\ud558\uace0 \uc788\ub294 \uc790\ub3d9\ud654\ub294, \uc13c\uc11c\ub4f1\uc778\uac83 \uac19\uc2b5\ub2c8\ub2e4.<br \/><br \/>&nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88\uc774 \ucf1c\uc9c4\ub2e4.&rarr;xx\ucd08 \ud6c4 \ubd88\uc774 \uaebc\uc9c4\ub2e4<br \/><br \/>&nbsp; \uc774 \ub2e8\uc21c\ud55c\uac83\uc73c\ub85c \uc0ac\ub78c\ub4e4\uc740 \ub9ce\uc774 \ud3b8\ub9ac\ud574\uc9c0\uace0, \uc0c1\uc2dc \uac00\ub3d9\uc774 \uc544\ub2c8\ub77c\uc11c \uc5d0\ub108\uc9c0\ub3c4 \uc808\uc57d\ub418\uace0, \ubc24\uc5d0 \uc6c0\uc9c1\uc774\uae30\ub3c4 \uc548\uc804\ud574\uc9c0\uc8e0.<br \/>&nbsp; \uc5ec\uae30\uc5d0 \uc57d\uac04\uc758 \ubcc0\uc218\ub97c \ucca8\uac00\ud558\uba74, \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<br \/><br \/>&nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88\uc774 \ucf1c\uc9c4\ub2e4.(\ub2e8, \uc8fc\ubcc0\uc758 \ubc1d\uae30\uac00 \uc77c\uc815 \uc218\uc900 \uc774\ud558\uc77c\ub54c\ub9cc)&rarr;xx\ucd08 \ud6c4 \ubd88\uc774 \uaebc\uc9c4\ub2e4<br \/><br \/>&nbsp; \uc694\uc998 \ub098\uc624\ub294 \ub300\ubd80\ubd84\uc758 \uc13c\uc11c\ub4f1\uc740 \uc704 \uc870\uac74\uc774 \uc790\ub3d9\uc73c\ub85c \uc785\ub825\ub41c \uc0c1\ud0dc\ub85c \ucd9c\uace0\ub429\ub2c8\ub2e4.<br \/>&nbsp; \uc5ec\uae30\uc5d0 \uc77c\ubd80 \uc13c\uc11c\ub4f1\uc740 xx\ucd08\ub97c \uc870\uc808\ud560 \uc218 \uc788\uc5b4\uc11c \ud2b9\uc815 \uc2dc\uac04\ub3d9\uc548 \ubd88\uc744 \ucf1c\ub458\uc218\ub3c4 \uc788\uc9c0\uc694.<br \/><br \/><br \/>&nbsp; \uc2a4\ub9c8\ud2b8\ud3f0\uc744 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; \ub2e4\ub978\uc77c \ub54c\ubb38\uc5d0 \uc7a0\uc2dc \uc2a4\ub9c8\ud2b8\ud3f0\uc744 \ub194\ub450\uba74, \uc77c\uc815 \uc2dc\uac04 \uc774\ud6c4\uc5d0 \ud654\uba74\uc774 \uaebc\uc9c0\uc8e0(\uae30\ubcf8 \uc124\uc815\uc0c1\ud0dc\ub77c\uba74)<br \/><br \/>&nbsp; \uc774\uac83\ub3c4 xx\ucd08 \ub3d9\uc548 \ub3d9\uc791\uc774 \uc5c6\uc73c\uba74 &rarr; \ud654\uba74\uc744 \uaebc\ub77c(\uc7a0\uad88\ub77c)<br \/><br \/>&nbsp; \uc5ec\uae30\uc5d0 \ucda9\uc804\uc911 \uc2dc\uacc4\ubaa8\ub4dc \uc124\uc815\ub4f1\uc744 \ud574\ub450\uba74<br \/><br \/>&nbsp; xx\ucd08 \ub3d9\uc548 \ub3d9\uc791\uc774 \uc5c6\uc73c\uba74&rarr;\ud654\uba74\uc744 \uaebc\ub77c(\ub2e4\ub9cc \ucda9\uc804\uc911\uc778\uacbd\uc6b0, \uc2dc\uacc4\ubaa8\ub4dc \uc124\uc815 \ud6c4 \ud654\uba74\uc744 \uacc4\uc18d \ucf1c\ub460)<br \/><br \/>&nbsp; \ubcc4\uac70 \uc544\ub2cc\uac70 \uac19\uc8e0? \ud558\uc9c0\ub9cc \uc774\ub807\ub4ef \uc6b0\ub9ac\ub294 \uc2e4\uc0dd\ud65c\uc5d0\uc11c \uc774\ubbf8 \uc790\ub3d9\ud654\uc5d0 \uc775\uc219\ud574\uc838 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; \uc790\ub3d9\ud654, \uc5b4\ub835\uc9c0 \uc54a\uc8e0? \ubcc4\uac70 \uc544\ub2c8\uaca0\uc8e0? \uc790 \uadf8\ub7ec\ub2c8\uae4c \ud55c\ubc88 \uacf5\ubd80\ud574 \ubd05\uc2dc\ub2e4~<br \/>&nbsp; (\uc0ac\uc2e4 \ub4dc\ub7fd\uac8c \uc5b4\ub824\uc6cc\uc694........\uc544\ub2c8 \ubb54 \ubcc0\uc218\uac00 \uc774\ub807\uac8c \ub9ce\uc544...!)<br \/><br \/><br \/><br \/>2. \uc790\ub3d9\ud654\ub97c \uc704\ud55c \uae30\ubcf8 \uc870\uac74<br \/><br \/>&nbsp; \uc790\ub3d9\ud654\ub294 \uae30\ubcf8\uc801\uc73c\ub85c 2\uac00\uc9c0\ub85c \uc774\ub8e8\uc5b4 \uc9d1\ub2c8\ub2e4.<br \/>&nbsp; xx \ud558\uba74&rarr;yy \ud574\ub77c<br \/>&nbsp; \uc5ec\uae30\uc11c xx\ub294 \ud2b8\ub9ac\uac70, yy\ub294 \uc561\uc158 \uc774\ub77c\uace0 \ubd88\ub9bd\ub2c8\ub2e4.<br \/>&nbsp; \uc870\uae08 \ub354 \ucd94\uac00\ud558\uba74, 3\uac00\uc9c0\ub85c \uc774\ub8e8\uc5b4 \uc9d1\ub2c8\ub2e4.<br \/>&nbsp; xx \ud558\uba74(\ub2e8, zz\ud560\ub54c) &rarr;yy \ud574\ub77c<br \/>&nbsp; \ub9c8\ucc2c\uac00\uc9c0\ub85c xx\ub294 \ud2b8\ub9ac\uac70, yy\ub294 \uc561\uc158\uc774\uace0... \uc911\uac04\uc5d0 \uc788\ub294 zz\ub294 \ucee8\ub514\uc158 \uc774\ub77c\uace0 \ubd88\ub9bd\ub2c8\ub2e4.<br \/><br \/>&nbsp; &nbsp; 1. \ud544\uc218 - \uc790\ub3d9\ud654\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\ub294 \ud2b8\ub9ac\uac70(\ubc29\uc544\uc1e0) - or\uac12\uc73c\ub85c \ub3d9\uc791\ud569\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; <a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/trigger\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/docs\/automation\/trigger\/<\/a><br \/>&nbsp; &nbsp; &nbsp; \uc790\ub3d9\ud654\ub780, \ud2b9\uc815 \uc0c1\ud669\uc5d0\uc11c \ud2b9\uc815 \ub3d9\uc791\uc744 \uc2e4\ud589\ud558\ub294\uac8c \uae30\ubcf8\uc785\ub2c8\ub2e4. \uadf8 \ud2b9\uc815 \uc0c1\ud669\uc744 \uc778\uc9c0\ud558\uae30 \uc704\ud574\uc11c\ub294 \ud2b8\ub9ac\uac70\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88 \ucf20\ub2e4(\ub2e8, \uc8fc\ubcc0\uc758 \ubc1d\uae30\uac00 \uc77c\uc815 \uc218\uc900 \uc774\ud558\uc77c\ub54c\ub9cc)&rarr;xx\ucd08 \ud6c4 \ubd88 \uaebc\uc9d0<br \/>&nbsp; &nbsp; &nbsp; \uc704 \uc608\uc81c\uc5d0\uc11c\ub77c\uba74, \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub41c\ub2e4 \ub77c\ub294 \ud2b8\ub9ac\uac70\uac00 \uc788\ub294\uac70\uc8e0.<br \/><br \/>&nbsp; &nbsp; &nbsp; \ud2b8\ub9ac\uac70\ub294 \uc0c1\ud0dc\uac12\uc744 \ubd88\ub7ec\uc62c \uc218 \uc788\ub294 \uac70\uc758 \ubaa8\ub4e0\uac83\uc73c\ub85c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; sun \uc13c\uc11c \uc0ac\uc6a9\uc2dc, \uc77c\ucd9c \/ \uc77c\ubab0\uc744 \uae30\uc900\uc73c\ub85c \ud558\uc5ec \ud2b9\uc815 \uac01\ub3c4, \uc2dc\uac04\uc73c\ub85c \ud2b8\ub9ac\uac70 \uac00\ub2a5<br \/>&nbsp; &nbsp; &nbsp; time \uc13c\uc11c \uc0ac\uc6a9\uc2dc, \ud2b9\uc815 \uc2dc\uac04\uc73c\ub85c \ud2b8\ub9ac\uac70 \uac00\ub2a5<br \/>&nbsp; &nbsp; &nbsp; \ub3c4\uc5b4\uc13c\uc11c \uc0ac\uc6a9\uc2dc, \ubb38\uc5f4\ub9bc\uc2dc, \ubb38 \ub2eb\ud798\uc2dc \ub4f1 \uc0c1\ud0dc\ub85c \ud2b8\ub9ac\uac70 \uac00\ub2a5<br \/>&nbsp; &nbsp; &nbsp; \uc628\uc2b5\ub3c4 \uc13c\uc11c \uc0ac\uc6a9\uc2dc, \uc628\ub3c4\ub098 \uc2b5\ub3c4\ub4f1\uc5d0 \ub530\ub77c \ud2b8\ub9ac\uac70 \uac00\ub2a5<br \/><br \/>&nbsp; &nbsp; &nbsp; \ub4f1\ub4f1\ub4f1\ub4f1....\uc815\ub9d0 HA\uc5d0 \uc5f0\uacb0\ud558\uac70\ub098 \ubd88\ub7ec\uc62c \uc218 \uc788\ub294 \ub370\uc774\ud130 \ub300\ubd80\ubd84\uc740 \ud2b8\ub9ac\uac70\ub85c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/><br \/>&nbsp; &nbsp; 2. \ud544\uc218 - \uc790\ub3d9\ud654 \ud2b8\ub9ac\uac70 \ub3d9\uc791\uc2dc \uc2e4\ud589\ud560 \uc561\uc158<br \/>&nbsp; &nbsp; &nbsp; <a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/action\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/docs\/automation\/action\/<\/a><br \/>&nbsp; &nbsp; &nbsp; \ud2b8\ub9ac\uac70\ub85c \ud2b9\uc815 \uc0c1\ud669\uc744 \uc9c0\uc815\ud588\ub2e4\uba74 \uadf8\ub54c \uc2e4\ud589\ud560 \ub3d9\uc791\uc744 \uc9c0\uc815\ud574\uc57c\uaca0\uc8e0?<br \/>&nbsp; &nbsp; &nbsp; \uc0c1\ud0dc\uac12\uc744 \ubcc0\uacbd\ud558\uac70\ub098 \ud560 \uc218 \uc788\ub294 \ubaa8\ub4e0\uac8c \uc561\uc158\uc73c\ub85c \uc4f0\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88 \ucf20\ub2e4(\ub2e8, \uc8fc\ubcc0\uc758 \ubc1d\uae30\uac00 \uc77c\uc815 \uc218\uc900 \uc774\ud558\uc77c\ub54c\ub9cc)&rarr;xx\ucd08 \ud6c4 \ubd88 \uaebc\uc9d0<br \/><br \/>&nbsp; &nbsp; &nbsp; \uc704 \uc608\uc81c\uc5d0\uc120 \ubd88\uc744 \ucf1c\ub294\uac83\uacfc xx\ucd08 \uacbd\uacfc \ud6c4 \ubd88\uc774 \uaebc\uc9c0\ub294\uac8c \uc561\uc158\uc774 \ub429\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \ubd88 \ucf1c\uae30&rarr;xx\ucd08 \uacbd\uacfc \ud6c4 \ubd88 \ub044\uae30 \ub77c\ub294 1\uac1c\uc758 \uc561\uc158\uc77c\uc218\ub3c4 \uc788\uace0...<br \/>&nbsp; &nbsp; &nbsp; \ubd88 \ucf1c\uae30&rarr;xx\ucd08 \ub3d9\uc548 \uc6c0\uc9c1\uc784\uc774 \uc5c6\uc73c\uba74&rarr;\ubd88 \ub044\uae30 \ub77c\ub294 2\uac1c\uc758 \uc561\uc158 \uc77c\uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uc774\uac74 \uc13c\uc11c\ub4f1 \uc885\ub958\uc5d0 \ub530\ub77c \ub2e4\ub978\uac70\ub77c \uc870\uae08 \ub4a4\uc5d0 \uc598\uae30\ud560\uaed8\uc694~<br \/><br \/>&nbsp; &nbsp; &nbsp; \uc5ec\ud2bc, \uc561\uc158\ub3c4 \ub9c8\ucc2c\uac00\uc9c0\ub85c \uc0c1\ud0dc\uac12 \ubcc0\uacbd\uc774 \ub418\ub294 \uac70\uc758 \ub300\ubd80\ubd84\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \ubd88\uc744 \ucf20\ub2e4 \/ \ud50c\ub7ec\uadf8 \uc2a4\uc704\uce58\ub97c \ucf20\ub2e4 \/ IR\ub9ac\ubaa8\ud2b8\ub85c \uc2e0\ud638\ub97c \ubcf4\ub0b8\ub2e4 \/ \uad6c\uae00\ud648\uc5d0\uac8c TTS\ub97c \ub0a0\ub9b0\ub2e4 \/ \ub178\ud2f0\ub97c \ub0a0\ub9b0\ub2e4..<br \/>&nbsp; &nbsp; &nbsp; \uc8fc\ub85c \uc790\uc8fc \uc4f0\ub294 \uc790\ub3d9\ud654 \uc561\uc158\uc740 \uc774\uc815\ub3c4\uaca0\ub124\uc694. \uadf8 \uc678\uc5d0\ub3c4 \uc218\uc5c6\uc774 \ub9ce\uc2b5\ub2c8\ub2e4\ub9cc...<br \/>&nbsp; &nbsp; &nbsp; \uadf8\uac70 \ucc3e\uc544\uc57c\ud560 \uc815\ub3c4\uba74 \uc774\ubbf8 \uace0\uc218\ub77c \uc774\uae00 \uc548 \ubcf4\uc154\ub3c4 \ub418\uc694~<br \/><br \/><br \/>&nbsp; &nbsp; 3. \uc120\ud0dd - \ud2b8\ub9ac\uac70\uac00 \uc2e4\ud589\ub420 \uc870\uac74 \uc9c0\uc815(\ucee8\ub514\uc158) - and \uac12\uc73c\ub85c \ub3d9\uc791, or\uac12\uc73c\ub85c \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; <a href=\"https:\/\/www.home-assistant.io\/docs\/automation\/condition\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/docs\/automation\/condition\/<\/a><br \/>&nbsp; &nbsp; &nbsp; \uc790\ub3d9\ud654\ub77c\ub294\uac74, \ub9d0 \uadf8\ub300\ub85c \uc790\ub3d9\uc73c\ub85c \uc6c0\uc9c1\uc774\ub294\uac70\ub77c... \uc6d0\ud558\uc9c0 \uc54a\uc744\ub54c\ub3c4 \uadf8 \ub3d9\uc791\uc774 \uc2e4\ud589\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uadf8\ub7ec\uc9c0 \uc54a\uae30 \uc704\ud574\uc11c\ub294 \ud2b9\uc815 \uc870\uac74\uc774\ub77c\ub294\uac78 \ub9cc\uc871\uc2dc\ucf1c \uc8fc\ub294\uac8c \ud1b5\uc81c\ud558\uae30 \uc88b\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88 \ucf20\ub2e4(\ub2e8, \uc8fc\ubcc0\uc758 \ubc1d\uae30\uac00 \uc77c\uc815 \uc218\uc900 \uc774\ud558\uc77c\ub54c\ub9cc)&rarr;xx\ucd08 \ud6c4 \ubd88 \uaebc\uc9d0<br \/><br \/>&nbsp; &nbsp; &nbsp; \uc704 \uc608\uc81c\uc5d0\uc11c \ucee8\ub514\uc158\uc740, \uc8fc\ubcc0 \ubc1d\uae30\uac00 \uc77c\uc815 \uc218\uc900 \uc774\ud558\uc77c\ub54c \ub9cc \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\ub294 \ud2b8\ub9ac\uac70\ub97c \uc2e4\ud589\ud558\uac8c \ub429\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; \uc774\ub7ec\uba74 \ud55c\ub0ae\uc5d0 \ubc1d\uc740\uacf3\uc5d0 \uc788\ub294 \uc13c\uc11c\ub4f1\uc774 \ub3d9\uc791\ud558\uc9c0 \uc54a\uc73c\ub2c8 \ubd88\ud544\uc694\ud55c \uc804\ub825\uc18c\ubaa8\ub97c \uc904\uc77c\uc218\ub3c4 \uc788\uaca0\uc8e0.<br \/>&nbsp; &nbsp; &nbsp; \ub9c8\ucc2c\uac00\uc9c0\ub85c HA\uc5d0\uc11c \uc0c1\ud0dc\uac12\uc744 \ubd88\ub7ec\uc62c \uc218 \uc788\ub294 \uac70\uc758 \ubaa8\ub4e0\uac83\uc744 \ucee8\ub514\uc158\uc73c\ub85c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; sun \uc13c\uc11c\ub85c \uc77c\ubab0\uc2dc\uc5d0\ub9cc \ub3d9\uc791\uc2dc\ud0a4\uac70\ub098,<br \/>&nbsp; &nbsp; &nbsp; device tracker \ub4f1 \uc7ac\uc2e4\uc13c\uc11c\ub85c \uc0ac\ub78c\uc774 \uc788\uc744\ub54c\ub9cc \ub3d9\uc791\uc2dc\ud0a4\uac70\ub098,<br \/>&nbsp; &nbsp; &nbsp; \ud2b9\uc815 \uc2a4\uc704\uce58\uac00 on\uc778 \uc0c1\ud0dc\uc5d0\uc11c\ub9cc \ub3d9\uc791\ud55c\ub2e4\ub358\uac00...<br \/>&nbsp; &nbsp; &nbsp; \ubcc0\uc218 \ud1b5\uc81c\ub97c \uc704\ud574\uc11c\ub294 \uad8c\uc7a5\ub418\ub294 \ubd80\ubd84\uc774\ub098, \uaf64\ub098 \uc5b4\ub824\uc6b8 \uc218 \uc788\ub294 \ubd80\ubd84\uc785\ub2c8\ub2e4.<br \/><br \/><br \/>&nbsp; &nbsp; 4. \uc120\ud0dd - \ud2b8\ub9ac\uac70 \/ \ucee8\ub514\uc158\uc744 \uc5ec\ub7ec\uac1c \uc0ac\uc6a9<br \/>&nbsp; &nbsp; &nbsp; \uc13c\uc11c\ub4f1\uc911 \uc9c0\uc18d\uc801\uc778 \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74 \ubd88\uc774 \uc548 \uaebc\uc9c0\ub294 \ub140\uc11d\ub4e4\uc774 \uc788\ub294\ub370, \uc774\uac74 \ud2b8\ub9ac\uac70\uac00 2\uac1c \uc778\uac81\ub2c8\ub2e4.<br \/>&nbsp; &nbsp; &nbsp; xx\ucd08 \ud6c4 \ubd88 \uaebc\uc9d0: \ubd88 \ucf1c\uc9d0&rarr;xx\ucd08 \ud6c4 \ubd88 \uaebc\uc9d0 \uc774\ub77c\ub294 \ud558\ub098\uc758 \uc561\uc158\uc73c\ub85c \ub3d9\uc791, \ubcf4\ud1b5 \uc911\uac04\uc5d0 \uc6c0\uc9c1\uc784\uc774 \uc788\uc5b4\ub3c4 \uaebc\uc84c\ub2e4\uac00 \ub2e4\uc2dc \ucf1c\uc9d0<br \/>&nbsp; &nbsp; &nbsp; xx\ucd08 \ub3d9\uc548 \uc6c0\uc9c1\uc784\uc774 \uc5c6\uc744\ub54c \ubd88 \uaebc\uc9d0: \ubd88 \ucf1c\uc9d0 \uc561\uc158&rarr;xx\ucd08 \ub3d9\uc548 \uc6c0\uc9c1\uc784\uc774 \uc5c6\ub294\uc9c0 \ud655\uc778\ud558\ub294 \ud2b8\ub9ac\uac70 \ub3d9\uc791&rarr;\uc6c0\uc9c1\uc784\uc774 \uc5c6\uc73c\uba74 \ubd88 \uaebc\uc9d0 \uc561\uc158<br \/><br \/>&nbsp; &nbsp; &nbsp; \uc774\ub7f0\uc2dd\uc73c\ub85c \uc790\ub3d9\ud654\ub780 1:1\ub85c \ub9e4\uce6d\ub418\uc9c0 \uc54a\ub294 \uacbd\uc6b0\ub3c4 \ub9ce\uc2b5\ub2c8\ub2e4.<br \/><br \/><br \/><br \/>3. \uc790\ub3d9\ud654 \uae30\ubcf8 \uc608\uc81c<br \/><br \/>&nbsp; \uc790 \uc774\uc81c \uc704\uc5d0 \uc124\uba85\ud55c \uc608\ub97c HA\uc758 \uc790\ub3d9\ud654\ub85c \ub9cc\ub4e4\uc5b4 \ubcfc\uae4c\uc694?<br \/><br \/># automations.yaml \uc5d0 \uc791\uc131<br \/># \uc790\ub3d9\ud654 \uc774\ub984 \uc124\uc815<br \/>- alias: Motion Light<br \/># HA\uc7ac\uc2dc\uc791 \/ \uc624\ud1a0\uba54\uc774\uc158 \uc0c8\ub85c\uace0\uce68\ub4f1 \ub3d9\uc791\uc2dc \uae30\ubcf8 \uc0c1\ud0dc\uac12 \uc124\uc815<br \/>&nbsp;initial_state: 'on'<br \/># \uc790\ub3d9\ud654 \ud2b8\ub9ac\uac70 \uc124\uc815<br \/>&nbsp;trigger:<br \/># \ud2b8\ub9ac\uac70 \uc885\ub958\ub294 state(\uc0c1\ud0dc\uac12 \ubcc0\uacbd)<br \/>&nbsp; - platform: state<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 binary_sensor.motion(\ubaa8\uc158\uc13c\uc11c)<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/># \uc0c1\ud0dc\uac00 on \uc73c\ub85c \ubcc0\uacbd\ub420\ub54c(off&rarr;on \/ \uc54c\uc218\uc5c6\uc74c&rarr;on \ub4f1)<br \/>&nbsp; &nbsp;to: 'on'<br \/># \ub2e4\uc74c \ucee8\ub514\uc158 \uc77c\ub54c\ub9cc \ud2b8\ub9ac\uac70 \ub3d9\uc791<br \/>&nbsp;condition:<br \/># \ucee8\ub514\uc158 \uc885\ub958\ub294 \uc0c1\ud0dc\uac12<br \/>&nbsp; - condition: state<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 sensor.brightness(\uc870\ub3c4\uc13c\uc11c)<br \/>&nbsp; &nbsp;entity_id: sensor.brightness<br \/># \uc5d4\ud2f0\ud2f0\uc758 \uc0c1\ud0dc\uac12\uc774 10 \uc774\ud558\uc77c\ub54c<br \/>&nbsp; &nbsp;below: '10'<br \/># \ucee8\ub514\uc158+\ud2b8\ub9ac\uac70\uac00 \ub9cc\uc871\ud560\uacbd\uc6b0 \ub2e4\uc74c \ub3d9\uc791\uc744 \uc2e4\ud589<br \/>&nbsp;action:<br \/># \uc561\uc158\uc758 \uc11c\ube44\uc2a4\ub294 light.turn_on \uc73c\ub85c \ub77c\uc774\ud2b8 \ucf1c\uae30<br \/>&nbsp; - service: light.turn_on<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 light.light1 \uc73c\ub85c \uc124\uc815\ud558\uc5ec \ud574\ub2f9 \uc5d4\ud2f0\ud2f0\ub97c \ucf2c<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/># 30\ucd08 \ud6c4<br \/>&nbsp; - delay: '00:00:30'<br \/># \uc11c\ube44\uc2a4 light.turn_off \ud638\ucd9c<br \/>&nbsp; - service: light.turn_off<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 light.light1 \uc73c\ub85c \ud574\ub2f9 \uc5d4\ud2f0\ud2f0\ub97c \ub054<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/><br \/>&nbsp; \uc790 \uc774\ub807\uac8c \ud558\uba74 \uc870\ub3c4\uc13c\uc11c 10 \uc774\ud558\uc778 \uc0c1\ud0dc\ub85c \ubaa8\uc158\uc13c\uc11c \uac10\uc9c0\uc2dc&rarr;light1\uc744 \ucf1c\uace0, 30\ucd08 \ud6c4 light1\uc744 \ub048\ub2e4.<br \/>&nbsp; \ub77c\ub294 \uc790\ub3d9\ud654\uac00 \uc644\uc131\ub429\ub2c8\ub2e4.<br \/><br \/>&nbsp; \uc790\ub3d9\ud654\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc704\uc5d0\uc11c \uc544\ub798\ub85c \uc9c4\ud589\ub429\ub2c8\ub2e4.<br \/>&nbsp; \uc561\uc158\uc5d0 \uc11c\ube44\uc2a4\uac00 3\uac1c\uac00 \uc788\ub2e4\uba74, 1 \/ 2 \/ 3 \ubc88 \uc21c\uc11c\ub85c \uc9c4\ud589\uc774 \ub418\ub294\uac70\uc8e0.<br \/>&nbsp; \ub2e8 1\uac1c\uc758 \uc11c\ube44\uc2a4\uc5d0 entity\uac00 \uc5ec\ub7ec\uac1c(light.light1, light.light2, light.light3 \ud615\ud0dc) \ub85c \ub4e4\uc5b4\uac00 \uc788\ub294\uacbd\uc6b0...<br \/>&nbsp; \uc774\uac74 \uc785\ub825\uc21c\uc11c\ub300\ub85c \ub418\ub294\uac8c \uc544\ub2cc\uac70 \uac19\ub354\ub77c\uad6c\uc694....\ub79c\ub364\uc778\uac00...?<br \/><br \/>&nbsp; \uc5ec\ud2bc.. \ucc38 \uc27d\uc8e0.......?<br \/>&nbsp; \uc27d\uae34 \uac1c\ubfd4 \u3160.\u315c \uc544\ub2c8 \ubb50 \uc774\ub7f0 \ub2e8\uc21c\ud55c\uac70 \ud558\ub098 \ud558\ub294\ub370 \uba87\uc904\uc744 \uc801\uc5b4\uc57c \ud558\ub294\uac74\uc9c0...\u3137\u3137<br \/><br \/>&nbsp; \uc790 \uadf8\ub7f0\ub370... \uc5ec\uae30\uc11c \ubb38\uc81c!<br \/>&nbsp; \uc561\uc158\uc774 light1\uc744 \ucf1c\uace0&rarr;30\ucd08 \ub300\uae30&rarr;light1\uc744 \ub044\uace0 \uc785\ub2c8\ub2e4.<br \/>&nbsp; \uadf8 \uc0ac\uc774\uc5d0 \uc0ac\ub78c\uc774 \uc6c0\uc9c1\uc774\uba74\uc694??<br \/>&nbsp; \uadf8\ub798\ub3c4 30\ucd08 \ud6c4\uc5d0 \uaebc\uc838\uc694...\uc561\uc158 \uc790\uccb4\uac00 \uadf8\ub9ac \uc9c0\uc815\ub418\uc5b4 \uc788\uc5b4\uc694...<br \/>&nbsp; \uac70\uae30\ub2e4 \ub354 \ud070 \ubb38\uc81c\ub294! \ud2b8\ub9ac\uac70\uac00 \ubaa8\uc158\uc13c\uc11c to: on \uc774\uc8e0?<br \/>&nbsp; to \ub77c\ub294\uac74 \ud604 \uc0c1\ud0dc\uac00 \uc544\ub2cc on \uc73c\ub85c \ubcc0\uacbd\ub420\ub54c\ub97c \uc774\uc57c\uae30 \ud569\ub2c8\ub2e4.<br \/>&nbsp; \ubaa8\uc158\uc13c\uc11c\ub294 \uc9e7\uc544\uc57c 5\ucd08 \/ \ubcf4\ud1b5 20~30\ucd08, \uae38\uba74 1~2\ubd84\uc758 \ub514\ud14d\ud2b8 \ub51c\ub808\uc774\uac00 \uc788\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; \ubcf4\ud1b5 \ub51c\ub808\uc774 \uc2dc\uac04\ub3d9\uc548 \uc6c0\uc9c1\uc784\uc774 \uc5c6\uc5b4\uc57c off\ub85c \uc778\uc2dd\uc774 \ub418\uc8e0.<br \/>&nbsp; 20\ucd08 \uc9dc\ub9ac \ub51c\ub808\uc774\ub97c \uac00\uc9c4 \ubaa8\uc158\uc13c\uc11c\ub85c \ub3d9\uc791\uc2dc\ucf30\ub294\ub370, \ub3d9\uc791 \ud6c4 25\ucd08\ucbe4\uc5d0 \uc6c0\uc9c1\uc600\uc5b4\uc694.<br \/>&nbsp; \uadf8\ub7ec\uba74 \ubaa8\uc158\uc13c\uc11c\ub294 \uc774\ubbf8 on \ub418\uc5b4 \uc788\uace0&rarr;5\ucd08 \ud6c4(\ub51c\ub808\uc774\uac00 30\ucd08 \uc774\ubbc0\ub85c) light1\uc740 \uaebc\uc9c0\uace0...<br \/>&nbsp; \ud2b8\ub9ac\uac70\ub294 \ubaa8\uc158\uc13c\uc11c to: on \uc774\uae30\ub54c\ubb38\uc5d0 \ud604 \uc0c1\ud0dc\uac00 on\uc77c\ub54c\ub294 \ub3d9\uc791\uc774 \uc548\ub418\uace0... \ubd88\uc740 \uc548\ucf1c\uc9c0\uc8e0.<br \/><br \/>&nbsp; \uc790 \uadf8\ub7ec\uba74 \uc774 \ubd80\ubd84\uc744 \uac1c\uc120\ud558\uae30 \uc704\ud574 \uc880 \ub354 \ubcf4\uac15\uc744 \ud574\ubd05\ub2c8\ub2e4.<br \/><br \/># automations.yaml \uc5d0 \uc791\uc131<br \/>- alias: Motion Light on<br \/>&nbsp;initial_state: 'on'<br \/>&nbsp;trigger:<br \/>&nbsp; - platform: state<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/># \uc0c1\ud0dc\uac00 on \uc73c\ub85c \ubcc0\uacbd\ub420\ub54c(off&rarr;on \/ \uc54c\uc218\uc5c6\uc74c&rarr;on \ub4f1)<br \/>&nbsp; &nbsp;to: 'on'<br \/>&nbsp;condition:<br \/>&nbsp; - condition: state<br \/>&nbsp; &nbsp;entity_id: sensor.brightness<br \/>&nbsp; &nbsp;below: '10'<br \/>&nbsp;action:<br \/>&nbsp; - service: light.turn_on<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/><br \/><br \/>- alias: Motion Light off<br \/>&nbsp;initial_state: 'on'<br \/>&nbsp;trigger:<br \/>&nbsp; - platform: state<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/># \uc0c1\ud0dc\uac00 off \uc73c\ub85c \ubcc0\uacbd\ub420\ub54c(on&rarr;off \/ \uc54c\uc218\uc5c6\uc74c&rarr;off \ub4f1)<br \/>&nbsp; &nbsp;to: 'off'<br \/># off \uc0c1\ud0dc\ub85c \ubcc0\uacbd\ub41c\uc9c0 30\ucd08 \uc774\ud6c4\uc5d0 \ud2b8\ub9ac\uac70<br \/>&nbsp; &nbsp;for: '00:00:30'<br \/>&nbsp;condition:<br \/>&nbsp; - condition: state<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 light.light1<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/># \uc5d4\ud2f0\ud2f0\uc758 \uc0c1\ud0dc\uac12\uc774 on \uc77c\ub54c(\ubd88\uc774 \ucf1c\uc838\uc788\uc744\ub54c)<br \/>&nbsp; &nbsp;state: 'on'<br \/>&nbsp;action:<br \/># \uc11c\ube44\uc2a4 light.turn_off \ud638\ucd9c<br \/>&nbsp; - service: light.turn_off<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 light.light1 \uc73c\ub85c \ud574\ub2f9 \uc5d4\ud2f0\ud2f0\ub97c \ub054<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/><br \/><br \/>&nbsp; \uc790\ub3d9\ud654\ub97c 2\uac1c\ub85c \ub098\ub234\uc5b4\uc694!<br \/>&nbsp; \uc774\ub807\uac8c \ud558\uba74 Motion Light On \uc790\ub3d9\ud654\ub85c \uc870\ub3c4\uac00 10 \uc774\ud558\uc77c\ub54c \ubaa8\uc158\uc13c\uc11c\uac00 on \ub418\uba74 light1\uc774 \ucf1c\uc9c0\uace0...<br \/>&nbsp; Motion Light Off \uc790\ub3d9\ud654\ub85c light1\uc774 \ucf1c\uc9c4 \uc0c1\ud0dc\uc5d0\uc11c \ubaa8\uc158\uc13c\uc11c\uac00 off\ub418\uace0 30\ucd08 \ud6c4 light1\uc774 \uaebc\uc9d1\ub2c8\ub2e4.<br \/>&nbsp; (\ubaa8\uc158\uc13c\uc11c\uc758 \ub514\ud14d\ud2b8 \ub51c\ub808\uc774\uac00 \uae38\ub2e4\uba74, for\uc740 \uc0dd\ub7b5\ud574\ub3c4 \ub429\ub2c8\ub2e4 \uc790\ub3d9\ud654\ub294 \uc0c1\ud669\uc5d0 \ub530\ub77c \uc720\ub3d9\uc801\uc774\ub2c8\uae4c\uc694~)<br \/><br \/><br \/>&nbsp; \uadf8\ub7f0\ub370......<br \/>&nbsp; \uaca8\uc6b0 \uc774\uac70 \ud558\ub294\ub370 \uc790\ub3d9\ud654\ub97c 2\uac1c \ub9cc\ub4dc\ub294\uac74 \uc660\uc9c0 \uc2eb\uc8e0?<br \/>&nbsp; \uadf8\ub7ec\uba74 \uc870\uae08 \ubcf5\uc7a1\ud558\uaca0\uc9c0\ub9cc \uc5b4\ub5bb\uac8c \ud558\ub098\ub85c \uc904\uc77c \uc218 \uc5c6\uc744\uae4c\uc694?<br \/>&nbsp; \ub2f9\uc5f0\ud788 \uc788\uc2b5\ub2c8\ub2e4!<br \/>&nbsp; \uc870\uae08 \ubcf5\uc7a1\ud55c \ubc29\ubc95\uacfc \ub9ce\uc774 \ubcf5\uc7a1\ud55c \ubc29\ubc95\uc774 \uc788\ub294\ub370 \uc804 \uc544\uc9c1 \ucd08\ubcf4\ub2c8\uae4c \uc870\uae08 \ubcf5\uc7a1\ud55c\uac78\ub85c \ud574\ubcfc\uaed8\uc694<br \/>&nbsp; (\uc644\ubcbd\ud558\uac8c \uc6d0\ud558\ub294 \uc790\ub3d9\ud654\ub294 \uc544\ub2c8\uc9c0\ub9cc, \uac04\ub2e8\ud558\uac8c \ud558\ub294\uac74 \uc774\uc815\ub3c4\ub85c...)<br \/><br \/>&nbsp; \uc774\ubc88\uc5d0 \uc4f8\uac74, wait_template \ub77c\ub294\uac81\ub2c8\ub2e4.<br \/>&nbsp; <a href=\"https:\/\/www.home-assistant.io\/docs\/scripts\/#wait\" target=\"_blank\" rel=\"noopener\">https:\/\/www.home-assistant.io\/docs\/scripts\/#wait<\/a><br \/><br \/>&nbsp; wait_template\ub780, \ud2b9\uc815 \uc2dc\uac04 \ub0b4\uc5d0 \uc9c0\uc815\ub41c \uc0c1\ud0dc\ub85c \ubcc0\uacbd\ub418\uba74 \ub2e4\uc74c \uc561\uc158\uc744 \uc2e4\ud589,<br \/>&nbsp; \ub9cc\uc57d \uc9c0\uc815 \uc2dc\uac04 \ub0b4\uc5d0 \ud2b9\uc815\ub3d9\uc791\uc774 \uc2e4\ud589\ub418\uc9c0 \uc54a\uc73c\uba74 continue_on_timeout \uc635\uc158\uc5d0 \ub530\ub77c \ub2e4\uc74c \uc561\uc158 \uc2e4\ud589\uc5ec\ubd80\ub97c \uacb0\uc815\ud569\ub2c8\ub2e4.<br \/>&nbsp; \uc9c0\uae08\uc740 \uc5b4\ucc28\ud53c light.turn_off \uac00 \uc9c4\ud589\ub418\uc5b4\uc57c \ud558\ub2c8 continue_on_timeout \uc635\uc158\uc740 \ubb34\uc2dc\ud558\uaca0\uc2b5\ub2c8\ub2e4.(\uae30\ubcf8\uac12\uc774 on\uc774\ub77c \uc548 \uc368\ub3c4 \ub418\uc694)<br \/><br \/># automations.yaml \uc5d0 \uc791\uc131<br \/>- alias: Motion Light<br \/>&nbsp;initial_state: 'on'<br \/>&nbsp;trigger:<br \/>&nbsp; - platform: state<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/>&nbsp; &nbsp;to: 'on'<br \/>&nbsp;condition:<br \/>&nbsp; - condition: state<br \/>&nbsp; &nbsp;entity_id: sensor.brightness<br \/>&nbsp; &nbsp;below: '10'<br \/>&nbsp;action:<br \/>&nbsp; - service: light.turn_on<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/># \uc9c0\uc815 \uc2dc\uac04 \ub0b4\uc5d0 \ubaa8\uc158\uc13c\uc11c\uc758 \uc0c1\ud0dc\uac12\uc774 off\ub85c \ubcc0\uacbd\ub418\uba74(\ud639\uc740 \uc9c0\uc815 \uc2dc\uac04\uc774 \uc9c0\ub098\uba74)<br \/>&nbsp; - wait_template: \"{{ is_state('binary_sensor.motion', 'off') }}\"<br \/># \uc2dc\uac04\uc740 5\ubd84\uc73c\ub85c \uc124\uc815\ud568<br \/>&nbsp; &nbsp;timeout: '00:05:00'<br \/>&nbsp; - service: light.turn_off<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/><br \/>&nbsp; \uc790 \uc774\ub807\uac8c \ud558\uba74 \uc870\ub3c4 10\uc774\ud558\uc5d0\uc11c \ubaa8\uc158\uc13c\uc11c\uac00 on \ub418\uba74 light1\uc744 \ucf1c\uace0<br \/>&nbsp; 5\ubd84\uc774 \uacbd\uacfc\ud558\uac70\ub098 \uadf8 \uc774\ub0b4\uc5d0 \ubaa8\uc158\uc13c\uc11c\uac00 off\ub85c \ubcc0\uacbd\ub418\uba74 light1\uc744 \ub055\ub2c8\ub2e4.<br \/>&nbsp; \uc5ec\uae30\uc11c \ub354 \uc644\ubcbd\ud558\uac8c \ud558\ub824\uba74, \uc911\uac04\uc5d0 \ubaa8\uc158\uc13c\uc11c\uac00 \ud639\uc2dc off\ub85c \ubcc0\uacbd\ub418\uc5b4\ub3c4 \ubc14\ub85c \uaebc\uc9c0\uc9c0 \uc54a\uac8c \ud558\uace0 \uc2f6\uc740\ub370..<br \/>&nbsp; \uadf8\ub7ec\uba74 \uc704\uc5d0\uc11c \uc124\uba85\ud55c \ub9ce\uc774 \ubcf5\uc7a1\ud55c \ubc29\ubc95\uc73c\ub85c \uac00\ub294\uac70\ub77c...<br \/>&nbsp; \uc880 \ub354 \ub098\uc911\uc5d0...!<br \/><br \/><br \/><br \/>4. \uc790\ub3d9\ud654 \uad6c\uc131\uc2dc \uc720\uc758\uc0ac\ud56d<br \/><br \/>&nbsp; \uc790\ub3d9\ud654\ub97c \uad6c\uc131\ud560\ub54c\ub294 \uc0dd\uac01\ubcf4\ub2e4 \ub9ce\uc740\uac78 \uc2e0\uacbd\uc368\uc57c \ud569\ub2c8\ub2e4.<br \/>&nbsp; \uc704 \uc608\uc81c\ucc98\ub7fc \ub2ec\ub791 \ubaa8\uc158\uc73c\ub85c \ub77c\uc774\ud2b8 \ucf1c\uace0 \/ \ub044\uace0 \ud558\ub294\uac83\ub9cc \ud574\ub3c4...<br \/>&nbsp; &nbsp; 1. \ucee8\ub514\uc158\uc73c\ub85c \uc870\ub3c4\uc13c\uc11c\uc758 \uac12\uc744 \uc5bc\ub9c8\ub85c \ub123\uc744\uac83\uc778\uac00<br \/>&nbsp; &nbsp; 2. delay\ub85c 30\ucd08 \uc9c0\uc815\ud574\ub3c4 \uc0c1\uad00\uc774 \uc5c6\ub294\uac00<br \/>&nbsp; &nbsp; 3. \ubaa8\uc158\uc13c\uc11c\uc758 \ub514\ud14d\ud2b8 \ub51c\ub808\uc774\uac00 \uc5bc\ub9c8\ub098 \ub418\ub294\uac00<br \/>&nbsp; &nbsp; 4. delay\ub97c \uc4f0\uc9c0 \uc54a\ub294 \uacbd\uc6b0 \ub044\ub294 \ud0c0\uc774\ubc0d\uc744 \uc5b4\ub5bb\uac8c \uc7a1\uc744\uac83\uc778\uac00<br \/>&nbsp; &nbsp; 5. \ubaa8\uc158\uc13c\uc11c\uac00 on \uc0c1\ud0dc\uc5d0\uc11c light1\uc774 \uaebc\uc9c0\uc9c0 \uc54a\uac8c \ud560 \uc218 \uc5c6\ub294\uac00<br \/><br \/>&nbsp; \uc774 \ubaa8\ub4e0\uac83\ub4e4\uc744 \uace0\ub824\ud558\ub2e4 \ubcf4\uba74, \uc624\ud1a0\uba54\uc774\uc158 \ud558\ub098\uac00 \uc810\uc810 \ubc29\ub300\ud574\uc9d1\ub2c8\ub2e4.<br \/>&nbsp; \ud558\uc9c0\ub9cc \uadf8\ub9cc\ud07c \uac01\uc885 \ubcc0\uc218\uc5d0 \ub300\ud55c \ud1b5\uc81c\uac00 \uc774\ub8e8\uc5b4\uc9c0\uae30 \ub54c\ubb38\uc5d0 \uc6d0\ud558\ub294 \uc790\ub3d9\ud654\uac00 \ub9cc\ub4e4\uc5b4 \uc9d1\ub2c8\ub2e4.<br \/>&nbsp; \uc880 \ub354 \ud3b8\ud558\uace0 \uc6d0\ud558\ub294\ub300\ub85c \ub9cc\ub4e4 \uc218 \uc788\ub294 \uc790\ub3d9\ud654 \uad6c\uc131\uc744 \uc704\ud574 \ud55c\ubc1c\uc9dd \ub354 \uc804\uc9c4\ud574 \ubd05\uc2dc\ub2e4~<br \/><br \/><br \/><br \/>5. template\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc790\ub3d9\ud654\ub97c \ub2e8\uc21c\ud654 \/ \uc785\ub9db\ub300\ub85c \ubc14\uafb8\uae30<br \/><br \/>&nbsp; \uc790\ub3d9\ud654\ub97c \ub2e8\uc21c\ud558\uac8c \ud55c\ub2e4\uba74, \ud2b8\ub9ac\uac70\/\uc0c1\ud0dc\uac00 \uc801\uae30\ub54c\ubb38\uc5d0 \uadf8\ub9cc\ud07c \uc0ac\uc6a9\uc790\uac00 \uc790\ub3d9\ud654\uc5d0 \ub9de\ucdb0\uc11c \uc6c0\uc9c1\uc5ec\uc57c \ud569\ub2c8\ub2e4.<br \/>&nbsp; 1\uac1c\uc758 \uc790\ub3d9\ud654\ub85c \ubaa8\uc158 \uac10\uc9c0&rarr;\ubd88\ucf1c\uae30&rarr;delay 30\ucd08&rarr;\ubd88\ub044\uae30<br \/>&nbsp; \ub85c \uc124\uc815\ud588\ub2e4\uba74, 30\ucd08 \uc774\uc0c1 \ubd88\uc774 \ucf1c\uc838\uc788\uac8c \ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.<br \/>&nbsp; \uc5b4\uca54 \uc218 \uc5c6\uc774 \uaebc\uc84c\ub2e4\uac00 \ub2e4\uc2dc \ubaa8\uc158\uc13c\uc11c\ub97c \uac10\uc9c0 \uc2dc\ucf1c\uc11c \ubd88\uc744 \ucf1c\uc57c\ud558\uc8e0.<br \/>&nbsp; 2\uac1c\uc758 \uc790\ub3d9\ud654\ub85c on \/ off\uc6a9 \ub450\uac1c\ub85c \ub098\ub208\ub2e4\uba74 \ubaa8\uc158 \uac10\uc9c0\uc2dc \ubd88\uc774 \ucf1c\uc9c0\uace0, \ud639\uc2dc \ubaa8\uc158\uc774 off\ub85c \ubc14\ub010\ub2e4\uace0 \ud574\ub3c4 30\ucd08 \ub0b4\uc5d0<br \/>&nbsp; \ub2e4\uc2dc \ubaa8\uc158\uc774 \uac10\uc9c0\ub418\uba74 \ubd88 \uaebc\uc9d0\uc774 \ub3d9\uc791\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\uc815\ub3c4\uba74 \uc6d0\ud558\ub294 \uc790\ub3d9\ud654\uac00 \ub9cc\ub4e4\uc5b4 \uc9c0\ub294\uac70\uc8e0.<br \/><br \/>&nbsp; \ud558\uc9c0\ub9cc \uc790\ub3d9\ud654 \uc591\uc774 \uc810\uc810 \ub9ce\uc544\uc9c0\ub2e4 \ubcf4\uba74, \ud558\ub098\uc5d0\ub3c4 \uba87\uc904\uc529 \uc7a1\uc544\uba39\ub294 \uc790\ub3d9\ud654 \ud56d\ubaa9 \ud558\ub098\ud558\ub098\uac00 \ub9ce\uc544\ubcf4\uc785\ub2c8\ub2e4.<br \/>&nbsp; \uadf8\ub798\uc11c template \ub77c\ub294\uac83\uc5d0 \uc190\uc744 \ub300\uac8c \ub429\ub2c8\ub2e4.<br \/>&nbsp; \uac01\uc885 \uac12\uc73c\ub85c \uacc4\uc0b0\uc744 \ud560\uc218\ub3c4 \uc788\uace0, \ud2b9\uc815 \uc0c1\ud0dc\uac12\uc774 \ub9cc\uc871\ud560\ub54c ture \/ false \uac12\uc744 \ubc18\ud658\ud560\uc218\ub3c4 \uc788\uace0...<br \/>&nbsp; \uc0c1\ud0dc\uc5d0 \ub530\ub77c \ud2b9\uc815 \ubb38\uc790\uc5f4\uc744 \ucd9c\ub825\ud560\uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<br \/><br \/>&nbsp; \uc800\ub3c4 \uc544\uc8fc \uae30\ubcf8\ubc16\uc5d0 \ubaa8\ub974\ub294 \ubd80\ubd84\uc774\uc9c0\ub9cc... \uc774\uac78\ub85c \uc544\uc8fc \uc5ec\ub7ec\uac00\uc9c0\ub97c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.(\uadf8\ub9cc\ud07c \ubcf5\uc7a1\ud55c\uac8c \ud568\uc815 \u3137\u3137)<br \/>&nbsp; \uc704\uc5d0 \uc124\uba85\ud55c \ubaa8\uc158 on \/ off \ub450\uac00\uc9c0\uc758 \uc790\ub3d9\ud654\ub97c \ud558\ub098\ub85c \ud1b5\ud569\ud558\ub294\uac78 \ud574\ubcfc\uae4c\uc694?<br \/><br \/># automations.yaml \uc5d0 \uc791\uc131<br \/>- alias: Motion Light template<br \/>&nbsp;initial_state: 'on'<br \/>&nbsp;trigger:<br \/>&nbsp; - platform: state<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/>&nbsp; &nbsp;to: 'on'<br \/>&nbsp; - platform: state<br \/>&nbsp; &nbsp;entity_id: binary_sensor.motion<br \/># \uc0c1\ud0dc\uac00 off \uc73c\ub85c \ubcc0\uacbd\ub420\ub54c(on&rarr;off \/ \uc54c\uc218\uc5c6\uc74c&rarr;off \ub4f1)<br \/>&nbsp; &nbsp;to: 'off'<br \/># off\ub85c \ubcc0\uacbd \ud6c4 30\ucd08 \ub3d9\uc548 \uc720\uc9c0\ub418\ub294 \uacbd\uc6b0 \ud2b8\ub9ac\uac70\ub428<br \/>&nbsp; &nbsp;for: '00:00:30'<br \/>&nbsp;condition:<br \/># \ucee8\ub514\uc158\uc740 \ub2e4\uc74c \ud558\uc704 \ucee8\ub514\uc158\uc911 \uc77c\ubd80\uac00 \ub9cc\uc871\ud560\ub54c \ub3d9\uc791<br \/>&nbsp; - condition: or<br \/>&nbsp; &nbsp;conditions:<br \/># \uccab\ubc88\uc9f8 \ucee8\ub514\uc158\uc758 \uc885\ub958\ub294 \uc0c1\ud0dc\uac12<br \/>&nbsp; &nbsp; - condition: state<br \/>&nbsp; &nbsp; &nbsp;entity_id: sensor.brightness<br \/>&nbsp; &nbsp; &nbsp;below: '10'<br \/># \ub450\ubc88\uc9f8 \ucee8\ub514\uc158\uc758 \uc885\ub958\ub294 \uc0c1\ud0dc\uac12<br \/>&nbsp; &nbsp; - condition: state<br \/>&nbsp; &nbsp; &nbsp;entity_id: light.light1<br \/>&nbsp; &nbsp; &nbsp;state: 'on'<br \/>&nbsp;action:<br \/># \uc561\uc158\uc758 \uc11c\ube44\uc2a4\ub294 template\ub85c \uc124\uc815, \ub2e4\uc74c \uac12\uc744 \ub9cc\uc871\ud560\ub54c \ub9cc\uc871\ub418\ub294 \uac12\uc744 \ubc18\ud658\ud568<br \/># light.turn_ \ub4a4\uc5d0 binary_sensor.motion\uc758 state \uac12\uc744 \ubd99\uc5ec\uc11c service\ub97c \ud638\ucd9c<br \/># \ubaa8\uc158\uc13c\uc11c\uac00 on \uc0c1\ud0dc\ub77c\uba74 light.turn_on \uc11c\ube44\uc2a4 \/ \ubaa8\uc158\uc13c\uc11c\uac00 off\ub77c\uba74 light.turn_off<br \/>&nbsp; - service_template: 'light.turn_{{ states.binary_sensor.motion.state }}'<br \/># \uc5d4\ud2f0\ud2f0 ID\ub294 light.light1 \uc73c\ub85c \uc124\uc815<br \/>&nbsp; &nbsp;entity_id: light.light1<br \/><br \/>&nbsp; \uc790 \uc774\ub807\uac8c \ud558\uba74...<br \/>&nbsp; \uc870\ub3c4\uac12\uc774 10 \uc774\ud558\uc774\uac70\ub098 \/ light1\uc774 \ucf1c\uc838\uc788\ub294 \uc0c1\ud0dc\uc5d0\uc11c\ub9cc \ud2b8\ub9ac\uac70\ub97c \uc778\uc2dd\ud558\uace0<br \/>&nbsp; \ubaa8\uc158\uc774 \ucf1c\uc9c0\uac70\ub098 \/ \ubaa8\uc158\uc774 \uaebc\uc9c4\uc0c1\ud0dc\ub85c 30\ucd08 \ub3d9\uc548 \uc720\uc9c0\ub420\ub54c \uc624\ud1a0\uba54\uc774\uc158\uc744 \ud2b8\ub9ac\uac70 \ud558\uace0,<br \/>&nbsp; \uc561\uc158\uc740 states.binary_sensor.motion.state \ub85c \ubaa8\uc158\uc13c\uc11c\uc758 state \uac12\uc744 light.turn_ \ub4a4\uc5d0 \ubd99\uc5ec\uc11c service\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.<br \/><br \/>&nbsp; \ub2e8\uc21c\ud654 \ud558\uae34 \ud588\ub294\ub370...<br \/>&nbsp; \uc774\uc815\ub3c4\ub85c \uc785\ub9db\ub300\ub85c \ubc14\uafbc\ub2e4\uace0 \ud558\uae30\ub294 \uc880 \uadf8\ub807\uc8e0?<br \/>&nbsp; \uc790 \uadf8\ub7ec\uba74.. \ub2e4\ub978 \uc2dc\ub098\ub9ac\uc624\ub97c \ud55c\ubc88 \uc9dc\ubcf4\uaca0\uc2b5\ub2c8\ub2e4!<br \/>&nbsp; \uc800\ud76c\uc9d1 \uac70\uc2e4\uc5d0 \uc788\ub294 \uace0\ud004 \uc2a4\uc704\uce58+\uc0e4\uc624\ubbf8 \ubc84\ud2bc\uc744 \uc870\ud569\ud55c \uc790\ub3d9\ud654 \uc2dc\ub098\ub9ac\uc624 \uc785\ub2c8\ub2e4.<br \/>&nbsp; (\uace0\ud004\uc774 \ubb3c\ub9ac\ubc84\ud2bc\uc774 \uc544\ub2c8\ub77c \uc9c1\uc811 \ubcf4\uba74\uc11c \ucf1c\uace0\/\uaebc\uc57c\ud574\uc11c \ub108\ubb34 \ubd88\ud3b8\ud574\uc11c \ub9cc\ub4e0 \uc790\ub3d9\ud654...\u3137\u3137)<br \/><br \/># \uc790\ub3d9\ud654 \uc774\ub984 \uc124\uc815<br \/>- alias: Livingroom light control<br \/>&nbsp;initial_state: 'on'<br \/>&nbsp;trigger:<br \/># \ud2b8\ub9ac\uac70 \ud50c\ub7ab\ud3fc\uc740 \uc774\ubca4\ud130<br \/>&nbsp; - platform: event<br \/># \ud0c0\uc785\uc740 \uc0e4\uc624\ubbf8 \ubc84\ud2bc \ud074\ub9ad<br \/>&nbsp; &nbsp;event_type: xiaomi_aqara.click<br \/>&nbsp; &nbsp;event_data:<br \/># \uc5d4\ud2f0\ud2f0 \uc774\ub984 \uc9c0\uc815<br \/>&nbsp; &nbsp; entity_id: binary_sensor.switch_123<br \/># \uc561\uc158 \uc124\uc815<br \/>&nbsp;action:<br \/># \uc11c\ube44\uc2a4\ub294 \ud15c\ud50c\ub9bf\uc73c\ub85c if\ubb38 \ud615\ud0dc \ub9cc\uc871\uc2dc \ud574\ub2f9 \ubb38\uc790\uc5f4\uc744 \ucd9c\ub825\ud568(\"\ud070 \ub530\uc634\ud45c\" \uc0ac\uc774\uc758 \uac12\uc744 \uc0ac\uc6a9)<br \/># \uc2f1\uae00\ud074\ub9ad and (top_right or top_left\uac00 \ucf1c\uc838\uc788\uc744\ub54c) = switch.turn_off \uc11c\ube44\uc2a4 \ud638\ucd9c<br \/>## \uc544\ub798 \uc608\uc81c\uc5d0\ub294 template \ubb38\uad6c \uc0ac\uc774\uc5d0 # \uc73c\ub85c \uc8fc\uc11d\uc744 \ub123\uc5c8\uc73c\ub098, \ubb38\ubc95 \uc624\ub958\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc \uc0ad\uc81c \ud544\uc694 ##<br \/>&nbsp; - service_template: \"{% if trigger.event.data.click_type == 'single' and<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(is_state('switch.top_right', 'on') or is_state('switch.top_left', 'on')) %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.turn_off<br \/># \uc2f1\uae00\ud074\ub9ad and (center_right or center_left \uac00 \ucf1c\uc9d0) and (tor_right or top_left\uac00 \uaebc\uc9d0)<br \/># = switch_turn_of \uc11c\ube44\uc2a4 \ud638\ucd9c<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'single' and<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(is_state('switch.center_right', 'on') or is_state('switch.center_left', 'on'))<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and (is_state('switch.top_right', 'off') or is_state('switch.top_left', 'off')) %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.turn_on<br \/># \ubcc4\ub3c4 \uc870\uac74 \uc5c6\uc774 \uc2f1\uae00\ud074\ub9ad\uc2dc = switch.turn_on \uc11c\ube44\uc2a4 \ud638\ucd9c<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'single' %} switch.turn_on<br \/># \ubcc4\ub3c4 \uc870\uac74 \uc5c6\uc774 \ub354\ube14\ud074\ub9ad\uc2dc = switch.turn_off \uc11c\ube44\uc2a4 \ud638\ucd9c<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'double' %} switch.turn_off<br \/># if\ubb38 \uc885\ub8cc<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% endif %}\"<br \/># \ud638\ucd9c\ud560 \ub370\uc774\ud130\ub97c \ud15c\ud50c\ub9bf\uc73c\ub85c \uc9c0\uc815\ud568<br \/>&nbsp; &nbsp;data_template:<br \/># \ud638\ucd9c\uc2dc \uc5d4\ud2f0\ud2f0 ID\ub97c \ub2e4\uc74c \uac12\uc73c\ub85c \uc9c0\uc815<br \/># \uc2f1\uae00\ud074\ub9ad and (top_right or top_left\uac00 on\uc778 \uacbd\uc6b0) = \ub2e4\uc74c \uc5d4\ud2f0\ud2f0\ub97c \uc9c0\uc815 switch.top_left, switch.top_right<br \/>&nbsp; &nbsp; entity_id: \"{% if trigger.event.data.click_type == 'single' and (is_state('switch.top_right', 'on')<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or is_state('switch.top_left', 'on')) %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.top_left, switch.top_right<br \/># \uc2f1\uae00\ud074\ub9ad and (center_right or center_left \uac00 \ucf1c\uc9d0) and (tor_right or top_left\uac00 \uaebc\uc9d0)<br \/># = \ub2e4\uc74c \uc5d4\ud2f0\ud2f0\ub97c \uc9c0\uc815 switch.top_left, switch.top_right<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'single' and (is_state('switch.center_right', 'on')<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or is_state('switch.center_left', 'on')) and (is_state('switch.top_right', 'off')<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;or is_state('switch.top_left', 'off')) %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.top_left, switch.top_right<br \/># \ubcc4\ub3c4 \uc870\uac74 \uc5c6\uc774 \uc2f1\uae00 \ud074\ub9ad\uc778 \uacbd\uc6b0 = switch.center_left, switch.center_right \ub97c \uc9c0\uc815<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'single' %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.center_left, switch.center_right<br \/># \ubcc4\ub3c4 \uc870\uac74\uc5c6\uc774 \ub354\ube14\ud074\ub9ad\uc778 \uacbd\uc6b0 = bottom_left, center_left, center_right, top_left, top_right<br \/># \ub97c \uc9c0\uc815<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{% elif trigger.event.data.click_type == 'double' %}<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch.bottom_left, switch.center_left, switch.center_right, switch.top_left, switch.top_right<br \/># if\ubb38 \uc885\ub8cc<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {% endif %}\"<br \/><br \/>&nbsp; \u203b \ud15c\ud50c\ub9bf \uad6c\ubb38 \uc911\uac04\uc5d0 #\uc73c\ub85c \uc8fc\uc11d \ub123\uc740 \ubd80\ubd84\uc740 \uc9c0\uc6cc\uc8fc\uc154\uc57c \ud569\ub2c8\ub2e4.<br \/>&nbsp; &nbsp;\ud15c\ud50c\ub9bf\uc740 \ucc98\uc74c \" \ubd80\ud130 \ub9c8\uc9c0\ub9c9 \" \uc0ac\uc774\uc5d0 \uc788\ub294 \ubaa8\ub4e0 \uae00\uc790\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uae30\ub54c\ubb38\uc5d0<br \/>&nbsp; &nbsp;\uc8fc\uc11d\ucc98\ub9ac\ub294 \uc18c\uc6a9\uc774 \uc5c6\uc2b5\ub2c8\ub2e4. \uc124\uba85\uc744 \uc704\ud574 \ucca8\ubd80\ud55c \ubd80\ubd84\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc \uc9c0\uc6b0\uc154\uc57c \ud569\ub2c8\ub2e4.<br \/><br \/>&nbsp; \uc704\uc640 \uac19\uc774 \ud558\uba74 \ub2e4\uc74c \uc21c\uc11c\ub85c \uc790\ub3d9\ud654\uac00 \uc774\ub8e8\uc5b4 \uc9d1\ub2c8\ub2e4.<br \/>&nbsp; \uc2f1\uae00\ud074\ub9ad&rarr;top_right \ud639\uc740 top_left\uac00 \ucf1c\uc838 \uc788\ub294\uac00?<br \/>&nbsp; &nbsp;\u261e yes&rarr;switch.turn_off \uc11c\ube44\uc2a4+top_right, top_left \uc5d4\ud2f0\ud2f0 \uc9c0\uc815<br \/>&nbsp; &nbsp;\u261e no&rarr;\ub2e4\uc74c if\ubb38 \ud655\uc778<br \/>&nbsp; \uc2f1\uae00 \ud074\ub9ad&rarr;cneter_left \ud639\uc740 center_right \uac00 \ucf1c\uc838 \uc788\uace0, top_right \ud639\uc740 top_left\uac00 \ucf1c\uc838 \uc788\ub294\uac00?<br \/>&nbsp; &nbsp;\u261e yes&rarr;switch.turn_on \uc11c\ube44\uc2a4+top_right, top_left \uc5d4\ud2f0\ud2f0 \uc9c0\uc815<br \/>&nbsp; &nbsp;\u261e no&rarr;\ub2e4\uc74c if\ubb38 \ud655\uc778<br \/>&nbsp; \uc2f1\uae00 \ud074\ub9ad&rarr;switch.turn_on \uc11c\ube44\uc2a4+center_left, center_right \uc5d4\ud2f0\ud2f0 \uc9c0\uc815\ud558\uc5ec \ubd88 \ucf1c\uae30<br \/>&nbsp; \ub354\ube14\ud074\ub9ad&rarr;switch.turn_off \uc11c\ube44\uc2a4+\ubaa8\ub4e0 \uc5d4\ud2f0\ud2f0 \uc9c0\uc815\ud558\uc5ec \ubd88 \ub044\uae30<br \/><br \/>&nbsp; top_left: \uac70\uc2e4 \uc8fc\ub4f1, top_right: \uc2dd\ud0c1\ub4f1&rarr;\uc8fc\ub85c \uc2dd\uc0ac\ud560\ub54c \ucf2c<br \/>&nbsp; center_left: \uac70\uc2e4 \ubcf4\uc870\ub4f1, center_right: \uc8fc\ubc29\ub4f1&rarr;\ud3c9\uc0c1\uc2dc \ucf1c\ub294 \uc804\ub4f1<br \/><br \/>&nbsp; \uadf8\ub798\uc11c \uc800\ud76c\uc9d1\uc5d0\uc120 \uc774\ub807\uac8c \ub3d9\uc791\ud569\ub2c8\ub2e4.<br \/>&nbsp; \uac70\uc2e4 \ubcf4\uc870\ub4f1\uc774\ub098 \uc8fc\ubc29 \ub4f1\uc774 \uaebc\uc838\uc788\ub294 \uc0c1\ud0dc\ub85c \uc2f1\uae00\ud074\ub9ad&rarr;\uac70\uc2e4+\uc8fc\ubc29\ub4f1 \uc810\ub4f1<br \/>&nbsp; \uac70\uc2e4\ubcf4\uc870\ub4f1\uc774\ub098 \uc8fc\ubc29\ub4f1\uc774 \ucf1c\uc838\uc788\uace0, \uac70\uc2e4 \uc8fc\ub4f1 \ud639\uc740 \uc2dd\ud0c1\ub4f1\uc774 \uaebc\uc9c4\uc0c1\ud0dc\ub85c \uc2f1\uae00\ud074\ub9ad&rarr;\uc2dd\ud0c1, \uac70\uc2e4 \uc8fc\ub4f1 \uc810\ub4f1<br \/>&nbsp; \uac70\uc2e4 \ubc0f \uc2dd\ud0c1\ub4f1\uc774 \ub2e4 \ucf1c\uc9c4 \uc0c1\ud0dc\ub85c \uc2f1\uae00\ud074\ub9ad&rarr;\uc2dd\ud0c1, \uac70\uc2e4 \uc8fc\ub4f1 \uc18c\ub4f1<br \/>&nbsp; \uc5b4\ub5a0\ud55c \uc0c1\ud0dc\uc5d0\uc11c\ub4e0 \ub354\ube14\ud074\ub9ad&rarr;\ubaa8\ub4e0 \ub4f1 \uc18c\ub4f1<\/span>\n","protected":false},"excerpt":{"rendered":"<p>Home Assistant \uc790\ub3d9\ud654 \uad6c\uc131\uc5d0 \ub300\ud55c \uac1c\ub150\ucd9c\ucc98: https:\/\/rayblog.tistory.com\/168\ucc38\uace0: https:\/\/www.home-assistant.io\/docs\/automation\/ 1. \uc790\ub3d9\ud654(\uc624\ud1a0\uba54\uc774\uc158) \uc774\ub780?&nbsp; \uc790\ub3d9\ud654\ub780, \uae00\uc790 \uadf8\ub300\ub85c \ud2b9\uc815 \ub3d9\uc791\uc744 \uc0ac\ub78c\uc774 \uc2e4\ud589\ud558\uc9c0 \uc54a\uace0 \uc790\uccb4\uc801\uc73c\ub85c \uc2e4\ud589\ud560 \uc218 \uc788\uac8c \ub9cc\ub4dc\ub294\uac83 \uc785\ub2c8\ub2e4.&nbsp; \uc790\ub3d9\ud654\uac00 \uc5b4\ub824\uc6b4\uac83 \uac19\uc9c0\ub9cc, \uc800\ud76c\ub294 \uc2e4\uc81c\ub85c \uc774\ubbf8 \uad6c\uc131\ub41c \uc790\ub3d9\ud654\ub97c \uc2e4\uc0dd\ud65c\uc5d0\uc11c \ub9ce\uc774 \uc0ac\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.&nbsp; \uc81c \uc0dd\uac01\uc5d0 \uac00\uc7a5 \uc27d\uac8c \uc811\ud560 \uc218 \uc788\uace0 \uc0ac\uc6a9\ud558\uace0 \uc788\ub294 \uc790\ub3d9\ud654\ub294, \uc13c\uc11c\ub4f1\uc778\uac83 \uac19\uc2b5\ub2c8\ub2e4. &nbsp; \uc6c0\uc9c1\uc784\uc774 \uac10\uc9c0\ub418\uba74&rarr;\ubd88\uc774 \ucf1c\uc9c4\ub2e4.&rarr;xx\ucd08 \ud6c4 \ubd88\uc774 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[93],"tags":[],"class_list":["post-8336","post","type-post","status-publish","format-standard","hentry","category-computing_iot"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8336"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8336\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}