Skip to content

Month Detection

Scott Gusler edited this page Feb 13, 2026 · 2 revisions

Month Detection

Detects if the current date falls within specified months.

Overview

A month sensor is ON when the current date is in one of the selected months, OFF otherwise.

Configuration

  1. Select "Month Detection"
  2. Configure:
    • Calculation Name: A friendly name
    • Months: Comma-separated month numbers (1-12)
    • Icon: Optional custom icon

Add Month Detection

Month Numbers

  • 1 = January, 2 = February, 3 = March
  • 4 = April, 5 = May, 6 = June
  • 7 = July, 8 = August, 9 = September
  • 10 = October, 11 = November, 12 = December

Examples

1. Winter Months (Northern Hemisphere)

{
  "type": "month",
  "name": "Winter Months",
  "months": "12,1,2"
}

2. Summer Vacation

{
  "type": "month",
  "name": "Summer Vacation",
  "months": "7,8"
}

3. School Year

{
  "type": "month",
  "name": "School In Session",
  "months": "1,2,3,4,5,9,10,11,12"
}

4. Tax Season

{
  "type": "month",
  "name": "Tax Season",
  "months": "1,2,3,4"
}

Add Month Detection Is Tax Season Example

Automation Examples

automation:
  - alias: "Summer mode lighting"
    trigger:
      platform: state
      entity_id: binary_sensor.summer_months
      to: "on"
    action:
      service: light.turn_on
      data:
        brightness: 255

  - alias: "Winter extended heating"
    condition:
      - condition: state
        entity_id: binary_sensor.winter_months
        state: "on"
    trigger:
      platform: time
      at: "05:00:00"
    action:
      service: climate.set_temperature
      data:
        temperature: 72

Clone this wiki locally