Device on/off switch was not showing the correct state if speed was zero