Commit Graph

116 Commits

Author SHA1 Message Date
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
Steve Repsher 45e09a262b
Fix issues with state_color as false (#19776)
* Fix issues with state_color as false

* Remove format from glance timestamp

* Restore type assertion hack and remove conditional

* Revert "removal of glance timestamp format and adjust types to make it work

* Revert to minimal change just to pass false state_color
2024-02-27 15:20:13 +01:00
Paul Bottein d95bf64edf
Add experimental sections view (#19846) 2024-02-22 20:51:48 +01:00
karwosts 2a803e09a4
Detail view for energy devices graph (#19068)
* Detail view for energy devices graph

* Use getCommonOptions

* Remove visibility toggle on horizontal bar chart

* make a new card

* unneeded translations

* graph titles

* Update src/translations/en.json

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

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2024-02-20 14:14:04 +01:00
Maxim A 2b18db8525
Add Y axis limits options for historical charts (#19297)
* Add Y axis limit options for historical charts

* Fir formatting according to linter

* Revert statistic graph changes

* Cleanup local tests leftover

* Show fit Y fit option only if limits are set
2024-01-31 00:18:14 +01:00
Paul Bottein af9b64c6f0
Add option to show current temperature on thermostat card (#19049)
* Fix unit position when no decimal

* Add option to switch between current and target for thermostat card

* Refactor code

* Clean label code

* Rename config name
2023-12-20 14:41:22 +01:00
Paul Bottein 2b18ac8d4e
Add option to show current humidity on humidifier card (#19079) 2023-12-20 14:12:59 +01:00
Bram Kragten 96fbbc55e1
Make history split by device class option in history card (#18871) 2023-12-04 12:06:26 +01:00
Damian Sypniewski f7f50294e7
Added hold and double tap actions for tile card (#18345) 2023-11-30 16:03:07 +01:00
Márton Braun 71a41be20a
Add fit_zones parameter to map card (#18760) 2023-11-28 11:04:43 +01:00
Paul Bottein 3e7f008277
Rename tile features to card features (#18732) 2023-11-24 13:36:58 +01:00
Paul Bottein 9163b9c124
Add new design to humidifier card (#18711) 2023-11-23 00:37:19 +01:00
Paul Bottein c787c920fc
Add new design to thermostat card (#18709)
* Add new design for thermostat card

* Add feature to thermostat card

* Fix margin

* Add current

* use big number component

* Add current

* Fix translations

* Add theme and name options

* Reduce margin on small card

* Fix types

* Add hvac mode to default dashboard

* Don't put feature full size

* Full width for features

* Improve design on small screen
2023-11-22 14:42:42 +01:00
wittypluck b8d4e957e2
Add logarithmic scale option to Statistics and History graph cards (#18637) 2023-11-18 17:31:29 +01:00
karwosts a45eefa742
Add live camera & custom AR to Area card (#18643) 2023-11-18 17:26:21 +01:00
Paul Bottein 1cf928b425
Improve Lovelace types (#18652) 2023-11-15 11:13:49 +01:00
Bram Kragten 8efc0816bb
Rename shopping-list-card to todo-list-card (#18378) 2023-10-24 20:06:03 +02:00
Paul Bottein 6ffc0625d3
Add support for state content customization in tile card (#18180)
* Add support for state content customization

* Add reorder option

* Do not display null attributes

* Always return a value

* Add hide state option

* Add missing attribute unit

* Fix sortable create and destroy
2023-10-24 12:08:11 +02:00
Bram Kragten 2b9540fe03
Add support for todo component (#18289) 2023-10-23 22:53:09 +02:00
Paul Bottein c6be4d6f4d
Improve warning messages in conditional card (#18272)
* Improve warning messages in conditional card

* Update src/panels/lovelace/editor/conditions/ha-card-condition-editor.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-10-23 14:50:45 +02:00
Thomas Konrad 4a5b67e320
Add 'max devices' config to Energy Devices Graph (#17553) 2023-10-09 17:27:22 +02:00
karwosts 034ce56da5
Updates to alarm panel card configuration (#17598)
* Updates to alarm panel card configuration

* changes from feedback
2023-08-30 11:42:51 +02:00
G Johansson ec58862f3e
Implement forecast types for Weather (#15028)
* Implement forecast types

* editor

* Fix twice_daily

* All cards

* Review comments

* hasforecast

* card-editor

* forecast default

* Review comments

* fix entity row

* Remove legacy option

* Check if selected forecast is supported when picking entity

* Always show weather_to_show selector

* comments

* Update types.ts

* Hourly before twice-daily

* Expose forecast via WS instead of as state attributes

* Unsubscribe on disconnect

* lint

* prettier

* Fix _forecastSupported

* Improve conditions for subscribing to forecast updates

* Teach weather entity row and more info to subscribe

* Fix subscribing

* Deduplicate code in getForecast

* Simplify

* Tweak subscribe logic

* Address review comments

---------

Co-authored-by: Erik <erik@montnemery.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-07-21 17:30:59 +02:00
Bram Kragten eb552530e2
Add support for image entity (#16877) 2023-06-21 17:46:40 +02:00
Till fa75b18a6b
Add self-sufficiency gauge card (#15704)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-06-19 13:59:20 +02:00
Erik Montnemery 72403f4276
Remove calculation of change from frontend (#16477) 2023-05-11 10:17:12 +02:00
Paul Bottein 6986c1c8b7
Add option to hide legend on statistic graph card (#15506) 2023-02-20 07:31:14 -05:00
Paul Bottein b591c75377
Tile card fixes with vertical layout (#15202) 2023-01-25 17:15:12 +01:00
cnico 8935dbac20
Allow iframe links to open on android through a parameter (#15063) 2023-01-24 13:24:11 +00:00
J. Nick Koston f991a1b819
Remove refresh interval configuration option from history graph card (#15154) 2023-01-23 09:40:59 +01:00
Gia Ferrari 5c2fcd7f9b
Add alt attribute to various images (#14405)
* ha-config-area-page: Add alt tag for area-picture

* dialog-tag-detail: Add alt tag for generated QR code image.

* ha-config-hardware: Blank alt tag for hardware pic, info already elsewhere

* dialog-energy-solar-settings: Blank alt tag for brand icon.

* ha-energy-grid-settings: Blank alt tag for co2signal brand icon.

* Add a few more appropriately-blank alt texts.

* ha-config-device-page: Logo alt text set to name of device domain.

* ha-config-repairs: Logo alt text set to name of issue domain.

* hui-picture-card(-editor): Alternate Text via config (blank default)

* hui-picture-entity-card(-editor): Alternate Text via config (blank default)

* ha-long-lived-access-token-dialog: Alt text for QR code.

* hui-picture-header-footer: Support alt text via optional property.

* A few more blank alt attributes.

* ha-tile-image: Support alt tag (but it is blank in current usage).

* prod cla-bot

* Lint. Fix whitespace.

* Add missing alt text properties to TS types.

* Fix my silly typo in picture-entity-card-editor's SCHEMA (+ minor reformat)

* Add alt_text to Picture(Entity)CardConfig TypeScript types.

* Format with prettier.

* Revise alt text for tag QR

* Revise alt text for token QR

* Revise alternate to alternative

* Add alt to logo in gallery

* Add alt text to crop image

* Use ifDefined for tile image alt

* Change area picture alt to area name

* Remove entry from entities config struct

* Revert altText changes for Picture Entity Card (to revisit in future PR)

See:
https://github.com/home-assistant/frontend/pull/14405#discussion_r1032735871

* Revert changes to hui-image and picture entity editor

Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2022-12-29 01:16:05 +00:00
Erik Montnemery d1b1eecd92
Fix showing a statistics graph with type 'change' (#14622) 2022-12-08 11:37:57 +01:00
Philip Allgaier 8ba46f7f57
Add "show_names" option to history graphs (#14546) 2022-12-06 01:41:08 +01:00
Paul Bottein d4cda0c106
Rename tile extras to tile features (#14483) 2022-11-30 18:35:13 +01:00
Paul Bottein a958c6296b
Add cover and light controls to tile card (#14244) 2022-11-21 17:13:15 +01:00
Erik Montnemery 1cb44ce857
Convert units in statistics graph card (#13970)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2022-11-11 13:21:53 +00:00
Bram Kragten 79c8b7dc27
Fix statistic card default config (#14262) 2022-11-02 17:26:09 +00:00
Bram Kragten 9d730919d5
Add statistic card (#14198)
* Add statistic card

* Update selector.ts

* Update translations

* review
2022-10-27 21:59:55 +02:00
Bram Kragten 822917d060
Add water to energy dashboard (#14194) 2022-10-26 14:44:07 -04:00
Paul Bottein 504e8dd946
Add option to show entity picture in tile card (#14196)
Add option to show entity picture
2022-10-26 18:31:10 +02:00
Paul Bottein dec8883f2a
Introduce tile card (#14085) 2022-10-17 11:43:49 +02:00
Erik Montnemery d5d6216cfe
Move recorder statistics API to data/recorder.ts (#13672)
* Move recorder statistics API to data/recorder.ts

* Fix import

* prettier
2022-09-12 13:23:02 +02:00
Steve Repsher d23d774ec1
Fix some key type errors in cards 2022-08-07 15:28:22 -04:00
Felix Rudat cb256bc386 Add auto_fit config option to lovelace map card 2022-07-19 17:45:48 +02:00
Kristján Bjarni 0f580a91c9
Add optional label for gauge segment (#12960)
Co-authored-by: Zack Barett <zackbarett@hey.com>
2022-06-29 10:36:18 -05:00
Thomas Lovén e3d394eb32
Change service_data to just data (#12628) 2022-05-24 10:49:07 -05:00
Bram Kragten 6ab19d66d5
Add option to compare energy graphs with previous period (#12723)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-05-20 04:20:18 +00:00
Netzwerkfehler e927091d21
Better gauge segment coloring (#11570) 2022-04-25 13:43:53 -05:00
Zack Barett 70ca27c8c9
Button editor to ha-form (#11808) 2022-02-23 19:49:15 +01:00
Bram Kragten ff2fa9a78c
Add period option to statistics card (#10982)
Co-authored-by: Zack Barett <zackbarett@hey.com>
2022-01-12 10:35:10 -06:00