Advertisement
xangin

template binary sensor

Sep 30th, 2022
1,315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.31 KB | None | 0 0
  1. #在configuration.yaml新增以下指令,檢查YAML後重啟就會出現
  2. template:
  3.   - binary_sensor:
  4.       - name: "some_door" #換成你要的名字
  5.         unique_id: some_door #換成你要的名字
  6.         device_class: door
  7.         state: >
  8.          {{ states('binary_sensor.你要改的實體id') }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement