mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-04 02:48:13 +10:00
Doc: add comment regarding position feature usage (#111)
* add comment regarding position feature usage * add doc link
This commit is contained in:
@@ -12,8 +12,9 @@ HAMqtt mqtt(client, device);
|
||||
// "myCover" is unique ID of the cover. You should define your own ID.
|
||||
HACover cover("myCover", HACover::PositionFeature);
|
||||
|
||||
// Cover with the position feature:
|
||||
// HACover cover("myCover", HACover::PositionFeature);
|
||||
// PositionFeature is optional, however required to be in a "stopped" state other than open or closed.
|
||||
// If ommitted, a CommandStop will result in HA treating the cover as either Open or Closed immediately after the command.
|
||||
// See https://www.home-assistant.io/integrations/cover.mqtt/
|
||||
|
||||
void onCoverCommand(HACover::CoverCommand cmd, HACover* sender) {
|
||||
if (cmd == HACover::CommandOpen) {
|
||||
|
||||
Reference in New Issue
Block a user