Skip to content

test release for 2022.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mariusthvdb Mariusthvdb released this 17 Apr 19:54
· 87 commits to master since this release
dd65a35

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