Hi i followed a guide to setup a IMAP integration to read my gmail but it return unknown information and i don’t know what i did wrong in the config file, for the test i send myself a email so the sender is my email with energy: 80kWh in the body, so the code should return 80 but i got unknown value… I also already set my gmail with the APP password.
I’m sorry, but I can’t help you debug your template if you don’t show me the state of sensor.energy_gmail, or at least it’s body attribute. sensor.energy_use does not work, so it’s state is useless at this point.
Ok, so your template sensor might actually be working, but the imap_email_content sensor isn’t.
Your probably wanted
value_template: '{{ body }}'
However, that most likely isn’t the cause of your problems.
Check your logs to see if there are any errors.
Make sure the address you set in senders: is the address from which the e-mail is sent.