MQTT Binding state not updating in openhab

I do the same. The first linked tutorial is file based configuration. The first link in the second linked tutorial takes you to a tutorial with file based configurations. Example:

Note that openHAB isn’t very good at picking up changes to the Things files on the fly. You can restart openHAB like you’ve done, or I do this.