컴퓨팅

Google Assistant와 Home Assistant 연동

  /var/hass/homeassistant/configuration.yaml에 아래와 같은 형식으로 추가한다. ################################################################################ Google Assistant###############################################################################google_assistant:  project_id: my_project_id  service_account: !include my_project_id_google_key.json  report_state: true  # 기본적으로 기기들을 연동할지 여부를 결정 (수동으로 추가하기 위해 false 처리)  expose_by_default: false  exposed_domains:    – binary_sensor    – cover    – sensor    – switch  entity_config:    # 거실 전동 커튼    cover.curtain_motor:      name: 커튼    […]

Google Assistant와 Home Assistant 연동 더 읽기"

IoT 장치 명명 목록

Zigbee2MQTT명 / 기기명 / IEEE주소 ■Smart Air House Keeper-공기질 센서 (TS0601)  air_house_keeper      “공기질 측정 센서”   0xa4c138131b378875 ■Motion Sensor-재실 센서 (TS0202)  bathroom1-motion_sensor “욕실-1 재실 센서” 0xa4c138e8afc30cc9 ■MOES Tuya Zigbee Light Sensor-조도 센서 (TS0222)  light_sensor  “조도 센서” 0xa4c138528bbd8f49 ■IR 리모컨 (iH-F8260)  livingroom-ir_remocon “거실 IR 리모컨” 0x7cc6b6fffeabd463  innerroom-ir_remocon  “안방 IR 리모컨” 0x403059fffef798cb  ts1201-3    

IoT 장치 명명 목록 더 읽기"

Zigbee2MQTT 새로운 장치 추가

참고: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#instructions 만일 Zigbee 장치가 Z2M에서 정상적으로 인식되지 않을 경우 장치에 대한 외부 정의를 파일로 만들어 Z2M에게 인식시켜주면 된다.이를 위해 아래 과정을 따른다. 1. 제조사 코드로 비슷한 제품으로 인식 시키기  ⑴ Zigbee 제조사 코드 알아내기    Zigbee2MQTT > 0xa4c138758807b972(인식불가 기기) > Zigbee 제조사: _TZE204_w1wwxoja   ⑵ 자신의 기기와 비슷한 기기의 제조사 코드 알아내기    https://github.com/Koenkk/zigbee-herdsman-converters/blob/master/src/devices/tuya.ts 

Zigbee2MQTT 새로운 장치 추가 더 읽기"

TTS Bluetooth Speaker for Home Assistant

원본: https://github.com/pkozul/ha-tts-bluetooth-speaker 이 프로젝트는 Bluetooth 스피커를 통해 TTS(텍스트 음성 변환)를 재생하는 Home Assistant용 미디어 플레이어(사용자 정의 구성 요소)를 제공합니다. HA의 Bluetooth 장치 추적기(존재 감지용)를 사용하는 경우, 이 프로젝트는 두 구성 요소가 원활하게 작동할 수 있도록 하는 대체 Bluetooth 추적기도 제공합니다. Bluetooth 추적기는 지속적으로 장치를 스캔하기 때문에 Bluetooth 스피커에서 오디오 재생이 중단되거나 스캔하는 동안 끊길 수

TTS Bluetooth Speaker for Home Assistant 더 읽기"

Home Assistant IR 리모컨 센서 설정 예제

■관련 링크:  IR리모컨 제어: https://cafe.naver.com/koreassistant/12641  HA 도우미 개념: https://rayblog.tistory.com/206 1.리모컨 코드 얻기  좌측 Zigbee2MQTT > IR 장치 선택 > ⇧Exposes(노출)    Learn ir code: ON    리모컨의 버튼을 누르면 Ir code to send에 코드가 나타나며 추후 등록을 위해 모두 기록해 놓는다.     테스트 리모컨 명: ir_remote1    테스트 리모컨 코드: __code1___ 2.리모컨 발신 스크립트

Home Assistant IR 리모컨 센서 설정 예제 더 읽기"

Home Assistant Reverse Proxy

