diff --git a/components/ratgdo/ratgdo_state.h b/components/ratgdo/ratgdo_state.h index 24a021b..e06feb6 100644 --- a/components/ratgdo/ratgdo_state.h +++ b/components/ratgdo/ratgdo_state.h @@ -45,12 +45,14 @@ namespace ratgdo { LOCK_STATE_LOCKED = 1, LOCK_STATE_UNKNOWN = 2, }; + const char* lock_state_to_string(LockState state); /// Enum for all states a the motion can be in. enum MotionState : uint8_t { MOTION_STATE_CLEAR = 0, MOTION_STATE_DETECTED = 1, }; + const char* motion_state_to_string(MotionState state); /// Enum for all states a the obstruction can be in. enum ObstructionState : uint8_t { @@ -58,6 +60,7 @@ namespace ratgdo { OBSTRUCTION_STATE_CLEAR = 1, OBSTRUCTION_STATE_UNKNOWN = 2, }; + const char* obstruction_state_to_string(ObstructionState state); } // namespace ratgdo } // namespace esphome \ No newline at end of file