Skip to content

Releases: shannonhochkins/ha-component-kit

3.1.1

08 Dec 03:54
ed46e93
Compare
Choose a tag to compare

3.1.1

@hakit/components

  • NEW - ClimateCard - completely rebuilt to match home assistant controls, as the original climate control was far too primitive, it supports everything the current climate card supports in home assistant. (Goodbye react-thermostat, sorry old shannon but it's just not good enough)
  • NEW - ThemeProvider now accepts global styles for most cards, this is useful if you want to update the style globally for every instance of the same component, ie, change all modal backgrounds to red for example.
  • NEW - Menu - a simple shared component that allows you to wrap any component and turn it into a clickable item that launches a menu
  • NEW - ControlSliderCircular - a new shared component similar to the home assistant slider used for climate / humidity entities
  • NEW - Modal animation changes - contents of the modal are now rendered after the modal animation has complete, which will then trigger the modal to animate
    the children into the view.

@hakit/core

  • BUGFIX - useAreas - was previously returning a deviceEntities property - this has now been removed as it was showing literally every available device on the instance.
  • UPGRADE - home assistant web socket - upgraded to match new types

3.1.0

26 Nov 19:07
Compare
Choose a tag to compare

3.1.1

Upgrading all packages, leaving CJS stack trace in place so we can monitor updates of packages that haven't been upgraded to ESM only yet, type fixes

@hakit/components

  • No code changes aside from base package upgrades

@hakit/core

  • BUGFIX - BIG Thanks to @koriwi - the useArea hook will now match related devices/entities where entities are indirectly related to an area (device is in the area but a sub entity is not)
  • BUGFIX - HassConnect was previously returning React.ReactNode as the return type, but i've removed this and left it to type inference as there's a bug with typescript < 5.1 where it doesn't properly work with React.
  • BUGFIX - Test framework working again for @core only, still need to work on client side.

3.0.5

21 Nov 04:18
Compare
Choose a tag to compare

1.1.1

create-hakit

  • Adjustments to deploy script
  • Adjustments to base template

3.0.5

@hakit/components

  • BUGFIX - Fixing bug for MediaPlayerCard where groups aren't available it was not rendering the cards

@hakit/core

  • CHANGE - useAreas now has a new returned value called deviceEntities which are related children for a matched device. You can merge entities and deviceEntities if you want to display them all.

3.0.4

17 Nov 21:04
Compare
Choose a tag to compare

@hakit/components

  • NEW - Thanks to @yann510 for introducing new functionality for media players to show additional controls for speaker groups on the card - there's now a popup that will launch allowing you to join/unjoin speakers from a group and control individual volume of speakers. Storybook demonstrates this feature popup however the functionality will not work in the demo.
  • NEW - AreaCard - previously the full screen popup was rendered alongside the card it self, this is now using portals and will ensure it's always rendered full screen as the popup is now rendered alongside the body, you can now optionally disable the card if need be as well.
  • BUFIX - modalProps on cards - now accepts the correct types, now you can trigger or disable the modal by passing through the props.

@hakit/core

  • NEW - useAreas - some of this code was copied directly from home assistant, however i noticed it wasn't retrieving all entities that I had included in the area, there's a bug in their source code which i've fixed and now this hook will return all entities that are included in an area.
  • BUGFIX - useLowDevices - found another bug with the blacklist logic but it seems to be resolved now
  • BUGFIX - callService - when calling any service, if sending multiple targets and one of them was a duplicate it was previously failing, will now correctly process the request.

1.0.0: v.1.0.4

21 Jul 07:21
Compare
Choose a tag to compare
1.0.0: v.1.0.4 Pre-release
Pre-release

v.1.0.4
released - 21/07/2023
@hakit/core

  • added useHash hook to set/get the window hash, this is currently used to automate the state for the RoomCard
    v.1.0.7
    released - 21/07/2023

@hakit/components

  • Added FabCard - Exactly the same functionality as ButtonCard however this will display a simple icon button and change the colour when active
  • Added RoomCard - This is an awesome new addition which will allow you to wrap a set of other components with a RoomCard, and when clicked it will show all those components in a nice popup, this is also hashed meaning if you refresh the page the "room" will become active again.
  • Introducing framer-motion for the RoomCard to add some nice animations when opening
  • Added PictureCard component to display a picture / title / icon, useful for cameras or other media, this card is also used for the RoomCard