i am trying to add a quirk for a thermostat, i have created the directory /config/custom_zha_quirks/ and have added this directory to configuration.yaml in the following format
zha:
custom_quirks_path: /config/custom_zha_quirks/
however i receive the following error message
The system cannot restart because the configuration is not valid: Invalid config for [zha]: not a directory for dictionary value @ data[‘zha’][‘custom_quirks_path’]. Got ‘/config/custom_zha_quirks/’. (See /config/configuration.yaml, line 17).
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
zha:
custom_quirks_path: /config/custom_zha_quirks
and i get the folowing error.
The system cannot restart because the configuration is not valid: Invalid config for [zha]: not a directory for dictionary value @ data[‘zha’][‘custom_quirks_path’]. Got ‘/config/custom_zha_quirks’. (See /config/configuration.yaml, line 17).
This makes sense, i was surprised i could not find more posts about people that had the same issue as i did, but i have come out of this a little more knowledgeable. Thanks for looking into this further, its always good to know why what I was trying wouldn’t work.
For others with Home Assistant Yellow that are running into this:
try placing the “custom_zha_quirks” folder in the same folder where you configured “configuration.yaml”.
In the root folder of HAY I had another /config/ folder (containing config.yaml), but that’s not actually where the quirks folder is supposed to be.
I’m kind of new to HA, so I don’t understand why custom_quirks_path: /config/custom_zha_quirks is not pointing to /config/custom_zha_quirks/ but instead to /homeassistant/custom_zha_quirks/ but there must be a good reason!
Hey for anyone having the issue, this resolved the error for me:
Created dir in homeassistant folder “/homeassistant/custom_zha_quirks/” and added the quirks to that folder
Created same dir in the root “/config/custom_zha_quirks/” and added the quirks to that folder as well. (I have not tested if the file needs to be in both dirs)
Now the error is no longer present and HA can be restarted.
I run HA OS on Raspberry Pi 3 B+ directly.
Hope that helps anyone who is having the same issue. I found other solutions that worked for others but I kept getting the same error.