{"id":48518610,"url":"https://github.com/finity69x2/cover-position-preset-row","last_synced_at":"2026-04-07T20:03:20.437Z","repository":{"id":53732896,"uuid":"286860710","full_name":"finity69x2/cover-position-preset-row","owner":"finity69x2","description":"Plug-in for Home Assistant that provides an easy means to set 3 fixed positions for a programmable cover entity.","archived":false,"fork":false,"pushed_at":"2023-11-27T13:51:53.000Z","size":204,"stargazers_count":19,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-11-27T14:51:17.089Z","etag":null,"topics":["cover","lovelace-custom-card","plugin"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/finity69x2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-11T22:28:51.000Z","updated_at":"2023-11-17T10:34:41.000Z","dependencies_parsed_at":"2023-11-27T14:46:19.918Z","dependency_job_id":"debfb53f-e9c3-4988-9ce6-2fba3ffeb61e","html_url":"https://github.com/finity69x2/cover-position-preset-row","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"purl":"pkg:github/finity69x2/cover-position-preset-row","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finity69x2%2Fcover-position-preset-row","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finity69x2%2Fcover-position-preset-row/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finity69x2%2Fcover-position-preset-row/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finity69x2%2Fcover-position-preset-row/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finity69x2","download_url":"https://codeload.github.com/finity69x2/cover-position-preset-row/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finity69x2%2Fcover-position-preset-row/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31526666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"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":["cover","lovelace-custom-card","plugin"],"created_at":"2026-04-07T20:03:05.829Z","updated_at":"2026-04-07T20:03:20.419Z","avatar_url":"https://github.com/finity69x2.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# cover-position-preset-row\nProvides a means to program 3 preset position settings for programmable cover entities selectable from a Lovelace button row. This plugin will also accept a \"cover group\" as the entity_id.\n\nThis pluig-in was inspired by user @ktownsend-personal on the Home Assistant forum (community.home-assistant.io) as a thematically complementary plug-in for my other various control rows.\n\nThis element is completely theme-able to provide a match to the other control rows to provide a consistent look for the different elements in your Lovelace frontend\n\nInstallation:\n\nThe easiest way to install this is to use the Home Assistant Community Store (HACS) in Home Assistant.\n\nFollow the instructions there for installation making sure you note the \"url:\" section for the resources addition.\n\n\nConversely, if you don't use HACS you can install it manually by performing the following:\n\nCopy the cover-position-preset-row.js file to the appropriate folder in your Home Assistant Configuration directory (/config/www/).\n\nPlace the following in your \"resources\" section in your lovelace configuration (updating the localation to where you placed the above file):\n\n  ```\n    - url: /local/cover-position-preset-row.js\n      type: module\n  ```\n    \nThen to use this in a card place the following in your entity card:\n\n\n\u003cb\u003eOptions:\u003c/b\u003e\n\n| Name | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| type | String | Yes | none | custom:cover-position-entity-row |\n| entity | String | Yes | none | Any positional cover entity_id (including \"cover group\" entities) |\n| name | String | No | none | A custom name for the entity in the row |\n| customSetpoints | Boolean | No | false | Set to true to use custom position setpoints |\n| customTheme | Boolean | No | false | Set to true to use a custom theme |\n| customText | Boolean | No | false | Set to true to use custom button text |\n| reverseButtons | Boolean | No | false | Set to true to reverse the button order |\n| isTwoPositionCover | Boolean | No | false | Set to true to hide the two middle position preset buttons |\n| allowDisablingButtons | Boolean | No | true | Set to false to prevent buttons being disabled |\n| width | String | No | 30px | A custom width for the buttons |\n| height | String | No | 30px | A custom height for the buttons |\n| openPosition | Integer | No | 99 | Sets the position setpoint for the \"open\" button (max 100) |\n| midOpenPosition | Integer | No | 66 | Sets the position setpoint for the \"mid open\" button  |\n| midClosePosition | Integer | No | 33 | Sets the position setpoint for the \"mid close\" button |\n| closePosition | Integer | No | 0 | Sets the position setpoint for the \"close\" button (min 0)|\n| isOpenedColor | String | No | '#f44c09' | Sets the color of the 'open' button if cover is fully open |\n| isMidOpenedColor | String | No | '#f44c09' | Sets the color of the 'mid open' button if cover is partially open but closer to open |\n| isMidClosedColor | String | No | '#f44c09' | Sets the color of the 'mid closed' button if cover is partially open but cloder to closed |\n| isClosedColor | String | No | '#43A047' | Sets the color of the 'closed' button if cover is closed |\n| buttonInactiveColor | String | No | '#759aaa' | Sets the color of the the buttons if that selection is not \"active\" |\n| customOpenText | String | No | '99%' | Sets the text of the \"open\" position button |\n| customMidOpenText | String | No | '66%' | Sets the text of the \"mid open\" position button |\n| customMidClosedText | String | No | '33%' | Sets the text of the \"mid close\" position button |\n| customClosedText | String | No | '0%' | Sets the text of the \"close\" position button |\n| state_color | Boolean | No | false | Sets the icon color of the entity to reflect the current state |\n\n\nThe values for the colors can be any valid color string in \"HEX\", \"RGB\" or by color name.\n\nIf no custom setting is provided it will use the 'default' value for that individual setting.\n\nIf the cover position is changed via any other means (slider, service call, etc) the buttons will indicate which range the cover position is in based on the setpoint settings in the config.\n\nThis plugin can also be used with a group of positionable covers by creating a \"cover group\". Then each cover in the group will be simultaneously controlled by the plugin.\n\n\u003cb\u003eConfiguration Examples:\u003c/b\u003e\n    \n  ```\n      type: entities\n      title: cover theme test\n      show_header_toggle: false\n      state_color: true\n      entities:\n        - type: custom:cover-position-preset-row\n          name: Blind Custom Position\n          entity: cover.blinds_test\n          reverseButtons: true\n          ## used to select your own customizable theme\n          customTheme: true\n          isOpenedColor: 'rgb(255, 0, 0)'\n          isMidOpenedColor: '#888888'\n          isMidClosedColor: '#222222'\n          isClosedColor: 'purple'\n          buttonInactiveColor: 'black'\n          ## used to set the custom setpoints for the cover (default is 0, 33, 66, and 99)\n          customSetpoints: true\n          openPosition: 85\n          midOpenPosition: 40\n          midClosePosition: 20\n          closePosition: 8\n          ## used to select custom text for the buttons (defaults to 0, 33, 66, 99. Or it defaults to the values of the setpoints if custom setpoints are used)\n          customText: true\n          customOpenText: open\n          customMidOpenText: mop\n          customMidClosedText: mcls\n          customClosedText: cls\n          width: '15px'\n          height: '15px'\n  ```\n\nThis is with the default Lovelace frontend theme set:\n\n![Default](blinds_default.jpg)\n\n\nThis is with the \"Slate\" frontend theme set:\n\n![Slate](blinds_default_slate_theme.jpg)\n\nThis is with custom setpoints and a custom theme:\n\n![Custom Setpoints and Theme](blinds_custom_setpoints.jpg)\n\nAnd here is the above with custom text:\n\n![Custom Setpoints and Theme](blinds_custom_text.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinity69x2%2Fcover-position-preset-row","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinity69x2%2Fcover-position-preset-row","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinity69x2%2Fcover-position-preset-row/lists"}