title: '2023.7:可响应的服务' description: '<a href=''/home-assistant/integrations/版本/2023.7''<img src=''/home-assistant/images/blog/2023-07/social.png'' style=''border: 0;box-shadow: none;''</a。' 更快的蓝牙代理、仪表盘中的复制粘贴、全新的图像实体、打开 Assist 的仪表盘动作、 Matter 的温控支持等等!

2023.7:可响应的服务

Home Assistant 核心 2023.7! 🎉

上一个发布已经非常重磅,而这次也同样不例外!

这次发布为 Home Assistant 带来了一项我们认为是近几年最具颠覆性的变化之一: 服务现在可以返回数据了!🤯

这是一项非常基础但影响深远的改变,它将开启许多全新的用例, 也为无限可能打开大门。我对它感到无比兴奋!

但这还不是全部;还有很多内容在等着你!我个人特别喜欢的包括: 蓝牙代理现在快得惊人、仪表盘支持复制粘贴、新的句子触发器, 还有我很喜欢的一点:损坏的自动化不再凭空消失,而是会在 UI 中显示并标记为有问题。

总的来说,这是一次非常棒的发布,塞满了新功能和大量体验改进。

Enjoy the 发布!

../Frenck

Don't forget to join our 发布 party live stream on YouTube 5 July 2023, at 12:00 PDT / 21:00 CEST!

服务现已可以响应

服务 can now respond with data! 🎉

Yes, you read that right! This advanced feature is a huge step forward for Home Assistant and will allow for a lot of new possibilities. It is one of the biggest fundamental changes to Home Assistant made in the past years.

Calling a 服务 in an 自动化 or 脚本 was a one-way communication to control your 设备 and 服务. For example, 打开 a 灯光, or make an announcement on your speakers.

So, what is the use of a 服务 responding with data? Well, it could be used to ask for information from a 设备 or 服务. For example, you could ask Home Assistant which events are on your calendar today and use the answer from that 服务 call to create a 通知 or announcement.

Screenshot showing a response to a 服务 call in the Home Assistant 开发者 tools, listing waste pickup calendar events.

In this 发布, we have included two brand-new 服务 to play with 服务 responses:

    • This 服务 allows you to ask Assist a command or question and get a response back.
    • This 服务 enables you to ask Home Assistant for a list of events on your calendar.

If you combine those in an 自动化, in the morning, you could ask Home Assistant for today's calendar events, add things like weather information, send it to ChatGPT using the conversation process, and ask it to summarize it and use that response to send a 通知 to your phone.

@allenporter has put this all together for you in this Blueprint:

This is just one example, but the possibilities are endless! It is exciting to see what other creative use cases and new 服务 with responses will be added in the future!

This feature is also added to 脚本! So, you can make your 脚本 respond and use that response in your 自动化. This is a great way to make your 脚本 more dynamic and flexible.

A special thanks to @allenporter, who has been responsible for building out the larger part of this feature!

门锁的新实体对话框

We are continuing to improve the 实体 dialogs. This time, we have reworked the 实体 dialog for 门锁. It looks great!

It looks similar to the 实体 dialog for the 开关, but it has a few extra features like asking for an unlock code and has a beautiful animation when it is (un)locking.

Screen recording demonstrating the new 门锁 实体 dialog.

Sentence 触发器

Our Assist is getting more and more powerful! This time, we have added a new 触发器 to our 自动化 editor that allows you to 触发器 an 自动化 when a sentence is said to the default Assist conversation agent. 🤯

Screenshot of the new sentence 触发器 that can be used with 自动化.

Creating an 自动化 based on something that is said, has never been easier. In the above screenshot, just mentioning "what a mess" will send out the living room 吸尘器 to start cleaning up the mess.

打开 Assist 的动作

Another one for the Year of the Voice, a brand new 动作 for use in 仪表盘 卡片, has been added: the Assist 动作!

Screenshot showing the new Assist 动作 available in 仪表盘 卡片.

With this 动作, you can directly open Assist from your 仪表盘 using, for example, a button and even make Assist listen right away.

Screen recording of the new Assist 动作 in use. Shows the normal 动作 and the 动作 that start listening immediately.

