[HA] Custom Component. 스마트씽큐 건조기,세탁기 완료알림 자동화
준비물
깜찍근영님의 SmartThinq 컴포넌트
[Smartthinq Componen...
대한민국 모임의 시작, 네이버 카페
cafe.naver.com
안녕하세요. 랜이입니다.
깜찍근영님의 스마트씽큐 콤포넌트를 사용하면서 유용한 내용중 하나인 건조기/세탁기 완료알림입니다.
(제일 유용한건 아무래도 시스템에어컨 등 공조기 입니다.)
스마트씽큐 어플 알림보다는 텔레그램으로 알림이 오게 해놨습니다.
기존에는 현재상태/동작상태가 완료 혹은 꺼짐이 되었을때 알림이 오게 해놨는데
세탁기/미니워시의 통신상태가 원활하지 않은것인지 완료알림이 오지않을때가 종종 있더군요.
그래서 한번이라도 연결이 되면 남은시간을 인식하여 Timer 가 작동하게 해놨습니다.
Timer 작동으로 하게하니 알림을 놓치는 일이 없네요.
화장실 조명자동화도 Timer로 수정하여 사용중인데 아주 만족스럽습니다.
(trigger, condition 감소. plag 등 조건상태 판단구문 감소)
아래에내용을 남깁니다.
HA - automations.yaml
- id: timer_dryer_remain_time_start
alias: 건조기 남은시간 타이머 시작
hide_entity: true
trigger:
- entity_id: sensor.dryer_remain_time
platform: state
condition:
- condition: template
value_template: '{% if states("sensor.dryer_remain_time") | timestamp_custom("%H:%M") != "0:00" %}true{%else %}false{% endif %}'
action:
- service: timer.start
entity_id: timer.dryer_remain_timer
data_template:
duration: '{{ states("sensor.dryer_remain_time") | timestamp_custom("%H:%M") }}:00'
- id: timer_dryer_remain_time_finish
alias: 건조기 남은시간 타이머 종료
hide_entity: true
trigger:
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.dryer_remain_timer
condition: []
action:
- data:
message: 건조가 완료되었습니다.
title: '[[건조기]]'
service: notify.telegram
HA - timer.yaml
dryer_remain_timer:
name: Dryer RemainTime Timer