Просмотр исходного кода

docs(cover): document current_position dp

This has existed for a long time, and is needed to report position, as some devices
don't update position from what the user last set when the curtain is moved in other
ways, so we cannot always trust it. But for some reason it was missing from the
documentation even though the more recently added tilt_position is there.
Jason Rumney 2 дней назад
Родитель
Сommit
b9caa0155d
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      custom_components/tuya_local/devices/README.md

+ 1 - 0
custom_components/tuya_local/devices/README.md

@@ -650,6 +650,7 @@ Either **position**, **action** or **open** should be specified otherwise the co
 
 
 - **position** (optional, number 0-100): a dp to control the percentage that the cover is open.
 - **position** (optional, number 0-100): a dp to control the percentage that the cover is open.
     0 means completely close, 100 means completely open.
     0 means completely close, 100 means completely open.
+- **current_position** (optional, number 0-100): a dp to report the current percentage that the cover is open. This is required to get feedback from the curtain even if **position** is the same dp, as some curtains always report the last user set position even after the curtain is changed from another source so we need to be able to ignore the position reported by those devices.
 - **control** (optional, mapping of strings): a dp to control the cover. Mainly useful if **position** cannot be used.
 - **control** (optional, mapping of strings): a dp to control the cover. Mainly useful if **position** cannot be used.
     Valid values are `open, close, stop`
     Valid values are `open, close, stop`
 - **action** (optional, string): a dp that reports the current state of the cover.
 - **action** (optional, string): a dp that reports the current state of the cover.