I’m experimenting with icon_url
for notifications.
It doesn’t seem to work: I’ve refreshed my app so that it syncs with the server and also added e.g. a dummy action (not included below) just as a change to ensure the config did sync. The default HA icon remains, instead of the one I set.
- service: notify.mobile_app_ceres
data:
title: "Batteries"
message: >
{%- set batteries = states.sensor
| selectattr('attributes.monitor','eq',True)
| selectattr('attributes.device_class','eq','battery')
| map(attribute='entity_id')
%}
The following devices have less than {{ threshold }}% charge:
{%- for b in batteries %}
{%- if states(b) | int < threshold %}
- {{ state_attr(b, 'friendly_name') | replace(' Battery', '') }}: {{ states(b) | int }}%
{%- endif -%}
{%- endfor %}
data:
group: "batteries"
url: homeassistant://navigate/lovelace/devices
icon_url: "https://github.com/home-assistant/assets/blob/9b782fe562cbd4e6139f9be17d8e7befafa5f945/logo/logo-small.png?raw=true"
The icon_url
in the current docs uses a broken link. I’ve submitted a PR for that.
I’m using iOS. I couldn’t find anything in the docs that states that it only works for a specific platform. Otherwise, there are surprisingly few hits on the forum for issues about this. Either I’m missing something very obvious, or almost nobody is using this feature.