2021.7: A brand new entity, set off IDs and script debugging

2021.7: A new entity, trigger IDs and script debugging

Blissful July, which suggests Dwelling Assistant Core 2021.7!

An attention-grabbing launch, with a bunch of little goodies to make issues simpler in
creating automations, scripts and doing templating. These are issues that in
common, make me very completely satisfied. Primarily as a result of, properly, I take advantage of Dwelling Assistant to
automate 😁

Additionally, we’re saying “hello!” 👋 to a brand new kind of entity, which is absolutely thrilling
and I can’t wait to see how that’s being put to make use of sooner or later.

Lastly, I wish to give a shout-out to @klaasnicolaas! He has been an intern
with Nabu Casa for the final months. Moreover doing the group highlights, he
has been engaged on some superior stuff that can land in upcoming Dwelling Assistant
releases.

His internship is now over, and he handed with a pleasant grade. But, he couldn’t
go away with out a little current because it appears. He contributed the
Forecast.Photo voltaic integration, bringing in vitality manufacturing
forecasting in your photo voltaic panels. Actually cool!

Alright, that’s it! Benefit from the launch!

../Frenck

New entity: Choose

On this launch, we welcome the choose entity to the Dwelling Assistant household. The
choose entity is a detailed relative of the dropdown helper (often known as
input_select).

The distinction is that whereas the enter choose is configured and managed by you,
the choose entities are supplied by integrations.

This implies integrations can now present entities that give a selection.
Both within the Lovelace UI, but in addition through automations utilizing companies,
and through the Google Assistant.

Screenshot of a select entity, providing a choice from a list of options
Screenshot of a choose entity, offering a selection from an inventory of choices.

Some integrations began implementing the primary choose entities as of this
launch. MQTT & KNX made it obtainable to be used, WLED makes use of it to supply
controls on choosing and activating a consumer preset, and with Rituals Fragrance
Genie now you can change the room measurement in your diffuser.

Set off circumstances and set off IDs

In case you are creating some complicated automations in YAML, you may be acquainted with
this. Contemplate a giant automation, with an entire bunch of triggers. However how
would you realize which of these triggers truly triggered the automation?

Now you can assign an id to your triggers that’s handed into automation when
triggered, permitting you to make selections on it.

automation:
  - alias: "Set off IDs!"
    set off:
      - platform: state
        id: "regular"
        entity_id: binary_sensor.gate
        state: "on"
      - platform: state
        id: "forgotten"
        entity_id: binary_sensor.gate
        state: "on"
        for:
          minutes: 10
    ...

The above instance triggers the identical automation twice, when the gate opens
and when the gate is left open for 10 minutes (in all probability forgotten). Every
set off has its personal ID.

Now introducing the brand new set off situation! So you possibly can add a situation on which
set off fired the automation.

automation:
  - alias: "Set off IDs!"
    ...
    motion:
      ...
      - situation: set off
        id: "forgotten"
      - service: notify.frenck_iphone
        knowledge:
          message: "Somebody left the gate open..."

You should utilize the set off situation everywhere the place all the opposite circumstances
work as properly, together with issues like
select from a gaggle of actions.

Moderately use the UI to create and handle your automations? No drawback! These new
options have been added to the automation editor as properly!

Screenshot of using a trigger condition in the automation editor
Screenshot of utilizing a set off situation within the automation editor.

Script debugging

In Dwelling Assistant Core 2021.4,
we added the flexibility to debug automations. On this launch, we’ve made these
similar highly effective instruments obtainable for scripts!

So, this helps for the subsequent time you might be questioning: Why didn’t that script work?
Or why did it behave because it did? What the script is happening right here?

Screenshot of using the new script debugger on my office announce script
Screenshot of utilizing the brand new script debugger on my workplace announce script.

The above screenshot reveals a earlier run of a script, utilizing an interactive
graph for every step on this script; with the trail it took highlighted.
Every node within the graph could be clicked to view the small print of what occurred
on every step within the script sequence.

Referencing different entities in triggers and circumstances

A small, however presumably useful, change to our script and automations.
Now you can reference different entities for the above/beneath values of numeric
state triggers and circumstances. Each sensors and quantity entities can be utilized.

For instance, now you can set off an automation if the skin temperature
is larger than the temperature inside.

