The Chinese government recognizes the importance of transforming residents' lifestyles and energy consumption patterns for achieving its "dual carbon goals." Therefore, the government is vigorously promoting residential solar photovoltaic power generation in order to transition from traditional fossil fuels to renewable energy sources such as solar power. China, especially in its western regions, is a society based on interpersonal relationships, and residents generally have limited education levels and awareness. This paper constructs a VAM model to investigate the willingness and behavior of community residents in Ningxia to adopt sustainable energy (solar photovoltaic power generation). This paper focuses on the impact of perceived risk and perceived value on the willingness and behavior of residents in Ningxia Hui Autonomous Region, China, regarding sustainable energy use. The results show that perceived risk and perceived value play a significant role in influencing residents' willingness to adopt new energy sources . The findings can provide theoretical support and practical suggestions for local governments to promote new energy initiatives.