I am trying to create a custom capability similar to that of a contact sensor. I am able to create the capability and presentation with the CLI and my device is packaged when that capability is used in the profile. However, I can’t get it to show up in the UI. Here are the yml files:
Capability
name: Aux Contact Sensor
attributes:
contact:
schema:
type: object
properties:
value:
type: string
enum:
- open
- closed
additionalProperties: false
required:
- value
enumCommands: []
id: myId.auxContactSensor
version: 1
Presentation
dashboard:
states:
- label: "{{contact.value}}"
alternatives:
- key: open
value: Open
- key: closed
type: inactive
value: Closed
actions: []
basicPlus: []
detailView:
- label: Aux Contact Sensor
displayType: state
state:
label: "{{contact.value}}"
alternatives:
- key: open
type: active
value: Open
- key: closed
type: inactive
value: Closed
automation:
conditions: []
actions: []
id: myId.auxContactSensor
version: 1
Any ideas what I may be missing? I plan to add some commands to this capability once I get this working