The advancement of Internet of Things (IoT) technology has accelerated the implementation of smart home systems capable of generating large volumes of user activity data. These data have significant potential to be analyzed in order to discover user behavior patterns in utilizing household devices. However, the complexity of such data makes manual analysis difficult. This research aims to analyze user activity patterns in an IoT-based smart home system using the Apriori algorithm with a time-based approach. The dataset consists of sensor activity data, including time, motion sensor (PIR) status, lighting status, air conditioner status, and temperature categories. The research methodology follows the CRISP-DM framework, which includes data understanding, data preparation, modeling, and evaluation stages. The results indicate that the Apriori algorithm successfully generates association rules that represent user behavior patterns, such as the relationship between time and device usage. The time-based approach improves confidence values and produces more contextual patterns compared to non-time-based analysis. Therefore, the findings can be utilized as a foundation for developing more intelligent and adaptive smart home automation systems.