Commit Graph

358 Commits

Author SHA1 Message Date
Paul Bottein 4986b013a2
Add new humidity control in humidifier more info (#17011)
* Add new humidity control in humidifier more info

* Fix humidifier card

* Some adjustments

* Add current label

* Some adjustments

* Clean code

* Remove unused code

* Fix merge

* Add current to main screen

* Remove toggle

* Add action

* Update buttons

* Add gallery

* Some fixes

* Add overflow

* Update src/dialogs/more-info/components/humidifier/ha-more-info-humidifier-humidity.ts

* Update src/dialogs/more-info/controls/more-info-humidifier.ts

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

* Use climate translation

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-08-08 11:07:46 +00:00
Paul Bottein 89e96e4681
Add new temperature control in climate more info (#17002)
* Add circular slider as temperature control

* Move climate icons and mode mapping

* Update icon

* Add mode icon

* Improve colors

* Add temperature control buttons

* Call service

* Remove climate control

* Some fixes

* Add current temp and humidity

* Fix default mode

* Swap state and current

* Some adjustments

* prettier

* Simplify color rules

* refactor cool mode

* Color button when dual climate

* Add current temp and humidity

* Fix opacity

* Hide current temp is below min or above max

* Adjust button size

* Add action label

* Better off and unavailable state

* Improve current color

* Add gallery

* Fix dark mode

* Add overflow

* Update src/dialogs/more-info/controls/more-info-climate.ts

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

* Update src/panels/lovelace/cards/hui-thermostat-card.ts

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

* Update src/dialogs/more-info/components/climate/ha-more-info-climate-temperature.ts

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-08-08 12:50:21 +02:00
Paul Bottein e9e31d51ec
Update circular slider design (#17490) 2023-08-07 11:00:43 +02:00
Miguel Camba d6e279e8f4
Add device_class PH, including default icon (#17385) 2023-07-23 18:50:40 +02:00
Franck Nijhof 0eebc9095c
Add event entity (#17332) 2023-07-21 12:18:32 +02:00
Steve Repsher c71fd055a4
Expand use of prettier to all tracked files (#17311) 2023-07-18 17:16:33 +02:00
renovate[bot] cb0bc762b1
Update dependency prettier to v3 (#17215)
* Update dependency prettier to v3

* Update config and remove .prettierignore

* Reformat

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
2023-07-14 17:40:17 +00:00
Bram Kragten 3390dda7be
Fix integration card design gallery (#17167) 2023-07-05 15:22:22 +02:00
Bram Kragten 8bd09edec0
Fix automation translations + gallery (#17166) 2023-07-05 13:27:38 +02:00
Bram Kragten 87aad75cc7
Add UI for conversation trigger (#17037) 2023-06-27 10:58:27 +02:00
Paul Bottein 1dfd859a2d
Circular slider improvements (#17008) 2023-06-26 11:49:11 +02:00
Paul Bottein e9961b93f9
Add circular slider (#16981)
* WIP Create round slider

* Fix interaction on iOS

* Add dual and simple gauge

* Add events

* Rename events

* Use low and high

* Improve dual slider selection

* Add min and max

* Rename component

* Prevents setting a high value lower than low and vice versa

* Add keyboard support

* Fix typings

* Use html

* Update current indicator

* Improve doc

* Fix keyboard focus after mouse interaction

* Don't fallback to value
2023-06-21 15:01:45 +00:00
RoboMagus 9b35c06eef
Add persistent_notification trigger (#16967)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-21 11:55:55 +02:00
Joakim Sørensen 5aa6ffe2e4
Map GitHub block quotes to our ha-alert component (#16757) 2023-06-21 11:35:02 +02:00
Christoph Wen, B.Sc 922e95b895
Fix time and date-time 12h formats (#16692) (#16805)
* Fix time and date-time 12h formats  (#16692)

- am/pm check possible for other languages
- adjusted date format gallery page for consistency
- added gallery pages for date-time and time formats

* Fix typo in am/pm check (#16692)
2023-06-20 12:52:53 +02:00
Franck Nijhof 8abb58ae7d
Add preheating HVAC action to climate (#16922) 2023-06-19 13:36:19 +02:00
Bram Kragten 197638b282
Fix date demo in gallery (#16894) 2023-06-13 15:27:21 +00:00
Bram Kragten 780de42e4b
Allow to show times in the UI in the timezone of the server (#16799) 2023-06-13 12:12:13 +02:00
Christoph Wen, B.Sc 2ad6253b72
Add setting to localize numeric dates independent from language (#15770) (#16489) 2023-05-30 19:39:27 +00:00
Bram Kragten dde27c3524
Support entity reg id in device automations (#15387) 2023-05-24 14:37:45 +02:00
Paul Bottein e9d9d89d79
New color picker for HS and color temp (#16549)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-05-23 14:45:23 +02:00
Trevor North e8521c59eb
Add sensor device class volatile_organic_compounds_parts (#16576)
Add support for volatile_organic_compounds_parts
2023-05-22 08:42:15 +00:00
Bram Kragten 4e5a18d272
Remove polymer types, cleanups (#16385)
* Remove polymer types, cleanups

* Delete updated.ts
2023-05-04 15:24:24 +00:00
Johan Frick e0c4b85ef1
Fix options typo for ha-form in gallery (#16305) 2023-04-25 19:59:58 +00:00
Steve Repsher aac28efd32
Streamline HTML generation and consolidate templates (#16117) 2023-04-20 11:10:12 +02:00
Steve Repsher 1f1898fa46
Make module types explicit and convert some to ESM (#15964) 2023-03-30 11:23:43 +02:00
Paul Bottein 27098c5f3f
Create control select component (#15819) 2023-03-17 16:16:51 +01:00
Steve Repsher 9ce4563dd4
Prefer nothing over empty templates (#15633) 2023-02-28 11:02:47 +01:00
Bram Kragten f69ae84cc6
Use entity registry display api (#15549) 2023-02-23 16:30:13 +01:00
Yosi Levy 658ce80801
Rtl fixes feb23 (#15487) 2023-02-20 18:16:03 +01:00
Paul Bottein bef586efb3
Rename bar components to control components (#15508)
* Rename ha-bar-slider to ha-control-slider

* Rename ha-bar-switch to ha-control-switch

* Rename ha-bar-button to ha-control-button

* Update tile features
2023-02-20 17:34:37 +01:00
Paul Bottein cabbbcf9f3
Convert tile button into more generic button (#15485)
* Add button group component

* Add focus style

* Use new component in tile card
2023-02-20 16:25:53 +01:00
Yosi Levy a13e2af17a
Various RTL fixes (#15446) 2023-02-14 13:02:45 +01:00
Erik Montnemery 050ed145bf
Allow overriding a sensor's display precision (#15363)
* Allow overriding a sensor's display precision

* Update demo + gallery

* Lint

* Fix state not updated in the UI

* Use formatNumber for options

* Feedbacks

* Add default precision and minimumFractionDigits

* Remove useless undefined

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2023-02-08 18:20:58 +01:00
Paul Bottein 7e92d62936
Add tile card to gallery (#15394) 2023-02-08 11:29:16 +01:00
Bram Kragten d2886b1ea7
Add aliases to areas (#15198)
* Add aliases to areas

* rename

* Update dialog-aliases.ts
2023-01-25 16:55:58 +01:00
Paul Bottein d15d339782
Entity state colors theming (#14831)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-01-23 09:28:38 +01:00
Bram Kragten fe87466351
Add link to aliases in cloud config entity settings (#14959) 2023-01-02 20:42:31 +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
Paul Bottein 2575d35f2c
Add aliases dialog to entity registry settings (#14860) 2022-12-27 21:36:08 +01:00
Paul Bottein b18160d987
Use CSS colors for tile components (#14770)
* Do not use rgb colors for tile components

* Fixes gallery

* Change tile color

* Do not use rgb colors in tile button
2022-12-15 11:27:45 +01:00
Philip Allgaier b4d6fc3c20
Handle "idle" state of alert entity (#14779) 2022-12-14 19:08:08 +01:00
Philip Allgaier 175a388822
Add sun domain to gallery entity states (#14742) 2022-12-14 11:43:49 +01:00
Paul Bottein b82d6fd35f
Fix climate hvac action color (#14747) 2022-12-13 16:49:12 +01:00
Joakim Sørensen f83544dd38
Add action for design preview (#14721)
* Add action for design preview

* Remove netlify_build_gallery
2022-12-12 16:23:11 +01:00
Bram Kragten 4ea19a6041
Add daily gallery build action (#14640)
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2022-12-08 14:41:51 +00:00
Philip Allgaier feddbdba96
More "state_color" variants for gallery + wording tweaks (#14641) 2022-12-08 14:05:09 +00:00
Paul Bottein f1393e5f00
Clean up colors code and add all missing domains (#14597) 2022-12-07 14:47:54 +01:00
Paul Bottein e6f2e8058b
Color adjustments for entity state (#14557) 2022-12-06 17:45:24 +01:00
Paul Bottein dfc461ce05
Add support for entity translation key (#14482) 2022-12-01 12:53:44 +01:00