# Want to hide default capability and use custom icon; what do I do wrong here?

**URL:** <https://community.homey.app/t/want-to-hide-default-capability-and-use-custom-icon-what-do-i-do-wrong-here/26301>\
**Category:** Developers\
**Created:** [February 23, 2020, 3:20pm UTC](https://community.homey.app/t/want-to-hide-default-capability-and-use-custom-icon-what-do-i-do-wrong-here/26301 "2020-02-23T15:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [February 23, 2020, 3:20pm UTC](https://community.homey.app/t/want-to-hide-default-capability-and-use-custom-icon-what-do-i-do-wrong-here/26301/1 "2020-02-23T15:20:00Z")

</div>

For quite some time I have been a happy user of my own fork of (an older version of) the [P1 Smartmeter App](https://github.com/koktaildotcom/com.p1.smartmeter) (main difference: I have different drivers for electricity and gas), but lately I have been unsuccessful in fixing two annoyances (and I am even more annoyed that I can’t fix them myself 😉) :

1. I want to hide Athom’s default `measure_power` capability (by using `"uiComponent": null`?)
2. I want to use a custom icon for gas

Below is the relevant part of my `app.json`:

```auto
{
  "drivers": [
    {
      "id": "p1-smartmeter-electricity",
      "capabilitiesOptions": {
        "measure_power": {
          "uiComponent": null
        }
      }
    },
    {
      "id": "p1-smartmeter-gas",
      "capabilities": [
        "meter_gas.measure"
      ],
      "capabilitiesOptions": {
        "meter_gas.measure": {
          "icon": "./assets/images/gas.svg"
        },
      }
    }
  ]
}

```

However, Athom’s default capability is still shown and my gas icon is not displayed.

What might I be doing wrong here?