There are quite a few cases where this 动作 can be useful. For example, if you have a tablet mounted on the wall, you can use this 动作 to open Assist and start listening immediately using a single button touch.

图像实体

There is a brand new 实体 type in town: the image 实体.

The image 实体 is very similar to the 摄像头 实体, but instead of providing a live stream, it provides a single image. For example, a QR code that provides the Wi-Fi credentials for your guest network, a weather map, an image of the last motion detected by your 摄像头, or just the cute cat picture of the day!

Screenshot of a new image 实体 more information dialog, showing a QR code in the image.

While the 摄像头 实体 provided similar functionality, we wanted to make an 实体 tailored for these specific use cases. An image 实体 is much more lightweight and efficient compared to the 摄像头 实体. Also, this keeps our 摄像头 实体 focused on providing actual 摄像头 feeds.

Support for this brand new 实体 has been added to the AVM Fritz!Box Tools (for guest network access), and the MQTT and Template integrations if you want to build your own.

能源仪表盘:自给自足率

The energy 仪表盘 has a new gauge, added by @TillFleisch: Self-sufficiency.

This gauge tells you how self-sufficient your home is. The more you take from the grid, the more the value will decrease.

Screenshot showing the energy 仪表盘 featuring the new self-sufficiency gauge.

Increasing this value can be done by lowering your consumption from the grid, for example, by using the washing machine when the sun is shining and solar production is high or by creating 自动化 that 关闭 设备 when solar production is low. Another more drastic way is by adding more solar 面板 or battery storage.

仪表盘中的复制粘贴支持

In the previous 发布, @karwosts added the amazing copy 'n paste feature to our 自动化 and 脚本 editors. This 发布, he is back with the same feature for our 仪表盘!

You can now cut, copy, and paste 卡片 between your 仪表盘, views, and even inside other nested 卡片. This makes it a lot easier to reorganize your 仪表盘!

Screenshot showing the new cut and paste options available in the overflow menu of 仪表盘.

Just like with 自动化, select the 卡片 you want to cut or copy, and when adding a new 卡片 to your 仪表盘, you will see a new option to paste.

When reorganizing your 仪表盘 that use a masonry layout, it is mandatory to understand the order of the 卡片 across the different columns in your view. To make that easier we now show a positional number on the 卡片 when your 仪表盘 is in edit mode.

Added bonus: Who needs drag 'n drop when you've got click 'n ...teleport? Just kidding, of course; however, teleporting already makes things a lot easier! Click on the positional number to enter a new position for the 卡片.

Screen recording demonstrating clicking the positional number, provides a way to move a 卡片 to a different position.

选择要使用/显示的时区

You can now select which timezone the Home Assistant interface should use in your user profile. Useful when traveling or when you, for example, manage an instance for a relative in a different time zone.

Screenshot showing a new option in the user profile, that allows you to choose if you want Home Assistant to use the server or your current timezone.

You can choose to use the timezone of your current location, or use the timezone that your Home Assistant server is in. The Home Assistant 前端 will adjust all of the date & times to the selected timezone.

集成仪表盘的迭代改进

In the last 发布, we introduced new integrations 仪表盘 & pages, which many of you really liked. Yet, there has been some feedback, and we have been working on improving it.

The main goal was to make it feel less busy, more familiar and consistent with all other UI you see in Home Assistant.

Screenshot showing the latest updates and tweaks made to the 集成 仪表盘, making it less busy.

The 卡片 shown are now more consistent with the rest of Home Assistant and the full 集成 name and logo is now clickable. The cog, 设备 and 服务 items have been removed, and the indicators for custom 集成 and cloud 服务 are no longer overlapping the logos.

不可用的自动化与脚本

自动化 and 脚本 are awesome! They can add a lot of comfort to your home, making your home 自动化 feel like magic. But they have a weird quirk: if you made an 错误 in their 配置, they would just disappear from Home Assistant. 😞

This is no longer the case! 😀 If an 自动化 or 脚本 has an 错误, it will now show up as unavailable, accompanied by a red confused 自动化 robot.

Screenshot showing the list of 自动化, with one broken 自动化 in that list.

