this post was submitted on 09 Jul 2023
14 points (100.0% liked)

homeassistant

15359 readers
5 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk

founded 2 years ago
MODERATORS
 

In Home Assistant 2023.7 a feature was added to allow services to provide a response.

This release brings in a change to Home Assistant, which we consider to be one of the biggest game changers of the past years: Services can now respond with data! 🤯

It is such a fundamental change, which will allow for many new use cases and opens the gates for endless possibilities.

In this release the functionality has only been enabled for a couple of services, but I’m having trouble picturing what we can use this for now and in the future.

What are some use cases you can think of on how to use this new feature?

you are viewing a single comment's thread
view the rest of the comments
[–] Deez@lemm.ee 1 points 2 years ago

Thanks for the detailed response!

Ok, so I’m thinking script responses would be useful for a sections of logic, that have one (or more) of the following characteristics:

  • It is more complex than you would want to process in a template sensor (as Scripts have the Trace log, and GUI support)
  • It is logic that is currently evaluated in multiple scripts/automations, so you can simplify and centralise
  • It is an evaluation you want to run on demand
  • It is data that you don’t want to keep in the history database

I think I’m wrapping my head around scripts responses. Still need to imagine how it will work for other services.