Did you trigger the Alexa discovery process in between configuration changes?
Also, you should update the stateMappings to reflect the proper state based on the comment below?