Skip to main content

Calculations

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

This blueprint allows you to calculate the result of a mathematical expression using Wolfram Alpha's Short Answers API. The spoken response includes both the expression and the answer, in order to confirm the user was accurately understood. This is a community contribution authored by user michelle-avery (Github)/miniconfig (Discord). Support can be obtained through the View Assist Discord server or the discussion group on Github. Please tag the author in your message.

Prerequisites

  • You must have Pyscript installed See installation video
  • You must set up an account and create an API key for Wolfram Alpha's Short Answers API. Free API keys are alloted 2,000 calls per month.
  • You must download the required pyscript, add your appid to the appid parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.

Changelog

VersionDescription
v 1.0.0Initial release