Home Assistant: DAYS UNTIL speech macro using Wolfram Alpha

Опубликовано: 02 Август 2026
на канале: vCloudInfo
884
29

A few videos and posts ago, we made a new Holiday sensor that would use Wolfram Alpha API to give us the days until a particular holiday. You can read and watch the video on that subject here:
   • Home Assistant Holiday Wolfram Alpha Sensor!  

This time around, we use these sensors and add functionality to allow Home Assistant to append these types of stats into some of the speech routines that house normally processes. So like a ‘and one more thing’, type of speech response. These type of random house stats and facts help give Joanna more of a personality and spontaneity throughout the day.

For the speech macro, we first evaluate the month and if it is a holiday month like October or December, we will occasionally add in this fact to the overall speech message. I say occasionally since the house does have several options to randomly choose from.

{# call a Random fact about the house or inspiration quote #}
{{ ([iss, moon, uv, holiday, days_until, outside_weather, outside_weather, inspirational_quote]|random)() }}

The holiday code is just one of those options. The house also has stats on the International Space station, weather, moon phases, and inspirational quotes.

Repo LIST:
JeffreyStone - https://github.com/thejeffreystone/ho...
CCostan - https://github.com/CCOSTAN/Home-Assis...

You can read about all of this and more Home Automation articles in greater detail on my Website:
https://www.vcloudinfo.com/

CONTACT ME:
https://www.vcloudinfo.com/about-me

SUPPORT:
Please consider supporting this channel by visiting the blog and/or using the Amazon Affiliate links found in the descriptions. They cost nothing extra and really help the channel.
Affiliate Disclosure - https://www.vcloudinfo.com/p/affiliat...

👋 About this channel: My name is Carlo. I've been running Home Assistant for a BUNCH of years. Almost from the very beginning actually. This channel is focused on bringing what I have implemented at my own house to you so that you can bring it to your house. The channel will be a mix of reviews, tutorials, and inspiration. It is a companion to my GitHub site that holds all the code for my Smart Home and my main site where I keep the more in-depth technical writings. I hope you will enjoy the videos and consider subscribing.

CREDITS:
Design by Steve Fatone - IG: @Steve_Fatone