# Récupérer des information de mon automate maxisun

**URL:** <https://forum.hacf.fr/t/recuperer-des-information-de-mon-automate-maxisun/19833>\
**Category:** Entraide Home Assistant\
**Tags:** integration, aide\
**Created:** [Janvier 18, 2023, 10:21 UTC](https://forum.hacf.fr/t/recuperer-des-information-de-mon-automate-maxisun/19833 "2023-01-18T22:21:57Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Pulpy-Luke](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pulpy-luke/32/137426_2.png) [@Pulpy-Luke](https://forum.hacf.fr/u/Pulpy-Luke)\
**Post date:** [Janvier 23, 2023, 6:31 UTC](https://forum.hacf.fr/t/recuperer-des-information-de-mon-automate-maxisun/19833/12 "2023-01-23T18:31:56Z")

</div>

Bon,

C’est pas mal.  
La suite c’est d’en faire un sensor qui redécoupe inAns :

Par exemple et probablement optimisable

```auto
- platform: template
  sensors:
    maxisun_text:
      friendly_name: "Maxisun Text"
      value_template: >-
        {% set str =state_attr('sensor.Maxisun', 'inAns') %}
        {% set str2=str[:-1]|replace(" ","")|replace(",",".") %}
        {{ str2.split(";") }}
      unit_of_measurement: "°C"

```

On vire le point virgule en fin et les espaces puis on remplace le séparateur numérique `,` trop français par un truc standard `.` Et on termine par une transformation en tableau grâce au délimiteur `;`

Reste à voir comment tu exploites ça …

---

_[View the full topic](https://forum.hacf.fr/t/recuperer-des-information-de-mon-automate-maxisun/19833)._
