Skip to content

Releases: ExperienceLovelace/ha-floorplan

New "action" service to make more dynamic rules

06 Oct 16:11
Compare
Choose a tag to compare

What's Changed

  • Implement "action" support in "execute" to make more dynamic rules by @exetico in #456
  • Feat/support important in set style by @exetico in #457
  • Do not add * as target by @exetico in #464

New features

  • We're now exposing a action function, which can be used in your JavaScript code. Use it to call things like style_set, but also Home Assistant sevices, just like you'd done it with the action keyword in YAML. Check the documentation for more
  • It's now possible to use the !important decorator in CSS. I'll not recommend it, but it works, if you'd ever need it.

Full Changelog: 1.0.44...1.0.45-beta.1

1.0.45-beta.1

15 Sep 18:05
Compare
Choose a tag to compare
1.0.45-beta.1 Pre-release
Pre-release

What's Changed

  • Implement "action" support in "execute" to make more dynamic rules by @exetico in #456
  • Feat/support important in set style by @exetico in #457
  • Do not add * as target by @exetico in #464

New features

  • We're now exposing a action function, which can be used in your JavaScript code. Use it to call things like style_set, but also Home Assistant sevices, just like you'd done it with the action keyword in YAML. Check the documentation for more
  • It's now possible to use the !important decorator in CSS. I'll not recommend it, but it works, if you'd ever need it.

Full Changelog: 1.0.44...1.0.45-beta.1

Support for browsers like "WallPanel" on light Android-devices

11 Aug 10:44
Compare
Choose a tag to compare

What's Changed

  • Bugfix/handle simple browser support replacechildren by @exetico in #450

🐛 As part of cleaning up a few things in my Home Assistant solution, I noticed that one of my limited "dumb" smart-displays didn't support the replaceChildren function. It's now patched, so it's possible to use the default browser on a device like the Lenovo Smart Clock, and a browser like WallPanel.

Full Changelog: 1.0.43...1.0.44

Evaluate `navigation_path` and `url_path` in the `navigate` and `url` action

02 Jan 13:31
Compare
Choose a tag to compare

What's Changed

  • We're now evaluating the navigation_path key in the navigate action, and the url_path in the url action, allowing the user to use a reference like element.id in the navigation_path, just like we evaluate post of all other ha-floorplan actions. We also added support for the navigation_replace boolean, which is part of the the standard lovelace actions. See more details about navigation_replace here.
  • Version Bump
  • Fixed README-render in HACS

Here's a quick summary on how to use the navigation action.

tap_action:
  action: navigate
  navigation_path: |
    > const target = "/default-overview/alarm#" + element.id;
    console.log(element.id, "target", target);
    return target;

And also the simple way of doing so:

tap_action:
  action: navigate
  navigation_path: '/default-overview/alarm#${element.id}'

I'm aware of the Cannot find '*' in Home Assistant entities error, if you try and use the * key for the entity, like described in our docs. I'll fix this in the future, but no-one has mentioned this - and it has been in the codebase for a while. See #385.

Please note that 1.0.42 was a hot-fix release, and navigation_path evaluation was added in 1.0.41. Therefore, the compare link are between 1.0.40 and 1.0.43.

Full Changelog: 1.0.40...1.0.43

Hotfix: Bring back description in HACS

02 Jan 13:17
Compare
Choose a tag to compare

What's Changed

  • Kindly see release notes for version 1.0.41. This is a hotfix release, to make a few changes on how our repo acts with HACS.

I'm aware of the Cannot find '*' in Home Assistant entities error, if you try and use the * key for the entity, like described in our docs. I'll fix this in the future, but no-one has mentioned this - and it has been in the codebase for a while. See #385.

Full Changelog: 1.0.41...1.0.42

Evaluate navigation_path in `navigation` action

02 Jan 10:25
Compare
Choose a tag to compare

What's Changed

  • We're now evaluating the navigation_path key in the navigation action, allowing the user to use a reference like element.id in the navigation_path, just like we evaluate post of all other ha-floorplan actions. We also added support for the navigation_replace boolean, which is part of the the standard lovelace actions. See more details about navigation_replace here.
  • Version Bump

Here's a quick summary on how to use the navigation action.

tap_action:
  action: navigate
  navigation_path: |
    > const target = "/default-overview/alarm#" + element.id;
    console.log(element.id, "target", target);
    return target;

And also the simple way of doing so:

tap_action:
  action: navigate
  navigation_path: '/default-overview/alarm#${element.id}'

I'm aware of the Cannot find '*' in Home Assistant entities error, if you try and use the * key for the entity, like described in our docs. I'll fix this in the future, but no-one has mentioned this - and it has been in the codebase for a while. See #385.

Full Changelog: 1.0.40...1.0.41

Bug-fixes for clipPath SVG Element

03 Dec 16:30
Compare
Choose a tag to compare

What's Changed

  • Bugfix so clipPaths doesn't trigger errors once we try and call the getBBox on each SVG element
  • Version Bump

I'm aware of the Cannot find '*' in Home Assistant entities error, if you try and use the * key for the entity, like described in our docs. I'll fix this in the future, but no-one has mentioned this - and it has been in the codebase for a while. See #385.

New Contributors

Full Changelog: 1.0.39...1.0.40

Improve text_set multi-line and single-line logics

23 Sep 14:37
Compare
Choose a tag to compare

Release notes

Our floorplan.text_set service will now work as it did before version 1.0.37, if there's no new-lines provided. If the user provides a \n or a escaped ones, we'll handle it as a multi-line, and replace the tspan element, and only preserve the style attribute. A dataset-key called ha_floorplan_notice on the text element will inform the user about the impact of new-line characters in the text-value. Escaped ones are included, cause that's how we receive a value like servicedata: 'Two\n', if it's added though the Home Assistant GUI editor, as mentioned in #356.

What's Changed

Full Changelog: 1.0.38...1.0.39

Bug-fixes for `text_set`

22 Sep 14:19
Compare
Choose a tag to compare

Release notes

This release only contains bug-fixes related to 1.0.36 and 1.0.37. For those of you who has faced problems with text and tspan elements, we're sorry. In the test-phase with 1.0.36, no one raised a flag related to the the implemented bug. Now tspan should render as expected. If you're using line-breakes with \n, please note that the style attribute on the original tspan element, will be copied to every new tspan element. In other words, you can expect the style to impact all generated tspans, which can result in some odd scenarios.

We also saved a few problems with auto-generated dashboards conflicting with ha-floorplan, cause we added a sensor titled *. That's now fixed, too.

Please use the Discussion section if you're unsure on where to get started, or how you should continue the ha-floorplan journey. If you're facing a problem after the 1.0.38 release, kindly raise an issue. Remember to include both SVG, YAML and CSS, and please strip down the example files to the bare-minimum.

Have a great one, everybody. Thank you for your continues usage of ha-floorplan, and helping other people out in our Discussions area on GitHub. That's much appreciated!

What's Changed

Other changes

Full Changelog: 1.0.37...1.0.38

Multi-line text, class_set and fix for duplicated SVG elements on config update

14 Aug 16:49
Compare
Choose a tag to compare

Attension

Release 1.0.36 was a pre-release. Please check it out for more details about the improvement of hover_action, where you can add a class, while the cursor hovers over a element. And the text_set where it's possible to generate multi-line elements. See Release 1.0.36 details here.

What's Changed

  • Fix duplicated SVG element on config update by @maxwroc in #303

New Contributors

Full Changelog: 1.0.36...1.0.37