[C-ZB-LC20] How do I install Home Assistant ZHA quirks?

[C-ZB-LC20] How do I install Home Assistant ZHA quirks?



To do this you must have a file editor installed on your Home Assistant instance, our instructions are based on Studio Code Server.

Editing your configuration.yaml file.
  1. On your Home Assistant instance click Studio Code Server.
  2. Select configuration.yaml, and then click in the text editor to close the filesystem. 
  3. Paste the following into the open configuration.yaml:
    zha:

      custom_quirks_path: /config/zha_quirks/

  4. Click the "Save" icon.
Installing the quirk files.
  1. In another browser tab go to: 
    1. RGB+CCT: https://github.com/candeosmart/homeassistant-zha/blob/main/candeo_lc20_led_controller_rgbcct.py
    2. RGBW: https://github.com/candeosmart/homeassistant-zha/blob/main/candeo_lc20_led_controller_rgbw.py
    3. RGB: https://github.com/candeosmart/homeassistant-zha/blob/main/candeo_lc20_led_controller_rgb.py
    4. CCT: https://github.com/candeosmart/homeassistant-zha/blob/main/candeo_lc20_led_controller_cct.py
    5. Dimmer: https://github.com/candeosmart/homeassistant-zha/blob/main/candeo_lc20_led_controller_dim.py
  2. Click the download icon ("Download raw file")
  3. Go back to your Home Assistant instance, and Studio Code Server.
  4. Click the new folder icon and create a folder called zha_quirks
  5. Right click the new folder.
  6. Click "Upload..." file button, then click the file button.
  7. Browse to your downloaded quirk file ending in .py, select it and click open.
  8. The file should now be in your zha_quirks folder.
The last step is to reload your configuration.yaml file. This can be done by going to settings, system and then clicking the power button at the top right, and selecting quick reload.

Quirk functions

This quirk will increase stability and functionality.