Need help for a simple android template widget


I’m trying to get a very simple template widget on android, without any formatting. Something like :

Office : 26°C
Outside : 30°C

So I created this j2 template which is working in HA :

Which as the end should be :

Office : {{states('sensor.bureau_3')}}
Outside : {{states('sensor.exterieur_3' )}}

But when typing it in the Android Widget I got a “Error in template”:

Am I missing something? The documentation has no example regarding this functionnality.


Check the companion app logs to see the cause of the error.