Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103143

Decode Base64 IMAP body

$
0
0

I have successfully setup imap_email_content integration however the body of the email is encoded in base64. I have been able to successfully decode it from the terminal using echo -n '<encoded body>' | base64 -d

I can get this to work in the configuration using a command line sensor with some static encoded value however I can’t figure out how to decode it from the body attribute of the imap_email_content. Using a command line sensor doesn’t work and I don’t believe commands can be used in templates.

Does anyone have any ideas on how this can be achieved?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>