For quite some time I have been a happy user of my own fork of (an older version of) the P1 Smartmeter App (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 ) :
- I want to hide Athom’s default
measure_power
capability (by using"uiComponent": null
?) - I want to use a custom icon for gas
Below is the relevant part of my app.json
:
{
"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?