Hello,
I have just set up an Alexa connection via an Alexa skill which also works. If normal sensors are published, Alexa can also find them. However, I am currently having problems with sensors that were created using a template. Alexa can not find it and I don’t get any errors. I am currently using the following template for the sensor:
{% set vZisterneFuell = states(‘sensor.sensorengarten_sr04_distance’) | float %}
{% set maxWaterhigh = 74 %}
{% set ab = 0.71 %}
{% set vminvol = 80 %}
{% set ZisterneVolMax = ((2.1 * 1.250 * (maxWaterhigh /100)) * 1000) - ((ab * ab * (maxWaterhigh /100)) * 1000) %}
{% set CisternVol02 = (ab * ab * ((maxWaterhigh + 25 - (vCisternFull))/100)) * 1000 %}
{% set ZisterneVol01 = (2.1 * 1.250 * ((maxWaterhigh + 25 - (vZisterneFuell))/100)) * 1000 %}
{% set CisternVol03 = CisternVol01 - CisternVol02 %}
{% set ZisterneProz = (ZisterneVol03 / ZisterneVolMax) * 100%}
{{CisternProz |round(0)}}
A screenshot from my helper:
and from the alexa.yaml:
I hope someone can help me