Birthday countdown stopped working after core-2021.6.
Here is the log from Check Home Assistant configuration.
Failed config
homeassistant.packages.birthday.input_label:
- Package birthday setup failed. Component input_label Integration 'input_label' not found.
- automation: [source /tmp/config/packages/birthday.yaml:81]
- action: [source /tmp/config/packages/birthday.yaml:96]
- data_template: [source /tmp/config/packages/birthday.yaml:98]
message: {{ trigger.entity_id.split('.')[1].split('_')[0] | title }}'s Birthday is only {{ trigger.to_state.state }} days to go!
service: script.notify_me
alias: Birthday Countdown 30 Days
condition: [source /tmp/config/packages/birthday.yaml:93]
- condition: template
value_template: {{ trigger.to_state.state | int > 0 and trigger.to_state.state | int < 30 }}
initial_state: True
trigger: [source /tmp/config/packages/birthday.yaml:84]
grep: write error: Broken pipe
Logs:
Logger: homeassistant.components.automation
Source: components/automation/init.py:737
Integration: Automation (documentation, issues)
First occurred: 9:30:59 AM (161 occurrences)
Last logged: 9:55:00 PM
Error evaluating condition in 'Update Birthdays': In 'condition' (item 1 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 2 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 3 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 4 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 5 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 6 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state'
Error evaluating condition in 'Random Birthday Wishes': In 'condition': In 'and' (item 2 of 2): In 'or' (item 1 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 2 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 3 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 4 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 5 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 6 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state'
Logger: homeassistant.helpers.template
Source: helpers/template.py:1377
First occurred: 9:30:49 AM (902 occurrences)
Last logged: 9:55:00 PM
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.richard_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.nicholas_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.kallea_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.dad_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.tot_birthday.state.split('-') | length > 0 }}'
Birthday countdown stopped working after core-2021.6.
Here is the log from Check Home Assistant configuration.
Failed config
homeassistant.packages.birthday.input_label:
- Package birthday setup failed. Component input_label Integration 'input_label' not found.
- automation: [source /tmp/config/packages/birthday.yaml:81]
- action: [source /tmp/config/packages/birthday.yaml:96]
- data_template: [source /tmp/config/packages/birthday.yaml:98]
message: {{ trigger.entity_id.split('.')[1].split('_')[0] | title }}'s Birthday is only {{ trigger.to_state.state }} days to go!
service: script.notify_me
alias: Birthday Countdown 30 Days
condition: [source /tmp/config/packages/birthday.yaml:93]
- condition: template
value_template: {{ trigger.to_state.state | int > 0 and trigger.to_state.state | int < 30 }}
initial_state: True
trigger: [source /tmp/config/packages/birthday.yaml:84]
grep: write error: Broken pipe
Logs:
Logger: homeassistant.components.automation
Source: components/automation/init.py:737
Integration: Automation (documentation, issues)
First occurred: 9:30:59 AM (161 occurrences)
Last logged: 9:55:00 PM
Error evaluating condition in 'Update Birthdays': In 'condition' (item 1 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 2 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 3 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 4 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 5 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'condition' (item 6 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state'
Error evaluating condition in 'Random Birthday Wishes': In 'condition': In 'and' (item 2 of 2): In 'or' (item 1 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 2 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 3 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 4 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 5 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state' In 'or' (item 6 of 6): In 'template' condition: UndefinedError: 'None' has no attribute 'state'
Logger: homeassistant.helpers.template
Source: helpers/template.py:1377
First occurred: 9:30:49 AM (902 occurrences)
Last logged: 9:55:00 PM
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.richard_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.nicholas_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.kallea_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.dad_birthday.state.split('-') | length > 0 }}'
Template variable error: 'None' has no attribute 'state' when rendering '{{ states.input_label.tot_birthday.state.split('-') | length > 0 }}'