Count the Omer

Use this action to get the phrase for counting the Omer on a given date.

Using this action from the user interface

If you prefer building automations and scripts visually, Home Assistant walks you through this action step by step. You pick what to target, tweak a few options, and save. No YAML knowledge required.

To count the Omer from an automation or a script:

  1. Go to Settings > Automations & scenes.
  2. Open an existing automation or script, or select Create automation > Create new automation.
  3. If you’re setting up a new automation, add a trigger in the When section. Scripts don’t need a trigger. They run when something else calls them.
  4. In the Then do section, select Add action.
  5. Select Jewish Calendar: Count the Omer.
  6. Set the nusach and other options.
  7. Select Save.

Options in the UI

Date (Optional)

The date for which to get the Omer count. If unset, the action uses today.

After sunset (Optional)

If enabled and a date is provided, the action calculates the Omer count based on the Hebrew date, which starts after sunset. Ignored if no date is specified.

Nusach

The nusach, or tradition, of the Omer blessing.

Language (Optional)

The language to return. Supported languages are English, Hebrew, and French.

Using this action in YAML

If you work directly in YAML, or you want to know exactly what Home Assistant does under the hood, this section has the technical reference. It lists the field names you use in YAML, their types, and which ones are required.

In YAML, refer to this action as jewish_calendar.count_omer. Store the result in a response variable so you can use it in later steps:

ActionActions are used in several places in Home Assistant. As part of a script or automation, actions define what is going to happen once a trigger is activated. In scripts, an action is called *sequence*. [Learn more]
action: jewish_calendar.count_omer
data:
  nusach: sfarad
  date: "2025-05-20"
  language: en
response_variable: omer_count

This returns the Omer count for May 20, 2025, in English.

Options in YAML

date string

The date for which to get the Omer count. If unset, the action uses today.

after_sunset boolean

If true and a date is provided, the action calculates the Omer count based on the Hebrew date, which starts after sunset. Ignored if no date is specified.

nusach string Required, default: sfarad

The nusach, or tradition, of the Omer blessing. Supported values are sfarad, ashkenaz, adot_mizrah, and italian.

language string

The language to return. Supported values are en, he, and fr.

This action does not support targets.

Response data

The action response includes the following fields:

  • message: The phrase for counting the Omer. If there is no Omer count on the given day, this value is empty.
  • weeks: The number of complete weeks.
  • days: The number of days after the complete weeks.
  • total_days: The total number of Omer days.

Good to know

  • If there is no Omer count on the given day, the message is empty.
  • The Hebrew date starts after sunset.

More examples

Real scenarios where this action shows up in automations and scripts. Copy any example and adapt it to your setup.

Tip

You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.

Minimal count in Hebrew

ActionActions are used in several places in Home Assistant. As part of a script or automation, actions define what is going to happen once a trigger is activated. In scripts, an action is called *sequence*. [Learn more]
action: jewish_calendar.count_omer
data:
  nusach: sfarad
response_variable: omer_count

Still stuck?

The Home Assistant community is quick to help: join Discord for real-time chat, post on the community forum with the action you’re calling and what you expected to happen, or share on our subreddit /r/homeassistant.

Tip

AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.