Self-powered system makes smart windows smarter