{"id":21970588,"url":"https://github.com/benct/lovelace-attribute-entity-row","last_synced_at":"2026-03-03T18:32:09.781Z","repository":{"id":98422854,"uuid":"178066997","full_name":"benct/lovelace-attribute-entity-row","owner":"benct","description":"Show attribute(s) on entity rows in Home Assistant's Lovelace UI","archived":false,"fork":false,"pushed_at":"2020-01-13T12:24:23.000Z","size":463,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T11:21:34.398Z","etag":null,"topics":["attribute","attributes","home-assistant","home-assistant-frontend","lovelace","lovelace-ui"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benct.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-27T20:06:56.000Z","updated_at":"2024-03-27T12:09:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3ac0057-01f8-41e2-a766-4c89eff12fa6","html_url":"https://github.com/benct/lovelace-attribute-entity-row","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benct/lovelace-attribute-entity-row","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benct%2Flovelace-attribute-entity-row","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benct%2Flovelace-attribute-entity-row/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benct%2Flovelace-attribute-entity-row/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benct%2Flovelace-attribute-entity-row/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benct","download_url":"https://codeload.github.com/benct/lovelace-attribute-entity-row/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benct%2Flovelace-attribute-entity-row/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attribute","attributes","home-assistant","home-assistant-frontend","lovelace","lovelace-ui"],"created_at":"2024-11-29T14:40:42.714Z","updated_at":"2026-03-03T18:32:09.753Z","avatar_url":"https://github.com/benct.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# attribute-entity-row\nShow entity attribute value(s) on entity rows in Home Assistant's Lovelace UI.\n\n[![GH-release](https://img.shields.io/badge/version-1.1.2-red.svg?style=flat-square)](https://raw.githubusercontent.com/benct/lovelace-attribute-entity-row/master/attribute-entity-row.js)\n[![GH-last-commit](https://img.shields.io/github/last-commit/benct/lovelace-attribute-entity-row.svg?style=flat-square)](https://github.com/benct/lovelace-attribute-entity-row/commits/master)\n[![GH-code-size](https://img.shields.io/github/languages/code-size/benct/lovelace-attribute-entity-row.svg?style=flat-square)](https://github.com/benct/lovelace-attribute-entity-row)\n\n**Note:** Semi-deprecated in favor of [multiple-entity-row](https://github.com/benct/lovelace-multiple-entity-row) card, so this card will most likely not be further worked upon.\n\n## Setup\n\nAdd [attribute-entity-row.js](https://raw.githubusercontent.com/benct/lovelace-attribute-entity-row/master/attribute-entity-row.js) to your `\u003cconfig\u003e/www/` folder. Add the following to your `ui-lovelace.yaml` file:\n\n```yaml\nresources:\n  - url: /local/attribute-entity-row.js?v=1.1.2\n    type: js\n```\n\n## Options\n\n| Name | Type | Default | Description\n| ---- | ---- | ------- | -----------\n| type | string | **Required** | `custom:attribute-entity-row`\n| entity | string | **Required** | `sensor.my_sensor`\n| name | string | | Override entity name / friendly_name\n| name_attribute | string | | Use an attribute as the entity name\n| unit | string | | Override state unit_of_measurement\n| toggle | bool | `false` | Display a toogle instead of state\n| hide_state | bool | `false` | Hide the entity state\n| primary | object | *see below* | Primary attribute object\n| secondary | object | *see below* | Secondary attribute object\n\n### Primary/secondary object\n\n| Name | Type | Default | Description\n| ---- | ---- | ------- | -----------\n| key  | string | **Required** | A valid attribute key within the entity\n| name | string | | Name / prefix for attribute\n| unit | string | | Unit / postfix for attribute\n| entity | string | | Use attribute from another entity\n\n## Example\n\n![attribute-entity-row](https://raw.githubusercontent.com/benct/lovelace-attribute-entity-row/master/example.png)\n\n```yaml\ntype: entities\ntitle: attribute-entity-row\nshow_header_toggle: false\nentities:\n  - type: section\n    label: Primary attribute\n\n  - entity: sensor.smoke_sensor_livingroom_temperature\n    type: custom:attribute-entity-row\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n  - entity: light.living_room\n    type: custom:attribute-entity-row\n    primary:\n      key: min_mireds\n      name: 'Attribute:'\n  - entity: media_player.spotify\n    type: custom:attribute-entity-row\n    primary:\n      key: media_title\n\n  - type: section\n    label: Toggle\n\n  - entity: light.living_room\n    type: custom:attribute-entity-row\n    name: Light with Toggle\n    toggle: true\n    primary:\n      key: min_mireds\n      name: Mireds\n  - entity: switch.power_office_pc\n    type: custom:attribute-entity-row\n    toggle: true\n    primary:\n      key: friendly_name\n\n  - type: section\n    label: Customization\n\n  - entity: sensor.smoke_sensor_livingroom_temperature\n    type: custom:attribute-entity-row\n    name: Custom Name\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n  - entity: sensor.motion_hall_temperature\n    type: custom:attribute-entity-row\n    name: Sensor\n    primary:\n      key: battery_level\n      name: 'Value:'\n      unit: units\n  - entity: sensor.motion_hall_temperature\n    type: custom:attribute-entity-row\n    name: Sensor\n    unit: Unit\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n\n  - type: section\n    label: Secondary attribute\n\n  - entity: sensor.magnet_door_main_temperature\n    type: custom:attribute-entity-row\n    secondary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n  - entity: vacuum.xiaomi_vacuum_cleaner\n    type: custom:attribute-entity-row\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n    secondary:\n      key: status\n  - entity: vacuum.xiaomi_vacuum_cleaner\n    type: custom:attribute-entity-row\n    primary:\n      key: status\n      name: 'Status:'\n    secondary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n\n  - type: section\n    label: Alternative entity\n\n  - entity: sensor.smoke_sensor_livingroom_temperature\n    type: 'custom:attribute-entity-row'\n    primary:\n      key: fan_speed\n      name: 'Vacuum fan:'\n      entity: vacuum.xiaomi_vacuum_cleaner\n  - entity: sensor.template_smoke_sensor_livingroom\n    type: custom:attribute-entity-row\n    primary:\n      key: battery_level\n      name: Other entity attribute\n      entity: sensor.smoke_sensor_livingroom_temperature\n    secondary:\n      key: status\n      name: Another entity -\n      entity: vacuum.xiaomi_vacuum_cleaner\n\n  - type: section\n    label: Hide State\n\n  - entity: sensor.smoke_sensor_livingroom_temperature\n    type: custom:attribute-entity-row\n    hide_state: true\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n  - entity: sensor.smoke_sensor_livingroom_temperature\n    type: custom:attribute-entity-row\n    name: With secondary\n    hide_state: true\n    primary:\n      key: battery_level\n      name: Battery\n      unit: '%'\n    secondary:\n      key: status\n      entity: vacuum.xiaomi_vacuum_cleaner\n```\n\nPartially based on @thomasloven's [slider-entity-row](https://github.com/thomasloven/lovelace-slider-entity-row) lovelace card.\n\n## My cards\n\n[xiaomi-vacuum-card](https://github.com/benct/lovelace-xiaomi-vacuum-card) | \n[github-entity-row](https://github.com/benct/lovelace-github-entity-row) | \n[multiple-entity-row](https://github.com/benct/lovelace-multiple-entity-row) | \n[~~attribute-entity-row~~](https://github.com/benct/lovelace-attribute-entity-row)\n\n[![BMC](https://www.buymeacoffee.com/assets/img/custom_images/white_img.png)](https://www.buymeacoff.ee/benct)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenct%2Flovelace-attribute-entity-row","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenct%2Flovelace-attribute-entity-row","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenct%2Flovelace-attribute-entity-row/lists"}