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:
- Go to Settings > Automations & scenes.
- Open an existing automation or script, or select Create automation > Create new automation.
- 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.
- In the Then do section, select Add action.
- Select Jewish Calendar: Count the Omer.
- Set the nusach and other options.
- Select Save.
Options in the UI
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.
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:
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
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.
The nusach, or tradition, of the Omer blessing. Supported values are sfarad, ashkenaz, adot_mizrah, and italian.
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.
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
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.
AI assistants like ChatGPT or Claude can also explain actions or suggest the right one when you describe what you want in plain language.