Skip to content

Instantly share code, notes, and snippets.

@xangin
xangin / door_open_notify.yaml
Last active August 5, 2021 07:20
Home Assistant Blueprint - Door Open Notify - English describe
blueprint:
name: Door Open Notify
description: While door open, keep send notification after specific times.
domain: automation
input:
door_entity:
name: Door Sensor
selector:
entity:
domain: binary_sensor
@xangin
xangin / door_open_notify_cht.yaml
Last active July 18, 2021 06:42
Home Assistant Blueprint - Door Open Notify - Traditional Chinese describe
blueprint:
name: 門開時發通知
description: 當門持續開啟與間隔多久及門關上時,發送通知提醒
domain: automation
input:
door_entity:
name: 門的實體
selector:
entity:
domain: binary_sensor
@xangin
xangin / ikea_pm25_dht22.yaml
Last active November 28, 2022 07:45
ESPhome IKEA PM2.5 sensor and DHT22 code
esphome:
name: ikea-pm25
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
- id: smart_light_offline_autorestart
alias: "燈斷線超過時間自動重開"
description: "當智慧燈具斷線超過設定的時間,將自動重新開關一次牆壁開關,並透過Line發送通知執行結果"
initial_state: true
trigger:
- platform: state
entity_id:
- light.room
to: 'unavailable'
for:
@xangin
xangin / fan_remote_by_ikea_remote.yaml
Last active April 23, 2023 02:10
IKEA tradfri遙控器控制智慧風扇
blueprint:
name: IKEA遙控器控制智慧風扇
description: 可控制開關/擺頭/風速增減,遙控器中間鈕為開關鍵
domain: automation
input:
fan_entity:
name: 風扇實體
selector:
entity:
domain: fan
@xangin
xangin / smart_fan_control_by_wireless_button.yaml
Last active June 10, 2023 14:07
無線開關控制智慧風扇
blueprint:
name: 無線開關控制智慧風扇
description: 可利用任何無線開關來控制智慧風扇的開關/擺頭/風速增減,按鈕會產生何種action請參考無線開關在Z2M的說明
domain: automation
input:
fan_entity:
name: 風扇實體
selector:
entity:
domain: fan
blueprint:
name: 用耗電量來偵測電器已完成任務
description: >
使用任何的耗電量感測器來偵測電器(如洗衣機、烘衣機、洗碗機)
This is Chinese version of blueprint was original created by: [sbyx](https://gist.github.com/sbyx/6d8344d3575c9865657ac51915684696)
domain: automation
input:
power_sensor:
name: 電量感測器
substitutions:
devicename: dehumidifier
upper_devicename: "dehumidifier"
tx_pin_io: GPIO17
rx_pin_io: GPIO16
esphome:
name: $devicename
friendly_name: ${upper_devicename}
comment: $upper_devicename for Hitachi RD-22FC
blueprint:
name: 空調關閉先定時送風再關機
description: >
### 當空調要關機後<經過20秒>,會先切成"送風模式",並持續一定時間再關機
只要空調從"非"送風或暖氣模式變為"關閉"就會觸發此自動化
請注意!在送風期間HA請勿重啟或重新載入自動化,不然將無法自動關閉空調唷!!
**版本: V24.7.12**
@xangin
xangin / climate_timer_helper.yaml
Last active July 23, 2024 03:26
update V24.7.23: 1. 新增取消時的動作,可發通知。 2. 執行送風後等待20秒,如當下非送風,再設定一次送風
blueprint:
name: 空調關閉定時送風再關機(計時器版)
description: >
### 當空調要關機後<等待20秒>,會先切成"送風模式",並持續一定時間再關機
### 請先至設定>裝置與服務>助手>新增計時器>記得勾選"回復"並填上想要送風多久的時間再來新增此自動化!
只要空調從"非"送風或暖氣模式變為"關閉"就會觸發此自動化,轉為送風並開始倒數
當倒數結束就會關閉空調,如果在倒數期間切換其他模式,將停止倒數不會繼續