Great to hear it’s now working!
The behavior you see with states is expected. Openhab updates item state automatically when commands are issued.
Please read the following post on autoupdate : Rule to postUpdate an Item works but Item falls back after some seconds
You might want to disable autoupdate with your items.
Sami