Most of the solar-powered devices can work both indoors and outdoors. A few of them come with micro-rechargeable batteries which enables them to work indoors and on days with cloudy weather.  However, some of the robots that rely only on solar-energy will also work indoors provided they are placed where they’ll receive enough sunlight.