--- title: "Models" --- These models are describing objects that are getting returned from the supervisor API. ## Addon | key | type | description | | ----------- | ------- | ----------------------------------------------------- | | name | string | The name of the add-on | | slug | string | The slug for the add-on | | advanced | boolean | `true` if it should only be visible to advanced users | | description | string | The description of the add-on | | repository | string | The repository the add-on came from | | version | string | The latest published version of the add-on | | installed | string | The installed version of the add-on | | available | boolean | `false` if you can not install the add-on | | icon | bool | The add-on has a icon file | | logo | bool | The add-on has a logo file | | state | string | The state of the add-on (started, stopped) | ## Application | key | type | description | | ------------ | ------- | -------------------------------------- | | name | string | The application name | | index | int | TODO: What is this? | | stream_index | int | TODO: What is this? | | stream_type | string | The type of the stream (INPUT, OUTPUT) | | volume | float | The current volume | | mute | boolean | `true` if the application is muted | | addon | string | The add-on slug | ## Audio | key | type | description | | ----------- | ---- | ----------------------------------------------- | | card | list | A list of [Card models](#card) | | input | list | A list of [Audio device models](#audio-device) | | output | list | A list of [Output device models](#audio-device) | | application | list | A list of [Application models](#application) | ## Audio device | key | type | description | | ------------ | ----------- | -------------------------------------------- | | name | string | The name of the device | | index | int | TODO: What is this? | | description | string | The description of the device | | volume | float | The current volume | | mute | string | `true` if the device is muted | | default | string | `true` if the device is default | | card | int or null | TODO: What is this? | | applications | string | A list of [Application models](#application) | ## Audio profile | key | type | description | | ----------- | ------- | ------------------------------- | | name | string | The name of the profile | | description | string | The description of the profile | | active | boolean | `true` if the profile is active | ## Card | key | type | description | | -------- | ------ | ------------------------------------------------ | | name | string | The name of the card | | index | int | TODO: What is this? | | driver | string | The name of the card driver | | profiles | list | A list of [Audio profile models](#audio-profile) | ## Discovery | key | type | description | | ------- | ------ | ------------------------- | | addon | string | The add-on slug | | service | string | The service name | | uuid | string | The UUID of the discovery | | config | dict | The configuration | ## Host Service | key | type | description | | ----------- | ------ | ----------------------- | | name | string | The service name | | description | string | The service description | | state | string | The service state | ## Network interface | key | type | description | | ----------- | ------- | ---------------------------------------------------------------------------- | | ip_address | string | The IP address and the netmask in a X.X.X.X/XX format. | | gateway | string | The IP address of the gateway. | | id | string | The ID of the interface. | | type | string | The interface type. | | nameservers | list | A list containing the IP addresses of the configured nameservers as strings. | | method | string | The method used to set the IP can be "static" or "dhcp". | | primary | boolean | `true` if it's the primary network interface. | ## Panel | key | type | description | | ------ | ------- | -------------------------------------- | | enable | boolean | `true` if it's enabled | | icon | string | The sidebar icon | | title | string | The sidebar title | | admin | boolean | `true` if it's for admin accounts only | ## Repository | key | type | description | | ---------- | -------------- | ------------------------------------- | | slug | string | The repository slug | | name | string | The name of the repository | | source | string | The URL to the repository | | url | string or null | URL for repository website | | maintainer | string | The name of the repository maintainer | ## Service | key | type | description | | --------- | ------- | ----------------------------------- | | slug | string | The service slug | | available | boolean | `true` if the service is available | | providers | list | A list of providers for the service | ## Snapshot | key | type | description | | --------- | ------- | --------------------------------------------------------------------- | | slug | string | A generated slug for the snapshot | | date | string | A ISO date string representation of the date the snapshot was created | | name | string | The name given to the snapshot | | type | string | The type of snapshot (full, partial) | | protected | boolean | `true` if the snapshot is password protected | ## Snapshot details | key | type | description | | ------------- | ------- | -------------------------------------------------------------------------------------------------------------------------- | | slug | string | A generated slug for the snapshot | | type | string | The type of snapshot (full, partial) | | name | string | The name given to the snapshot | | date | string | A ISO date string representation of the date the snapshot was created | | size | string | The size of the snapshot in MB | | protected | boolean | `true` if the snapshot is password protected | | homeassistant | string | The version of Home Assistant that was in use | | addons | list | A list of add-ons in the snapshot, addons are represented as a dictionary with these keys [`slug`,`name`,`version`,`size`] | | repositories | list | A list of add-on repository URL's as strings | | folders | list | A list of strings representing directories | ## Stats | key | type | description | | -------------- | ----- | ----------------------------------------- | | cpu_percent | float | The percentage of the CPU that is used | | memory_usage | int | The current memory usage in bytes | | memory_limit | int | The max allowed memory usage in bytes | | memory_percent | float | The percentage of the memory that is used | | network_tx | int | Network transmission usage | | network_rx | int | Network receiver usage | | blk_read | int | File system read usage | | blk_write | int | File system write usage |