Skip to content

Releases: Mariusthvdb/custom-ui

20220419

19 Apr 12:51
Compare
Choose a tag to compare

Follow up on 20220416.

BREAKING CHANGE !!!

  • State templating is no longer supported. Please see the README for more information.
    This change will not "break" the UI, but state templates will not work anymore and there will be an error in the console if you are using that.

What's Changed

Full Changelog: 2022.4...2022041

fix for 2022.4

18 Apr 14:01
256b479
Compare
Choose a tag to compare

new and better readable code by @bratanon Thank you very much!

test release for 2022.4

17 Apr 19:54
dd65a35
Compare
Choose a tag to compare
Pre-release

posting this as a pre-release since @bratanon created this, but mentioned it not to work (reliably). See: #51

My initial testing does seem to indicate succes, so I'd be glad if people could test this.

test-custom-ui

homeassistant:
  customize:

    input_boolean.test:
      package: Test
      templates:
        icon: >
          return (state === 'on') ? 'mdi:test-tube' : 'mdi:test-tube-off';
        icon_color: >
          return (state === 'on') ? 'gold' : 'green';

    input_number.test_number:
      templates:
        icon_color: >
          if (state == 0) return 'white';
          if (state == 10) return 'yellow';
          if (state == 20) return 'brown';
          if (state == 30) return 'navy';
          if (state == 40) return 'lightblue';
          if (state == 50) return 'green';
          if (state == 60) return 'orange';
          if (state == 70) return 'purple';
          if (state == 80) return 'black';
          if (state == 90) return 'gold';
          return 'red';

Full Changelog: 2021053...20220417-beta

Update for HA 2021.6

28 May 13:20
14f1a11
Compare
Choose a tag to compare

mitigate the changes that HA 2021.6 brings using the new more-info attributes dropdown box.

  • changed the UpdateMoreInfo() event to 'expanded-changed'

  • added logic to only update on expanding attribute-panel

  • fixes the more-info on mini-graph-card

Note:
when the hide_attributes: option results in no attributes to show, HA still will show the attributes dropdown box..
maybe that can be overridden in a future version.

Had huge help in the Discord #beta channel and DM from the core/frontend dev's. @spacegaier did an all in extra effort. Much appreciated!!

reduced code

11 May 21:34
ca70a0c
Compare
Choose a tag to compare

After this release, there is probably not much more we can do to shrink the resource.

Please test, and report if you have issues.

remove context aware on Devices and Group

05 May 12:34
31c53dd
Compare
Choose a tag to compare

We still had a lot of code that was no longer functional in Lovelace, like the context aware customizations on Devices and Group membership.

further reduced code and Babelized

26 Apr 11:34
1f73d91
Compare
Choose a tag to compare

Further reduced code and Babel.io had a look at it
This has been running as beta for a while now, so time seems ready for a next release.

fix Invalid Date

09 Apr 15:04
ae4be7a
Compare
Choose a tag to compare
fix Invalid Date Pre-release
Pre-release

this fixes the Invalid Date that shows in developer-tools/state

Minimize code even further

25 Mar 08:37
39fe94e
Compare
Choose a tag to compare
Pre-release

Final code minimization for now. Has been stable for a full day on 3 instances, with maxed out customizations. Please try and see if this works for you installs.

stop support for HA pre 2020 numbering

24 Mar 17:58
39fe94e
Compare
Choose a tag to compare
Pre-release

and further reduce code.

Please be careful using this. Though it won't harm your system in anyway, it is nice to have a back up of the previous version around, so you can switch easily.
Common practice: Backup and use diligently...