automation:
  - alias: "Notify to shut the window"
    set off:
      - platform: numeric_state
        entity_id: sensor.outside_temperature
        above: sensor.inside_temperature
    motion:
      - service: notify.frenck_iphone
        knowledge:
          message: "Shut all home windows, it's heat exterior!"

The numeric state circumstances helps the identical.

Moreover, the time circumstances now assist an analogous factor utilizing different
sensors that present a time within the earlier than and after choices. Time triggers
added assist for that already in a earlier launch.

Working with dates in templates

In case you ever tried to work with dates in templates, you in all probability know that that
is tough. And actually, that can by no means go away, instances, dates and timezones are
complicated little beasts.

Nonetheless, we realized that the toughest a part of utilizing date & instances with templates
is changing the state of a sensor or textual content to a datetime. This
launch provides a small template methodology to assist with that: as_datetime.

It may be used as a filter or as a way. Right here is an instance of
calculating the variety of days till my drivers’ license expires:

 (states('sensor.drivers_license')  days

Collection model tags for Docker containers

In case you are utilizing the Dwelling Assistant Container set up methodology,
we suggest utilizing a selected model tag; nonetheless, which means
you might want to replace the model tag every time we launch a brand new patch model
of Dwelling Assistant.

Because of @kmdm, as of this launch, we additionally present a sequence model tag
that at all times factors to the newest patch model of that launch, as well as
to all present tags we already present.

docker pull ghcr.io/home-assistant/home-assistant:2021.7

The 2021.7, will comprise the newest July launch, even when that’s
truly model 2021.7.2.

Different noteworthy adjustments

There’s way more juice on this launch; listed here are a number of the different
noteworthy adjustments this launch:

  • Z-Wave JS acquired fairly a number of updates this launch:
  • The Google Assistant integration now has assist for fan pace percentages and
    preset modes. Thanks, @jbouwh!
  • @jbouwh didn’t cease there and added fan preset mode assist to Alexa too!
  • The Philips TV integration now helps Ambilights, added by @elupus.
  • Yamaha MusicCast integration now helps grouping companies, thanks @micha91!
  • @raman325 added an entire bunch of sensors to the ClimaCell integration!
  • WLED now helps native push. Updates at the moment are immediately each methods. Additionally,
    the grasp mild could be saved and added assist for controlling consumer presets.
  • Organising Xiaomi units has gotten means simpler! There isn’t a have to do
    troublesome issues to get the tokens. As an alternative, Dwelling Assistant can now extract
    the tokens from a Xiaomi Cloud account. Thanks, @starkillerOG!
  • Extra Xiaomi updates, @jbouwh added assist for fan percentage-based speeds
    and preset modes.
  • @RenierM26 added numerous new companies to the Ezviz integration, thanks!
  • Tibber had fairly a number of enhancements and now offers an influence issue sensor,
    added by @Danielhiversen!
  • Google Translate TTS now helps the Bulgarian language,
    thanks @hristo-atanasov!
  • If in case you have a SmartTube, now you can reset your reminders, thanks @mdz!
  • KNX had numerous updates and added assist for XY-color lights,
    thanks @farmio.
  • @OttoWinter added assist for presets, customized presets and customized fan modes
    for local weather controls in ESPHome. Superior!
  • Nuki now has a service to allow/disable steady mode, thanks @anaisbetts!
  • @cgomesu added quantiles to Statistics integration, thanks!
  • The Dwelling Assistant login web page now higher assist password supervisor,
    thanks, @rianadon!

New Integrations

We welcome the next new integrations this launch:

New Platforms

The next integration acquired assist for a brand new platform:

Integrations now obtainable to arrange from the UI

The next integrations at the moment are obtainable through the Dwelling Assistant UI:

Launch 2021.7.1 – July 8

Launch 2021.7.2 – July 12

Launch 2021.7.3 – July 16

Launch 2021.7.4 – July 21

In case you need assistance…

…don’t hesitate to make use of our very energetic boards or be part of us for a bit of chat.

Experiencing points launched by this launch? Please report them in our challenge tracker. Make certain to fill in all fields of the problem template.

Breaking Adjustments

Under is an inventory of the breaking change for this launch, per topic or
integration. Click on on a type of to learn extra in regards to the breaking change
for that particular merchandise.

Database (statistics desk)

Google Play Music Desktop Participant (GPMDP)

Spain electrical energy hourly pricing (PVPC)

Zero-configuration networking (zeroconf)

All adjustments

Click on to see all adjustments!



Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts