Skip to content

About

Home Assistant Service call response as entity

Topics

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

marketplace_badge size_badge version_badge download_badge GitHub Repo stars GitHub Issues or Pull Requests GitHub License

Made for Home Assistant

Sponsor me Discord

Home Assistant create an action call response as it's own sensor


Title: "Response as sensor"

Description: "Create an entity from an action call response data."

Version: 1.2.0

Date created: 2024-09-21

Last update: 2026-10-29

Join the Discussion on Development: https://discord.gg/hP5n4GaPg3


Configuration Options

Set once

  • Name: Name of the new entity.
  • Action: Which service to call.

Options that you can change at any time

  • Value template: Use a template to construct the final state of the sensor.
  • Icon: Icon to use in frontend.
  • Device class: Device class (select from list).
  • State class: State class (select from list).
  • Unit of measurement: UoM to use in frontend (select from list limited by the chosen device class and state class, or write your own when neither is set).
  • Entity category: Set to diagnostic to show the sensor under "Diagnostic" on the device page instead of "Sensors".
  • Device: Device to link the sensor to, so it shows on that device's page.
  • Frequency: Frequency of the action call, don't set too low.

Installation

Option 1 (preferred)

Install from the Marketplace in Home Assistant:

Open your Home Assistant instance and open a repository inside the Marketplace.

Option 2

  1. Below config-folder create a new folder calledcustom_components if not already exist.
  2. Below new custom_components folder create a new folder called response_as_entity
  3. Upload the files/folders in custom_components/response_as_sensor directory to the newly created folder.
  4. Restart before proceeding

Activate integration in HA

Add integrations

After installation go to "Devices & services" and then "helper" page in HA, press "+ Create helper" and find "Response as sensor" Follow on-screen information for the required information No restart needed

Contributions are more than welcome

If not for code, maybe add a language file for your language. Use string.json provided by the integration as a template for adding another language.

About

Home Assistant Service call response as entity

Topics

Resources

Code of conduct

Contributing

Stars

10 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages