Sounds like you have more than one iDevice logged into your iCloud account with HomeKit enabled, and one is overwriting the other in iCloud. That's not supposed to happen of course, but it can. Try signing out of iCloud on the other device(s) briefly or turn them off, then make your changes and see if it sticks.