Integrations

Weather

Spook adds an action to the weather integration of Home Assistant that sets the units weather entities are shown in, for many at once.

The weather integration is the one behind every forecast in Home Assistant: the temperature outside, the wind, the pressure, the rain on its way. The weather service you install brings one or more weather entities along.

Home Assistant lets you pick the units a weather entity is shown in, in its settings, one entity at a time. Spook adds an action that sets them from an automation or a script, on as many weather entities as you like.

Actions

Spook adds one action to the weather integration. You find it wherever you add an action, marked with a 👻.

Set units

Sets the units one or more weather entities are shown in.

The same five units you find in the settings of a weather entity: temperature, pressure, wind speed, visibility and precipitation. Home Assistant converts every value, the forecast included. Wind in mph and pressure in inHg for the sailing club, kilometres per hour for everybody else.

Set only the units you want to change: the ones you leave out stay as they are.

How to use it

  1. Open the automation or script that should do this, and select Add action.
  2. Search for units, and select Weather: Set units 👻.
  3. Under Entity, pick the weather entities.
  4. Pick the units you want to change, like Wind speed unit mph and Pressure unit inHg.
  5. Select Save.

To go back to the unit Home Assistant picks by itself, set that unit to null in YAML mode.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

Use cases

What people use this for:

  • Show the weather in the units a guest or a hobby expects, like mph and inHg, and switch back afterwards.
  • Set the same units on every weather entity in one action, instead of opening each one in the UI.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.