Just wondering if I’m missing something here. My configuration.yaml contains:
devices: devices.yaml
That file exists in the same directory (data) and is writable for the user running zigbee2mqtt. However, all new devices get appended in configuration.yaml.
I’ve been trying to use the devices.yaml since I started using zigbee2mqtt, so I have restarted it plenty of times since then, to no avail.
Which section of the configuration.yaml do you have the option in?
soo, zigbee2mqtt is still running strong, but the problem I have remains. I’m rather surprised that nobody else seems to have it.
So is there anyone that can use a separate file for the devices (that they get added into upon pairing new devices)? If so, could you share your configuration.yaml?
I use a dedicated devices.yaml as well. I’ve had no issues so far. Maybe you had some devices in the main configuration.yaml when you added “devices: devices.yaml”? I would suggest, that you post your complete configuration.yaml here?
Sure, here it is.
Whatever I try, the devices.yaml gets ignored everytime and zigbee2mqtt appends the “newly” found devices to my configuration.yaml.
I obviously deleted the devices from configuration.yaml and put them in devices.yaml.
Is there a special format for the devices.yaml? Does it need to contain “devices:” as the first line?
And yes, the zigbee-port is a link to the real port, so that works.
I don’t know how you did that, but even the “preformatted text” using backticks doesn’t show my indentations. Strange. No way to put in verbatim text, either.
But your assumption is correct, I have “devices.yaml” indented because I assumed that it belonged to the “experimental” section. That does not seem to be the case. I’ll remove the indentation and try again tonight.
It was the spaces, it’s working now as expected. Thanks again.
Still, for what it’s worth, I think the yaml-format IS a really weird configuration file format…