# Pb changement statut

**URL:** <https://forum.hacf.fr/t/pb-changement-statut/4161>\
**Category:** Entraide Home Assistant\
**Created:** [Avril 13, 2021, 8:23 UTC](https://forum.hacf.fr/t/pb-changement-statut/4161 "2021-04-13T08:23:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Clemalex](https://forum.hacf.fr/user_avatar/forum.hacf.fr/clemalex/32/3691_2.png) [@Clemalex](https://forum.hacf.fr/u/Clemalex)\
**Post date:** [Avril 13, 2021, 6:59 UTC](https://forum.hacf.fr/t/pb-changement-statut/4161/2 "2021-04-13T18:59:52Z")

</div>

Pour moi, si le forçage de la définition dans le fichier `customize.yaml` (tu l'as bien ajouter dans ton fichier `configuration.yaml` ? Tu as bien redémarré après avoir sauvegarder les modifications ?), je passerais par la définition d'un capteur binaire personnalisé (`template binary_sensor`) :

```yaml
#configuration.yaml
binary_sensor:
  - platform: template
    sensors:
      chambre_deco:
        device_class: connectivity
        friendly_name: "Chambre"
        value_template: "{{is_state('device_tracker.chambre_deco', 'home')}}"

```

 ![image](https://forum.hacf.fr/uploads/default/original/2X/d/d11efec97afa443c12bb055c879832a2782c0aa4.png)

---

_[View the full topic](https://forum.hacf.fr/t/pb-changement-statut/4161)._
