binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 12:19:52 -05:00
parent dd86f7c756
commit 1ba53cbb6d
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -21,13 +21,17 @@ namespace ratgdo {
case esphome::ratgdo::DoorState::DOOR_STATE_OPEN:
this->position = COVER_OPEN;
this->current_operation = COVER_OPERATION_IDLE;
break;
case esphome::ratgdo::DoorState::DOOR_STATE_CLOSED:
this->position = COVER_CLOSED;
this->current_operation = COVER_OPERATION_IDLE;
break;
case esphome::ratgdo::DoorState::DOOR_STATE_OPENING:
this->current_operation = COVER_OPERATION_OPENING;
break;
case esphome::ratgdo::DoorState::DOOR_STATE_CLOSING:
this->current_operation = COVER_OPERATION_CLOSING;
break;
case esphome::ratgdo::DoorState::DOOR_STATE_STOPPED:
default:
this->current_operation = COVER_OPERATION_IDLE;