amaximus / anniversary

Anniversary integration for Home Assistant
MIT License
17 stars 2 forks source link

2024.10 HA update #23

Open labanex opened 1 month ago

labanex commented 1 month ago

Since upgrading to HAOS 2024.10, Anniversaries is not working. Is there a new update coming soon? thank you.

amaximus commented 1 month ago

@labanex thanks for reporting this issue.

It has been fixed in the recently published 0.3.1 version.

Please update the custom component and get back to me with results.

tomajzl commented 1 month ago

Hi, I tried manualy update this component to 0.3.1 as you mentioned, but still not works

2024-10-04 19_25_12-Window

amaximus commented 1 month ago

This later issue is an installation issue. You should install it via HACS the restart HA.

marto68 commented 1 month ago

Hi I just installed anniversaries, (it wasn't listed as "Upcoming anniversary") via HACs and restarted.

I added events just like the example and on checking the configuration received the following errors:

Configuration warnings Integration error: anniversaries - Integration 'anniversaries' not found. Integration error: name - Integration 'name' not found. Integration error: multiple - Integration 'multiple' not found. Integration error: platform - Integration 'platform' not found.

It doesn't seem to find the integration

Thanks

amaximus commented 1 month ago

@marto68 please note that the example from the README has a format for the case when the anniversary sensor is in one dedicated file which - together with other sensor definition files - is included with sensor: !include_dir_list sensors in configuration.yaml:

(ha_venv3_12) thin620t:~/homeassistant_conf $grep "^sensor" configuration.yaml
sensor: !include_dir_list sensors
(ha_venv3_12) thin620t:~/homeassistant_conf $head -5 sensors/anniversaries.yaml
platform: anniversary
name: events
anniversaries:
  - event: 'Ákos'
    date: '2004-1-15'
(ha_venv3_12) thin620t:~/homeassistant_conf $
amaximus commented 1 month ago

@labanex when installed properly, it works in 2024.10.x as well:

(ha_venv3_12) thin620t:~/homeassistant_conf $curl -H @hass_header.txt http://192.168.1.32:8123/api/states/sensor.current_version
{"entity_id":"sensor.current_version","state":"2024.10.1","attributes":{"friendly_name":"Current Version"},"last_changed":"2024-10-06T10:40:07.631511+00:00","last_reported":"2024-10-06T10:40:07.631511+00:00","last_updated":"2024-10-06T10:40:07.631511+00:00","context":{"id":"01J9GPMHEFD4Q9BQHH32RJAYYV","parent_id":null,"user_id":null}}
(ha_venv3_12) thin620t:~/homeassistant_conf $curl -s -H @hass_header.txt http://192.168.1.32:8123/api/states/sensor.events | python -m json.tool | grep -A3 -B4 Krisztina
            {
                "event_on": "2025-08-05",
                "icon": "mdi:calendar",
                "type": "event",
                "event": "Krisztina nap",
                "event_in": "302",
                "anniversary": "None"
            },
(ha_venv3_12) thin620t:~/homeassistant_conf $