amaximus/anniversary

The sensor shows nothing

radimnemecek opened this issue · 4 comments

Is this add-on still in development? The sensor shows nothing. I have HA version 2022.10 with example code. State and attributes are empty.

sensor:
  - platform: anniversary
    name: events
    multiple: true
    anniversaries:
      - event: 'Doug birthday'
        date: '2000-1-15'
      - event: 'Steve Butabi'
        date: '2000-09-15'
        icon: mdi:cake-variant
      - event: 'Chazz birthday'
        date: '9-15'
        icon: mdi:cake-variant
      - event: 'Frank the tank'
        date: '1998-8-18'

Under the Developer Tools->States do you see the sensor.events sensor and its state and attributes?

Hello, I'm trying out your add-on and I'm getting a slightly similar issue.
In Developer Tools->States; the state is empty (showing up as '0') but the State attributes lists all the dates I have (I'm only showing two test dates that I added here but I have over 20):
events:

  • event_on: '2022-11-02'
    icon: mdi:calendar
    type: event
    event: Test
    event_in: '0'
    anniversary: '0'
  • event_on: '2022-11-02'
    icon: mdi:calendar
    type: event
    event: Test 2
    event_in: '0'
    anniversary: '0'

first_event_name: Test
first_event_in: '0'
first_event_on: '2022-11-02'
anniversary: '0'
icon: mdi:calendar
friendly_name: Birthdays

I'm running HA version 2022.10.5

I don't see any issue here: your first upcoming anniversary was in 0 days, which is the state value of the sensor.
As stated in the README:
The state of the sensor will be the number of days till the first upcoming event from the sensor's defined list.

Do you have any updates on this issue?