ÀÏ´Ü Home Assistant¶õ...
Ȩ ÀÚµ¿È¸¦ ¸ñÀûÀ¸·Î ¸¸µé¾îÁø ¿ÀǼҽº ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù.
IOTÀåºñ¸¦ ÅëÇÕ°ü¸®Çϴ°ÅÁÒ.
https://www.home-assistant.io/
Á¦°¡ ¾²´Â IOTÀåºñ´Â...
±¸±Û Home
»þ¿À¹Ì
½º¸¶Æ®¾ÅÁî(»ï¼º)
Tuya(½º¸¶Æ®¶óÀÌÇÁ)
Á¤µµÀÌ°í¿ä.
»ç½Ç »þ¿À¹Ì ¸»°í´Â ½º¸¶Æ®¾ÅÁ ±¸±ÛȨ¿¡¼ ÅëÇÕ°ü¸®°¡ °¡´ÉÇÕ´Ï´Ù -.-;
¹¹ ÇÏ¿©°£ »þ¿À¹Ì Àåºñ¶§¹®¿¡ Home Assistant¸¦ Ŭ¶ó¿ìµå¿¡¼ µ¹·Áº¼·Á°í Çߴµ¥....
TuyaÀåºñ´Â Àß µ¹¾Æ°¬À¸³ª ³»ºÎ³×Æ®¿öÅ©¸¦ ¾²´Â »þ¿À¹Ì Àåºñ³ª Å©·Òij½ºÆ® Àåºñ°°Àº°Ô ¾Èµ¹¾Æ°¡¼ ÀÌ·¡Àú·¡ Çغ¸´Ï µ¹¾Æ°¡³×¿ä. »þ¿À¹ÌÀåºñ´Â ¼³Á¤¿¡ Ŭ¶ó¿ìµå Ä¿³Ø¼ÇÀ» »ç¿ëÇÏ´Â°Ô ¿É¼ÇÀִµ¥ ÀÌ»óÇÏ°Ô ¾ÈµÇ´õ±º¿ä.
´ë·« ÀÌ·±±¸¼ºÀ¸·Î ÇÏ´Ï Àß µ¹¾Æ°¡´Â°Í °°½À´Ï´Ù.
ÀÌ »óÅ¿¡¼µµ »þ¿À¹Ì Àåºñ´Â ¿¬°áÀÌ ¾ÈµÇ¾î¼ Xiaomi Miio ´ë½Å Ãß°¡ ¾Öµå¿ÂÀ¸·Î Xiaomi Miot¸¦ ±ò¾Æ¼ ¾²´Ï µÇ³×¿ä.
°á±¹ vpnÀÇ ÁÖ¼Ò¸¦ 192.168.0.0/24´ë¿ªÀ¸·Î ¿Å±â°í
subnetÀ» 192.168.0.0/23(255.255.254.0)À¸·Î ÀâÀº°Ô ÇÙ½ÉÀÔ´Ï´Ù.
Ŭ¶ó¿ìµå¿¡¼ »ç¿ëÇÑ docker-compose.ymlÀÔ´Ï´Ù.
version: "3"
services:
wg-client:
image: lscr.io/linuxserver/wireguard:latest
container_name: wg-client
cap_add:
- NET_ADMIN
- SYS_MODULE #optional
environment:
- PUID=1001
- PGID=1001
- TZ=Asia/Seoul
volumes:
- /opt/wg-client:/config
- /lib/modules:/lib/modules #optional
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /opt/homeassistant:/config
restart: unless-stopped
privileged: true
network_mode: "service:wg-client"
¹¹ Å©°Ô °ü½ÉÀÖÀ¸½Å ºÐÀº ¾øÀ¸½Ç°Í °°Áö¸¸ ´©±º°¡¿¡°Ô´Â Ȥ½Ã³ª µµ¿òÀÌ µÇÁö ¾ÊÀ»±î ½Í¾î¼ ½áº¾´Ï´Ù.
µ¡ Ȩ³×Æ®¿öÅ© ³»¿¡¼ home assistant¸¦ µ¹¸®´Â°Å¸é ÀÌ·± »¹Áþ ¾ÈÇصµ µË´Ï´Ù ^^; |