Selecting such an 自动化 will show you the details of the 错误 message so you know what is going on and what to fix.

Screenshot showing the 自动化 editor displaying a broken 自动化, including the 错误 message on what is wrong.

新的脚本对话框

When you create a new 自动化, you’ll get a nice dialog where you can create a new one from scratch or use one of your imported blueprints as a starting point.

@karwosts has now added the same dialog to our 脚本 editor! 🎉

Screenshot of the dialog shown when creating a new 脚本, allowing you to select blueprints as well.

Being able to set up 脚本 from Blueprints is great, as combined with the brand new 服务 response feature, these become a lot more powerful and a lot more useful for sharing!

You can find new 脚本 Blueprints for you to use in the Blueprint Exchange on our community forum.

闪电般快速的蓝牙代理

A great way to extend the range of 蓝牙 for your Home Assistant set up is by using 蓝牙 proxies. These 蓝牙 proxies are now even faster! Like... really fast! 🚀

You can expect to see a 40-80% decrease in network traffic between Home Assistant and the proxy 设备. It now bundles and sends multiple 蓝牙 advertisements in bulk, instead of sending them one by one.

Another large contributor to the speed increase is that the processing of the advertisements is now done in Home Assistant instead of on the proxy 设备. A win-win; it is faster this way and contributes to making the ESP 设备 more stable and reliable.

For this to work, you need ESPHome 2023.6.0 or later.

Matter 更新

Quite a few significant changes have been made to the Matter 集成.

The biggest change can be found in the way subscriptions are handled. Especially on larger (Thread) networks, this will result in a much faster and more reliable experience. This also affects startup time, which is now blazing fast (from minutes to seconds).

Changes to connected Matter bridges are now instantly detected, so when adding a new 设备 to a bridge (like, for example, a connected Aqara M2 hub) the 设备 will show up immediately.

Last but most certainly not least: The Matter 集成 now supports 温控 设备! 🎉

A Nest Thermostat connected as a Matter 温控 设备.

This means if you have a Nest Thermostat (not the E or learning ones) with the latest firmware, you can now use it directly with Home Assistant, entirely local without clouds!

降低遇到不向后兼容变更的风险

Backward-incompatible changes, nobody loves them, but they are sometimes necessary to move forward. We try to keep them to an absolute minimum, but sometimes they are inevitable.

However, we do want to reduce the risk of running into them. Therefore we have adopted a new policy for deprecating YAML 集成 配置 options.

We now require that a YAML 配置 option is deprecated for at least 6 months before being removed. This means you won’t be running into a hard-breaking change if you skip a 发布 or two.

To improve this further, if possible, an automatic migration is now required and an issue in the repairs 仪表盘 will be raised if the deprecation applies to your 配置.

其他值得注意的变更

There are many more improvements in this 发布; here are some of the other noteworthy changes this 发布:

新集成

We welcome the following new 集成 in this 发布:

发布 2023.7.1 - July 6

发布 2023.7.2 - July 13

发布 2023.7.3 - July 21

现已支持通过 UI 配置的集成

The following 集成 are now available via the Home Assistant UI:

需要帮助?加入社区!

Home Assistant has a great community of users who are all more than willing to help each other out. So, join us!

Our very active Discord chat server is an excellent place to be at, and don't forget to join our amazing forums.

Found a bug or issue? Please report it in our issue tracker, to get it fixed! Or, check our help page for guidance for more places you can go.

Are you more into email? Sign-up for our Building the Open Home Newsletter to get the latest news about features, things happening in our community and other news about building an Open Home; straight into your inbox.

不向后兼容的变更

If you use the Home Assistant 容器 安装 method, for example, using Docker, please make sure you are using our official (multi-platform) images.

The correct and preferred image to use for our stable releases is:

  • ghcr.io/home-assistant/home-assistant:stable

Although not the preferred location by the Home Assistant project, the image is also available on DockerHub:

  • homeassistant/home-assistant:stable

The reason for mentioning this in this breaking change section is that we have seen usage of our internal, intermediate, platform build images. These images are not meant for use directly, and using the above listed images is strongly recommended.

As of this 发布, we no longer publish our intermediate platform images to DockerHub. This means that if you are using these images, you will no longer receive updates. Please use the above-listed images instead.

