Go to file
Quentame 552eeeddf6
`conditional` & `entity-filter`: add ability to filter through `entity_id` & add `entity-filter` `conditional`'s conditions (#19182)
* entity-filter: add ability to filter through entity_id value

* review: test filter value against undefined

Co-authored-by: karwosts <32912880+karwosts@users.noreply.github.com>

* review: better handle state values that could be mixed with an entity_id

* Add multiple filter/condition types

* Fix automation's NumericStateCondition above/below types

* Replace operator condition by state for string or number

* Move to condition: type & attr

* Remove enable attr

* fix condition state array

* Remove necessary undefined check

* Move to condition: use same codebase as conditionnal card

* Fix entities error 'read properties of undefined' + conditions first

* Fix lint

* Merge condition to set the entity to filter on

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>

* review: make numeric_state below & above working together again, with entity_id support

* shorthand getValueFromEntityId

* review: states are string

* Split legacy state filter and condition logic

* Fix types

* Fix type

* Update gallery doc

* Fix operator in while numaric array

* Rename condition card header in gallery

* Don't use real gas station name

* Update gallery

* Update card is entity in condition change

* Don't check for entity id in state condition

* Improve check

* Update condition card demo

* Revert "Don't check for entity id in state condition"

This reverts commit f5e6a65a37.

* Use set instead of list

* Update demo

---------

Co-authored-by: karwosts <32912880+karwosts@users.noreply.github.com>
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-03-19 14:29:34 +01:00
.devcontainer Bump Python version to 3.12 (#20084) 2024-03-14 20:06:03 +01:00
.github Bump softprops/action-gh-release from 2.0.2 to 2.0.4 (#20115) 2024-03-18 08:29:45 +01:00
.husky Use yarn to resolve lint-staged in pre-commit (#13470) 2022-08-24 09:27:35 -04:00
.vscode Expand use of prettier to all tracked files (#17311) 2023-07-18 17:16:33 +02:00
.yarn Update simple-tooltip to 8.0.2 with RTL fix (remove patch) (#20039) 2024-03-12 00:37:39 -04:00
build-scripts Don't use ES5 build for dev server (#19731) 2024-02-08 14:33:34 +01:00
cast Update cast launch screen colors (#19754) 2024-03-04 15:45:54 +01:00
demo Add description to sections demo (#19991) 2024-03-05 23:45:16 -05:00
docs Saved 180 KB out of 865 KB. 23.9% per file on average (up to 85.6%) (#717) 2017-12-05 22:56:14 -08:00
gallery `conditional` & `entity-filter`: add ability to filter through `entity_id` & add `entity-filter` `conditional`'s conditions (#19182) 2024-03-19 14:29:34 +01:00
hassio Replace more paper-items (#19707) 2024-02-28 11:52:45 +01:00
public Minify logos (#18542) 2023-11-07 13:39:38 +01:00
script Bring back backend translations in devcontainer (#19793) 2024-02-16 12:41:53 -05:00
src `conditional` & `entity-filter`: add ability to filter through `entity_id` & add `entity-filter` `conditional`'s conditions (#19182) 2024-03-19 14:29:34 +01:00
test Add experimental sections view (#19846) 2024-02-22 20:51:48 +01:00
.browserslistrc Use ES modules and dynamic import for Webpack latest builds (#16849) 2023-06-13 18:12:44 +02:00
.eslintrc.json Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
.gitattributes Add image to demo media player (#5086) 2020-03-06 13:44:59 +01:00
.gitignore Typo automation (#18266) 2023-10-18 13:42:30 +00:00
.gitmodules Initial getting rid of HA-JS (#180) 2017-01-29 18:34:45 -08:00
.nvmrc Add some Renovate groups and enable NVM updates (#18559) 2023-11-07 11:53:47 +01:00
.prettierignore Make pull request template more in line with core (#17441) 2023-09-21 17:23:31 +02:00
.yarnrc.yml Update Yarn to v4.1.1 (#20020) 2024-03-08 07:48:46 -05:00
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:30 -08:00
CODE_OF_CONDUCT.md Update Code of Conduct to 2.0 (#6048) 2020-05-25 16:35:57 -07:00
LICENSE.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:30 -08:00
MANIFEST.in Move to `setup.cfg` and config for `build-system` (#11484) 2022-01-28 21:18:17 -08:00
README.md Input conversion in dev tools (#11795) 2022-02-23 15:24:00 +01:00
gulpfile.js Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
lint-staged.config.js Implement more attribute icons (#19469) 2024-01-19 20:55:16 +01:00
netlify.toml Use browser default time and number formatting with polyfills if needed (#9481) 2021-09-29 23:34:52 +00:00
package.json Update vaadinWebComponents monorepo to v24.3.9 (#20120) 2024-03-18 15:01:27 +01:00
prettier.config.js Update dependency prettier to v3 (#17215) 2023-07-14 17:40:17 +00:00
pyproject.toml Bump Python version to 3.12 (#20084) 2024-03-14 20:06:03 +01:00
renovate.json Add some Renovate groups and enable NVM updates (#18559) 2023-11-07 11:53:47 +01:00
rollup.config.js Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
tsconfig.json Update dependency prettier to v3.2.5 (#19711) 2024-02-12 22:53:41 +00:00
web-dev-server.config.js Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
webpack.config.cjs Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
yarn.lock Lock file maintenance (#20132) 2024-03-19 10:19:38 +01:00

README.md

Home Assistant Frontend

This is the repository for the official Home Assistant frontend.

Screenshot of the frontend

Development

  • Initial setup: script/setup
  • Development: Instructions
  • Production build: script/build_frontend
  • Gallery: cd gallery && script/develop_gallery
  • Supervisor: Instructions

Frontend development

Classic environment

A complete guide can be found at the following link. It describes a short guide for the build of project.

License

Home Assistant is open-source and Apache 2 licensed. Feel free to browse the repository, learn and reuse parts in your own projects.

We use BrowserStack to test Home Assistant on a large variety of devices.