Who knew it was the little things - now to figure out changing URL color thanks again for all your help and the great component.
Hey @firstof9 quick question - on your hassio setup do you get the mail images? I was gonna try the suggestion a few threads up by @moralmunky, but I wanted to ask beforehand.
I was theyāve recently stopped. Iāll have to check the debugs over the weekend.
Is there something I am missing that would cause it to not show up in integrations?
Did you put the files into the custom_components
directory in your configuration folder?
yes they are in thereā¦ the new ones with the config_flow.py etcā¦
I still had the include from the old version in thereā¦ should I remove that?
You can itās not needed anymore to include the package version.
So I waited awhile, made sure everything was deleted and installed the component again today and it is working. The problem I have is I couldnāt get the mail-card to show up, I realized the sensor names had changed from the example but I also noticed I am missing sensor.mail_deliveries_today and sensor.mail_deliveries_message and Iām not seeing a similar sensor that would be the proper one. Should those sensors be there? Or is it just the outdated example of the custom card that is throwing me off?
Make a template sensor, this is what I use:
- platform: template
sensors:
mail_deliveries_message:
friendly_name: "Deliveries Summary"
entity_id:
- sensor.mail_usps_mail
- sensor.packages_in_transit
value_template: >
{# Deliveries Sentence #}
{% macro deliveries_sentence() -%}
{%- if states("sensor.mail_usps_mail")|int == 0 -%}
No
{%- else -%}
{{states("sensor.mail_usps_mail")|int}}
{%- endif -%}
{{' '}}
{%- if states("sensor.mail_usps_mail")|int <= 1 -%}
mail
{%- else -%}
pieces of mail
{%- endif -%}
{{' '}}will be delivered.{{' '}}
{%- if states("sensor.packages_in_transit")|int == 0 -%}
No
{%- else -%}
{{states("sensor.packages_in_transit")|int}}
{%- endif -%}
{{' '}}
{%- if states("sensor.packages_in_transit")|int == 1 -%}
package is
{%- else -%}
packages are
{%- endif -%}
{{' '}}in transit.{{' '}}
{%- endmacro %}
{{deliveries_sentence()}}
Ok sorry I guess I just thought it was automatically generated with the integration.
Iāve been absent. Finally had some time this week to upgrade HASS to 0.103.5 and to see what @firstof9 has been adding to āMail and Deliveriesā. The integration setup is sweet! Iām getting an error during from the email search that Iām trouble shooting. Iāve logged it on Github and will have time this weekend to fiddle with it.
That for the great strides in getting this modernized @firstof9. Iām thrilled with what you have been able to add from where I left off.
I got your integration working today. Thank you guys for putting the time into creating this for us. The only thing that doesnāt seem to work so far is the gif. All I see is the āno mailā picture even though I can see the pictures in the actual email. The count does have the correct number I just canāt see the scans. Is it broken or did I miss something?
How are you running Hass?
Iām running HassOS in a virtualbox
Ah ok. Iām not sure on hassos but I know for docker I had to manually install imagemagick for the images to work.
Thanks, I just tried that by successfully installing imagemagick through SSH but it didnāt seem to work unfortunately.
Needs to be installed in the image I think so you need to get into the image. But again Iām not am expert on hassos so idk is itās needed or how youād do it
So I switched to hass.io in a Ubuntu docker and installed imagemagick into the container itself to see if I can get this to work but now my path is different and I keep getting errors that the path doesnāt exist.
So if my path is /usr/share/hassio/homeassistant/www/mail_and_packages/
do I use that or just /homeassistant/www/mail_and_packages/
? I seem to be getting errors with both.
When you click developer tools in hass and get the info page, what does it say the path to config.yaml is?