(@pvizeli - #95236)

The previously deprecated YAML 配置 of the Bose SoundTouch 集成 has been removed.

Bose SoundTouch is now configured via the UI. Any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@gjohansson-ST - #94090) (文档)

When using the Assist shortcut on iOS, it will now always talk to Home Assistant conversation agent even if the OpenAI or Google LLM conversation 集成 are set up.

(@balloob - #95225) (文档)

As an additional security hardening measure, the default for allowing ESPHome 设备 to make 服务 calls has changed. If you want to permit the ESPHome 设备 to make 服务 calls, it must be enabled in the options flow.

  • For existing 设备, calling Home Assistant 服务 continues to be allowed.
  • For newly configured 设备, it must now be enabled in the options flow.

(@bdraco - #95143) (文档)

The default name given to backups 创建 with the hassio.full_backup and hassio.partial_backup 服务 is now longer "" but the date and time the 备份 was initiated (%Y-%m-%d %H:%M:%S, for example, "2023-07-05 13:37:42").

(@ludeeus - #94468) (文档)

The behavior of Hyperion 灯光 has changed:

Turning off the 灯光 实体 will only clear the priority you have configured during the 集成 设置. Other Home Assistant independent 灯光 sources in Hyperion might still be active and cause 灯光 to be emitted. If you want to turn the 灯光 off entirely, regardless of active 灯光 sources, you can enable the switch.[instance]_led_device 实体 that acts as a global 开关.

External effects that are unrelated to the Hyperion 灯光 source (such as USB capture) have been removed from the 灯光 实体. To control them, enable the respective disabled-by-default 开关 实体.

(@Sab44 - #80478) (文档)

If the initial temperature, min_temp, or max_temp is not set, the default temperature will be converted to the set temperature_unit or system default temperature unit if this is not degrees Celsius.

(@jbouwh - #93965) (文档)


The behavior of MQTT 温控 when power_command_topic is set has been changed:

  • The hvac_mode 状态 属性 is no longer optimistically set if power_command_topic is defined and climate.turn_on or climate.turn_off is called.
  • When hvac_mode is changed, payload_on or payload_off messages will not be published on the power_command_topic.

This also means power_command_topic is no longer deprecated.

(@jbouwh - #94832) (文档)

The values for the source 属性 have changed. We wanted to show more user friendly values for the source 属性, such as "Net Radio" instead of "net_radio".

If you have any 自动化 depending on the source 状态 属性 of the media player 实体, you will have to 更新 these. Calling the select_source 服务 will still be possible using the old source names. (@micha91 - #74954) (文档)

The 属性 cloudiness has been replaced by the 属性 cloud_coverage. Please 更新 any 自动化 or 脚本 that is using this 属性 to use the newly added cloud_coverage 属性.

(@gjohansson-ST - #95096) (文档)

The previously deprecated YAML 配置 of the Slack 集成 has been removed.

Slack is now configured via the UI. Any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@gjohansson-ST - #94106) (文档)

The previously deprecated YAML 配置 of the Xbox 集成 has been removed.

Xbox is now configured via the UI. Any existing YAML 配置 has been imported in previous releases and can now be safely removed from your YAML 配置 files.

(@gjohansson-ST - #94094) (文档)

风扇 speed percentage for Honeywell(JE/Jasco) 39358 and Enbrighten(GE/Jasco) 55258 in wall 风扇 controllers are now mapped to levels (low, medium, high).

This may affect 脚本 or automatons setting 风扇 speeds to specific percentages.

(@jgrieger1 - #92371) (文档)

If you are a custom 集成 developer and want to learn about breaking changes and new features available for your 集成: Be sure to follow our developer 博客. The following are the most notable for this 发布:

告别以下内容

The following 集成 are also no longer available as of this 发布:

  • SenseME has been removed. Big Ass 风扇 changed the protocol in a newer firmware in April 2022. The Big Ass 风扇 集成 can be used as a replacement, after updating to the latest firmware. (@bdraco - #94363)

全部变更

Of course, there is a lot more in this 发布. You can find a list of all changes made here: Full changelog for Home Assistant 核心 2023.7