1.Home Assistant 에서 Reverse Proxy 허용   vi /var/homeassistant/homeassistant/configuration.yaml———-# Enable Reverse Proxyhttp:  use_x_forwarded_for: true  trusted_proxies:    – 10.10.10.0/24    – 127.0.0.1 # Enable WebSocketwebsocket_api:———- 2. apache2 설정 예제   echo “Listen 443” >> /etc/apache2/ports.conf  a2enmod proxy_wstunnel  vi /etc/apache2/sites-available/hass_reverse_proxy.conf———-############################################################ /etc/apache2/sites-available/hass_reverse_proxy.conf## Add the following to Home Assistant’s configuration.yaml:############################################################http:#  use_x_forwarded_for: true#  trusted_proxies:#    – 10.10.10.0/24#    – 10.10.10.108#

Home Assistant Reverse Proxy 더 읽기"

Raspberry Pi 4 Model B

Raspberry Pi OS Download: https://www.raspberrypi.com/software/operating-systems/ Armbian Download: https://www.armbian.com/rpi4b/ Home Assistant Operating System Download: https://github.com/home-assistant/operating-system/releases Specifications: https://www.raspberrypi.com/products/raspberry-pi-4-model-b/specifications/ My Raspberry Pi 4B Mac Address d8:3a:dd:aa:8c:44 ■Specifications  Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.8GHz  4GB LPDDR4-3200 SDRAM (depending on model)  2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE  Gigabit Ethernet  2 USB

Raspberry Pi 4 Model B 더 읽기"

NanoPi R3S

■관련 URL  매뉴얼: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R3S  구입: https://ko.aliexpress.com/item/1005007627886669.html  Homepage: https://www.friendlyelec.com/index.php?route=product/product&product_id=303  Download: https://drive.google.com/drive/folders/1qRUboKk8igBH59lcRJ-9GgrV9J6F2unE ■Toolchain 설치  apt -y install python3-pip  bash -c “$(curl -fsSL https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh)”  설치 테스트:    export PATH=/opt/FriendlyARM/toolchain/11.3-aarch64/bin:$PATH    aarch64-linux-gcc -v ■리눅스 커널 빌드  git clone https://github.com/friendlyarm/kernel-rockchip –single-branch –depth 1 -b nanopi6-v6.1.y kernel-rockchip  cd kernel-rockchip  touch .scmversion   # Configuring the Kernel  # Load default configuration  make

NanoPi R3S 더 읽기"

Home Assistant 자동화 구성에 대한 개념

Home Assistant 자동화 구성에 대한 개념출처: https://rayblog.tistory.com/168참고: https://www.home-assistant.io/docs/automation/ 1. 자동화(오토메이션) 이란?  자동화란, 글자 그대로 특정 동작을 사람이 실행하지 않고 자체적으로 실행할 수 있게 만드는것 입니다.  자동화가 어려운것 같지만, 저희는 실제로 이미 구성된 자동화를 실생활에서 많이 사용하고 있습니다.  제 생각에 가장 쉽게 접할 수 있고 사용하고 있는 자동화는, 센서등인것 같습니다.   움직임이 감지되면→불이 켜진다.→xx초 후 불이

Home Assistant 자동화 구성에 대한 개념 더 읽기"

Home Assistant 기본 통합구성 항목

■쇼핑 리스트https://www.home-assistant.io/integrations/shopping_list/쇼핑 목록 항목을 추적할 수 있습니다.사이드바에서 쇼핑 목록에 액세스할 수 있으며, 대시 보드에 할 일 목록 카드를 추가할 수도 있습니다. 대화 통합을 사용하면 “쇼핑 목록에 계란 추가”와 같은 음성 명령을 사용하여 쇼핑 목록에 항목을 추가할 수 있습니다. ■태양https://www.home-assistant.io/integrations/sun/태양은 Home Assistant 구성에서 태양이 수평선 위 또는 아래에 있는지 추적합니다. 태양은 자동화 내에서 선택적 오프셋을 사용하여

Home Assistant 기본 통합구성 항목 더 읽기"

Install Home Assistant Supervised

✔참고 사이트:   https://github.com/home-assistant/supervised-installer   https://docs.jethome.ru/en/controllers/linux/howto/zigbee2mqtt.html   https://www.zigbee2mqtt.io/guide/configuration/homeassistant.html   https://www.zigbee2mqtt.io/guide/usage/integrations/home_assistant.html   https://rayblog.tistory.com/m/207 ✔사용한 장비:   Raspberry Pi 4 Model B 4GB RAM / OS: Raspberry Pi OS Lite-Debian 12 (bookworm)   SONOFF Zigbee 3.0 USB Dongle Plus V2 / SoC: EFR32MG21 ✔HASS: Home ASSistant —————————————————————————— 1.Home Assistant 종류   Home Assistant Core: 기본 기능만 탑재

Install Home Assistant Supervised 더 읽기"

SONOFF ZBDongle-E 펌웨어 업그레이드

SONOFF Zigbee 3.0 USB Dongle Plus V2 ■펌웨어 다운로드:https://github.com/darkxst/silabs-firmware-builder/tree/main/firmware_builds/zbdonglee ■매뉴얼 다운로드:https://sonoff.tech/wp-content/uploads/2022/11/SONOFF-Zigbee-3.0-USB-dongle-plus-firmware-flashing-.pdf ■플래싱 절차python3 -m venv /root/venvsource /root/venv/bin/activatepip install universal-silabs-flasheruniversal-silabs-flasher –verbose –device /dev/ttyUSB0 –bootloader-reset sonoff flash –firmware ncp-uart-hw-v7.4.4.0-zbdonglee-115200.gbl

SONOFF ZBDongle-E 펌웨어 업그레이드 더 읽기"

Install Home Assistant Core

참고: https://www.home-assistant.io/installation/odroid테스트 장비: Orange Pi Zero2 1. 기본 요구사항  Ubuntu 24.04 이상  Python 3.12 이상 2. 필요한 리눅스 패키지 설치  apt install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev  apt install -y libtiff6 3. 사용자 추가  useradd –system –create-home -c “Home Assistant” -d

Install Home Assistant Core 더 읽기"

[Fortify] SSC Database Upgrade

1. MySQL Database 백업  mysqldump –single-transaction –routines –triggers –max_allowed_packet=2048M -u root -p<Password> db_ssc_2222 > 20240801_ssc_backup.sql 2. SSC 설치 진행  Database 항목에서 DB Connection 테스트 후 우측하단 스크립트 다운로드에서 ssc-migration.sql 다운로드  (하단 그림 참고) 3. ssc-migration.sql 스크립트로 DB 마이그레이션 진행  mysql -u root -p<Password> db_ssc_2222 < ssc-migration.sql   만일 오류 발생 시 아래의 스크립트를 실행하여 원상

[Fortify] SSC Database Upgrade 더 읽기"

[Fortify] SCA/SSC 데모 라이선스 신청

https://microfocus.my.site.com/-> Sign in로그인 후 파트너 포털로 연결됨. Sales Tools > Enablement & Demonstrations Cybersecurity > Access Demo Software & Licenses Application Security > Fortify Partner Evaluation Sub SW E-LTU Submit Request for Software Eval  Quantity*: 1  Confirm ————————————————- https://sld.microfocus.com/계정 선택: JonSeok_Lee_Personal_Account  “↓다운로드” 클릭    제품: Fortify Static Code Analyzer    제품 이름 : Fortify Partner

[Fortify] SCA/SSC 데모 라이선스 신청 더 읽기"

WordPress Astra 테마 검색불가 버그

vi /var/www/blog/wp-content/themes/astra/inc/core/common-functions.php 949번째 줄로 이동 $title = apply_filters( ‘astra_the_search_page_title’, sprintf( /* translators: 1: search string */ astra_get_option( ‘section-search-page-title-custom-title’ ) . ‘ %s’, ‘<span>’ . get_search_query() . ‘</span>’ ) ); . ‘ %s’ 제거 $title = apply_filters( ‘astra_the_search_page_title’, sprintf( /* translators: 1: search string */ astra_get_option( ‘section-search-page-title-custom-title’ ) , ‘<span>’ . get_search_query() . ‘</span>’ ) );

WordPress Astra 테마 검색불가 버그 더 읽기"

위로 스크롤