Skip to content

gjohansson-ST/response_as_sensor

Repository files navigation

hacs_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."

Date created: 2024-09-21

Last update: 2024-09-21

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, only temperature, or write your own).
  • Frequency: Frequency of the action call, don't set too low.

Installation

Option 1 (preferred)

Use HACS to install Add as custom repository to HACS

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

About

Home Assistant Service call response as entity

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages