zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Cant change MQTT server both on WebUI and Configuration.yaml

Open Jezza34000 opened this issue 2 years ago • 3 comments

What happened?

I can't change MQTT SERVER both on WebUI on in Configuration.yaml I got an error on WebUI, and dosen't take effect when i change it into yaml file.

Screenshot from 2024-01-15 14-24-38

What did you expect to happen?

Changing my MQTT server mqtt > server (in configuration.yaml) MQTT server* (in WebUI)

How to reproduce it (minimal and precise)

Change MQTT SERVER into WebUI or into Configuration.yaml

Zigbee2MQTT version

1.35.1

Adapter firmware version

20230507

Adapter

itead SonOff Zigbee 3.0 Dongle PLUS

Setup

HAOS

Debug log

When i try ot change in WebUI i got thoses messages : Cannot read properties of null (reading 'length') Request 'zigbee2mqtt/bridge/request/options' failed with error: 'Cannot read properties of null (reading 'length')'

When i try to change over configuration.yaml it still use old configuration...

Screenshot from 2024-01-15 14-29-49

Zigbee2MQTT:info  2024-01-15 14:30:51: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  2024-01-15 14:30:51: Connecting to MQTT server at mqtt://core-mosquitto:1883
Zigbee2MQTT:info  2024-01-15 14:30:51: Connected to MQTT server
Zigbee2MQTT:info  2024-01-15 14:30:51: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'

Jezza34000 avatar Jan 15 '24 13:01 Jezza34000

Same problem :( I want to switch it to use my own internal broker I have running on my Synology that I send other messages to from my own devices/code but I get this error.

jwvanderbeck avatar Apr 22 '24 13:04 jwvanderbeck

An alternative is to modify the Add-On configuration. But I do agree that a real fix is needed.

base_topic: zigbee2mqtt
server: mqtt://192.168.45.201:1883
user: xxxxxxx
password: xxxxxxxxxxxx
include_device_information: true

mihsu81 avatar May 09 '24 17:05 mihsu81

If you use the Home Assistant zigbee2mqqt add-on, you can change it via the add-on's 'Configuration' tab if you switch to 'Edit in YAML' (editing /config/zigbee2mqtt/configuration.yaml directly doesn't work in the HA case)

weljajoh avatar May 25 '24 07:05 weljajoh