Reverting config yaml file

Hi I am trying to change my MQTT Yaml file so that I can fix the IP address on a zigbee coordinator. I change it and save the file. Then I go to try to run MQTT. It does not connect. When I come back to look at the file it has reverted back to the old information/number. WTH? I have actually sat on a code server editor and on the file editor and seen it revert back on its own from one moment to the next even after I saved my changes. Your help and advice is appreciated. I am running latest version of HA on a proxmox VM.

That sounds like it is hitting DCHP for the IP address. Did you set it with a static or reserve IP address in your router for the IP you want it to have?

This statement is not clear.
Can you show us this files contents, what it’s called. and where it’s stored?

So the file is /homeassistant/zigbee2mqtt/configuration.yaml.
In serial: port: I change tcp://192.168.1.24:6638 for my SLZB-06 to 192.168.22.80. Leave, go back and check. Still fine. I then go to turn on MQTT and it gives me an error. I go back and the old 192.168.1.24:6638 is again in the file. If I check the logs it shows a socket error with the 1.24 address.

I checked the SLZB and it is correctly at 192.168.22.80 and accessible at that address on the new subnet.

Here it is after I change and then how it changes back.

version: 4
MQTT:
base_topic: zigbee2mqtt
server: mqtt://10.95.22.18:1883
user: mosqadmin
password: 2PhlETvnNdCf68kkp
serial:
port: tcp://192.168.22.80:6638
baudrate: 115200
adapter: zstack
disable_led: false

Saved and looks fine. Then after I try to run MQTT and get error.

version: 4
MQTT:
base_topic: zigbee2mqtt
server: mqtt://192.168.22.18:1883
user: mosqadmin
password: 2PhlETvnNdCf68kkp
serial:
port: tcp://192.168.1.24:6638
baudrate: 115200
adapter: zstack
disable_led: false

I have edited the file using file editor and studio code server and same results.

So is this a separate MQTT Broker installed on your proxmox VM? You didn’t say much about how that is setup?

Sorry. Not sure what is relevant and what is not.

No. MQTT is set up inside home assistant. Home assistant is a proxmox VM but does not use anything out side of its VM.

By the way, this all worked great until I changed the subnet. Since I changed the subnet I cannot get it to work because it keeps going back to the old address.

I was thinking that maybe I need to delete the slb06 integration and add it all in again.

Give it a try, it’s not working and holding onto old settings. So a remove and re-install may fix it.

Figure it out. The instructions on the SLBZ06 screen was actually right. You have to use the edit YAML at the three dots of the add on to edit the settings. Editing the config from an editor did not work. Problem solved. Thanks for the help.