diff --git a/components/ratgdo/ratgdo_state.h b/components/ratgdo/ratgdo_state.h
index 06e278c..cf6d6a2 100644
--- a/components/ratgdo/ratgdo_state.h
+++ b/components/ratgdo/ratgdo_state.h
@@ -67,6 +67,7 @@ namespace ratgdo {
         MOTOR_STATE_OFF = 0,
         MOTOR_STATE_ON = 1,
     };
+    const char* motor_state_to_string(MotorState state);
 
 } // namespace ratgdo
 } // namespace esphome
\ No newline at end of file