Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #在configuration.yaml新增以下指令,檢查YAML後重啟就會出現
- template:
- - binary_sensor:
- - name: "some_door" #換成你要的名字
- unique_id: some_door #換成你要的名字
- device_class: door
- state: >
- {{ states('binary_sensor.你要改的實體id') }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement