2025/02/28

HA 몇가지 짧막한 팁


그룹장치 상태 설정할 때 하나의 장치라도 켜져 있으면 'on'이 디폴트인데 반대로 장치가 하나라도 꺼져 있으면 'off'로 세팅하고 싶으면 al: true 옵션을 사용.

group.yaml
water_level: 
  name: "Water Level"
  entities:
    - binary_sensor.water_level
    - binary_sensor.water_level2
  all: true



HA 자동화에 정규식은 regex_search()를 사용.

value_template: >
  {{ state_attr('sensor.sm_a528b_last_notification', 'android.messages')
  | regex_search('배송[이을]?\s?(완료|되었|됐)') }}



사이드바 메뉴버튼 색상 설정
sidebar-menu-button-background-color: rgb(245, 245, 245)