Pas de valeur routeur F1ATB

Hello

Donc voici ma configuration
Routeur F1ATB connecté a un broker distant via mqttmanager
Configuration ok du plugin car je récupère par exemple le zwave sur le meme broker

Sous mqttdiscovery, le routeur apparait bien mais aucune valeur

{"sensor":{"F1ATB_Temperature":{"name":"F1ATB Temperature","uniq_id":"F1ATB_Temperature","stat_t":"homeassistant/F1ATB_state","device_class":"temperature","unit_of_meas":"°C","val_tpl":" value_json.Temperature|default(0)|round(1)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PactProd":{"name":"F1ATB PactProd","uniq_id":"F1ATB_PactProd","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":" value_json.PactProd|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PactConso_M":{"name":"F1ATB PactConso_M","uniq_id":"F1ATB_PactConso_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":" value_json.PactConso_M|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PuissanceS_M":{"name":"F1ATB PuissanceS_M","uniq_id":"F1ATB_PuissanceS_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":" value_json.PuissanceS_M|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PuissanceI_M":{"name":"F1ATB PuissanceI_M","uniq_id":"F1ATB_PuissanceI_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":" value_json.PuissanceI_M|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Tension_M":{"name":"F1ATB Tension_M","uniq_id":"F1ATB_Tension_M","stat_t":"homeassistant/F1ATB_state","device_class":"voltage","unit_of_meas":"V","val_tpl":" value_json.Tension_M|default(0)|round(2)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Intensite_M":{"name":"F1ATB Intensite_M","uniq_id":"F1ATB_Intensite_M","stat_t":"homeassistant/F1ATB_state","device_class":"current","unit_of_meas":"A","val_tpl":" value_json.Intensite_M|default(0)|round(2)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PowerFactor_M":{"name":"F1ATB PowerFactor_M","uniq_id":"F1ATB_PowerFactor_M","stat_t":"homeassistant/F1ATB_state","device_class":"power_factor","unit_of_meas":"","val_tpl":" value_json.PowerFactor_M|default(0)|round(2)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Energie_M_Soutiree":{"name":"F1ATB Energie_M_Soutiree","uniq_id":"F1ATB_Energie_M_Soutiree","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":" value_json.Energie_M_Soutiree|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Energie_M_Injectee":{"name":"F1ATB Energie_M_Injectee","uniq_id":"F1ATB_Energie_M_Injectee","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":" value_json.Energie_M_Injectee|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_EnergieJour_M_Soutiree":{"name":"F1ATB EnergieJour_M_Soutiree","uniq_id":"F1ATB_EnergieJour_M_Soutiree","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":" value_json.EnergieJour_M_Soutiree|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_EnergieJour_M_Injectee":{"name":"F1ATB EnergieJour_M_Injectee","uniq_id":"F1ATB_EnergieJour_M_Injectee","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":" value_json.EnergieJour_M_Injectee|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Ouverture_Triac":{"name":"F1ATB Ouverture_Triac","uniq_id":"F1ATB_Ouverture_Triac","stat_t":"homeassistant/F1ATB_state","device_class":"power_factor","unit_of_meas":"%","val_tpl":" value_json.Ouverture_Triac|default(0)|round(0)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Duree_Triac":{"name":"F1ATB Duree_Triac","uniq_id":"F1ATB_Duree_Triac","stat_t":"homeassistant/F1ATB_state","device_class":"duration","unit_of_meas":"h","val_tpl":" value_json.Duree_Triac|default(0)|round(2)","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}}},"binary_sensor":{"F1ATB_Actif_Triac":{"name":"F1ATB Actif_Triac","uniq_id":"F1ATB_Actif_Triac","stat_t":"homeassistant/F1ATB_state","init":0,"ic":"mdi:electric-switch","payload_off":"0","payload_on":"1","val_tpl":" value_json.Actif_Triac","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}}}}

Sous mqtt explorer

Le routeur

Sous HA, cela fonctionne

Avant j’avais mis routeur dans le prefixe et je remonté sans soucis sous mqttmanager mais pas sous HA, je dois mettre homessasistant donc je voulais utiliser mqttdiscovery , le péripherique remonte , les commades ok mais pas les valeurs

Si vous avez une idée ?

Merci

Salut

Es-tu sur qu’il est compatible mqtt discovery ? Je suis pas expert mais pour moi, ce n’est pas le cas. C’est du simple mqtt. Tu peux utiliser jmqtt ou mqtt2 ici.

Comment l’as-tu fait remonter dans HA? Par discovery ou une autre méthode?

Antoine

Il n’est pas indiqué supporté effectivement , mais vu qu’il interprète les commandes car il les crées quand meme
Je me dit que cela doit être possible :sweat_smile:

J’y arrive pas dans mqtt2 sans changer le prefix du routeur
Sur HA , oui discovery

Bonjour,
Juste pour être sûr au niveau de la configuration…
Pour moi, sur jeedom dans le plugin MQTT Manager, le préfixe doit être déclaré ici :

(ici, à la place de « routeur », ce devrait donc être « homeassistant »)

Puis dans les ordres/infos, les sous-préfixes, comme par exemple :

Où ‹ routeur_rms_state/Actif_Relais_1 › va chercher dans le json le champ correspondant.


ici vu avec MQTT Explorer…

Mon paramétrage vu côté du routeur :

Mais ce que je ne vois pas ici :

Il ne devrait y avoir que « F1ATB_state/Actif_Relais_1 » par exemple…

Non ?

Bonjour,

alors il y a une config pas du tout clean là

image

faut pas mélanger les données du discovery (qui seront publiées sur « homeassistant ») avec les vrais données (qui seront publiées sur « zigbee2mqtt » ou « home » ou « routeur » etc, un topic par passerelle de préférence)

j’ignore si ce device gère l’autodiscovery ou pas, on dirait que oui, mais il ne faut pas configurer la publication des données sur « homeassistant », l’exemple est vraiment mauvais amha.

donc à priori remettre « routeur »?
il y aurait ailleurs une option pour activer ou non le discovery?

faudrait:

  • la page config du plugin
  • les logs

Il manque peut etre un topic mqttdiscovery spécifique aux types d’appareils,

Mips en a parlé dans un autre post, ul me semble.

si c’est de ça que tu parles, selon la config donnée ci-dessus, c’est uniquement des « sensor » et « binary_sensor » que F1ATB expose et c’est 2 types sont gérés

@DanielJ
Oui on avait résolu ça sur le tuto mais justement, en mettant homeassistant, cela ne passe pas
@mips @Tonio16
Alors j’étais du meme avis que il y a un truc pas clean, j’ai essayé de l’expliquer fin juin mais je ne maitrise pas assez et je ne suis pas sur que cela a été compris
https://f1atb.fr/forum_f1atb/thread-171.html

j’ignore si ce device gère l’autodiscovery ou pas, on dirait que oui, mais il ne faut pas configurer la publication des données sur « homeassistant », l’exemple est vraiment mauvais amha.

Justement je pense que c’est fait comme ça
Non pas d’autre option

Pour les logs , il les faut a la creation de équipement je presume ?

1 « J'aime »

Pour les connaisseurs , voici la config niveau routeur

// **********************************************************************************************
// *                        MQTT AUTO-DISCOVERY POUR HOME ASSISTANT ou DOMOTICZ                            *
// **********************************************************************************************
char DEVICE[300];
char ESP_ID[15];
char mdl[30];
char StateTopic[50];


// Types de composants reconnus par HA et obligatoires pour l'Auto-Discovery.
const char *SSR = "sensor";
const char *SLCT = "select";
const char *NB = "number";
const char *BINS = "binary_sensor";
const char *SWTC = "switch";
const char *TXT = "text";
void GestionMQTT() {
  if (MQTTRepet > 0 || Source_Temp == "tempMqtt" || Source == "Pmqtt" || subMQTT == 1) {
    if (testMQTTconnected()) {
      clientMQTT.loop();
      envoiVersMQTT();
    }
  }
}

bool testMQTTconnected() {
  bool connecte = true;
  if (!clientMQTT.connected()) {  // si le mqtt n'est pas connecté (utile aussi lors de la 1ere connexion)
    Serial.println("Connection au serveur MQTT ...");
    byte arr[4];
    arr[0] = MQTTIP & 0xFF;          // 0x78
    arr[1] = (MQTTIP >> 8) & 0xFF;   // 0x56
    arr[2] = (MQTTIP >> 16) & 0xFF;  // 0x34
    arr[3] = (MQTTIP >> 24) & 0xFF;  // 0x12
    String host = String(arr[3]) + "." + String(arr[2]) + "." + String(arr[1]) + "." + String(arr[0]);
    clientMQTT.setServer(host.c_str(), MQTTPort);
    clientMQTT.setCallback(callback);                                                     //Déclaration de la fonction de souscription
    if (clientMQTT.connect(MQTTdeviceName.c_str(), MQTTUser.c_str(), MQTTPwd.c_str())) {  // si l'utilisateur est connecté au mqtt
      StockMessage(MQTTdeviceName + " connecté au broker MQTT");
      if (Source_Temp == "tempMqtt") {
        char TopicV[50];
        sprintf(TopicV, "%s", TopicT.c_str());
        clientMQTT.subscribe(TopicV);
      }
      if (Source == "Pmqtt") {
        char Topicp[50];
        sprintf(Topicp, "%s", TopicP.c_str());
        clientMQTT.subscribe(Topicp);
      }
      if (subMQTT == 1) {
        for (int i = 0; i < NbActions; i++) {
          if (LesActions[i].Actif > 0) {
            char TopicAct[50];
            sprintf(TopicAct, "%s", LesActions[i].Titre.c_str());
            clientMQTT.subscribe(TopicAct);
          }
        }
      }
      sprintf(StateTopic, "%s/%s_state", MQTTPrefix.c_str(), MQTTdeviceName.c_str());
      byte mac[6];  // the MAC address of your Wifi shield
      WiFi.macAddress(mac);
      sprintf(ESP_ID, "%02x%02x%02x", mac[2], mac[1], mac[0]);  // ID de l'entité pour HA
      sprintf(mdl, "%s%s", "ESP32 - ", ESP_ID);                 // ID de l'entité pour HA
      String mf = "F1ATB - https://f1atb.fr";
      String cu = "http://" + WiFi.localIP().toString();
      String hw = String(ESP.getChipModel()) + " rev." + String(ESP.getChipRevision());
      String sw = Version;
      sprintf(DEVICE, "{\"ids\":\"%s\",\"name\":\"%s\",\"mdl\":\"%s\",\"mf\":\"%s\",\"hw\":\"%s\",\"sw\":\"%s\",\"cu\":\"%s\"}", ESP_ID, nomRouteur.c_str(), mdl, mf.c_str(), hw.c_str(), sw.c_str(), cu.c_str());

    } else {  // si utilisateur pas connecté au mqtt
      StockMessage("Echec connexion MQTT : " + host);
      connecte = false;
      delay(100);
      previousMQTTMillis=millis();
    }
  }
  return connecte;
}
void envoiVersMQTT() {
  unsigned long tps = millis();
  int etat = 0;                                                                     // utilisé pour l'envoie de l'état On/Off des actions.
  if (int((tps - previousMQTTenvoiMillis) / 1000) > MQTTRepet && MQTTRepet != 0) {  // Si Service MQTT activé avec période sup à 0
    previousMQTTenvoiMillis = tps;
    if (!Discovered) {  //(uniquement au démarrage discovery = 0 et toute les 5mn si HA redemarre)
      sendMQTTDiscoveryMsg_global();
    }
    SendDataToHomeAssistant();  // envoie du Payload au State topic
    clientMQTT.loop();
  }
}
//Callback  après souscription à un topic et  réaliser une action
void callback(char *topic, byte *payload, unsigned int length) {
  char Message[length + 1];
  for (int i = 0; i < length; i++) {
    Message[i] = payload[i];
  }
  Message[length] = '\0';
  String message = String(Message) + ",";
  if (String(topic) == TopicT && Source_Temp == "tempMqtt") {  //Temperature attendue
    temperature = ValJson("temperature", message);
    TemperatureValide = 5;
  }
  if (String(topic) == TopicP && Source == "Pmqtt") {  //Mesure de puissance
    PwMQTT = ValJson("Pw", message);
    PvaMQTT = ValJson("Pva", message);
    PfMQTT = ValJson("Pf", message);
    P_MQTT_Brute = String(Message);
    if (message.indexOf("Pw") > 0) LastPwMQTTMillis = millis();
  }
  if (subMQTT == 1) {
    for (int i = 0; i < NbActions; i++) {
      if (LesActions[i].Actif > 0 && LesActions[i].Titre == String(topic)) {
        LesActions[i].tOnOff=ValJson("tOnOff", message);
        LesActions[i].Prioritaire();
      }
    }
  }
  Serial.print(topic);
  Serial.println(Message);
}
//*************************************************************************
//*          CONFIG OF DISCOVERY MESSAGE FOR HOME ASSISTANT  / DOMOTICZ             *
//*************************************************************************


void sendMQTTDiscoveryMsg_global() {
  String ActType;
  String ActifType;
  String ActionDur;
  // augmente la taille du buffer wifi Mqtt (voir PubSubClient.h)
  clientMQTT.setBufferSize(700);  // voir -->#define MQTT_MAX_PACKET_SIZE 256 is the default value in PubSubClient.h
  if (Source == "UxIx2" || Source == "ShellyEm" || Source == "ShellyPro") {
    DeviceToDiscover("PuissanceS_T", "W", "power", "0");
    DeviceToDiscover("PuissanceI_T", "W", "power", "0");
    DeviceToDiscover("Tension_T", "V", "voltage", "2");
    DeviceToDiscover("Intensite_T", "A", "current", "2");
    DeviceToDiscover("PowerFactor_T", "", "power_factor", "2");
    DeviceToDiscover("Energie_T_Soutiree", "Wh", "energy", "0");
    DeviceToDiscover("Energie_T_Injectee", "Wh", "energy", "0");
    DeviceToDiscover("EnergieJour_T_Soutiree", "Wh", "energy", "0");
    DeviceToDiscover("EnergieJour_T_Injectee", "Wh", "energy", "0");
    DeviceToDiscover("Frequence", "Hz", "frequency", "2");
  }
  if (Source_Temp != "tempNo") DeviceToDiscover("Temperature", "°C", "temperature", "1");


  if (Source == "Linky") {
    DeviceTextToDiscover("LTARF", "Option Tarifaire");
    DeviceToDiscover("Code_Tarifaire", "", "", "0");
  }
  if (Source == "Enphase") {
    DeviceToDiscover("PactProd", "W", "power", "0");
    DeviceToDiscover("PactConso_M", "W", "power", "0");
  }

  DeviceToDiscover("PuissanceS_M", "W", "power", "0");
  DeviceToDiscover("PuissanceI_M", "W", "power", "0");
  DeviceToDiscover("Tension_M", "V", "voltage", "2");
  DeviceToDiscover("Intensite_M", "A", "current", "2");
  DeviceToDiscover("PowerFactor_M", "", "power_factor", "2");
  DeviceToDiscover("Energie_M_Soutiree", "Wh", "energy", "0");
  DeviceToDiscover("Energie_M_Injectee", "Wh", "energy", "0");
  DeviceToDiscover("EnergieJour_M_Soutiree", "Wh", "energy", "0");
  DeviceToDiscover("EnergieJour_M_Injectee", "Wh", "energy", "0");

  for (int i = 0; i < NbActions; i++) {
    ActType = "Ouverture_Relais_" + String(i);
    ActifType = "Actif_Relais_" + String(i);
    ActionDur = "Duree_relais_"+ String(i);
    if (i == 0) {
      ActType = "Ouverture_Triac";
      ActifType = "Actif_Triac";
      ActionDur = "Duree_Triac";
    }
    DeviceToDiscover(ActType, "%", "power_factor", "0");  //Type power factor pour etre accepté par HA
    DeviceBin2Discover(ActifType);
    DeviceToDiscover(ActionDur, "h", "duration", "2");  
  }


  Serial.println("Paramètres Auto-Discovery publiés !");

  //clientMQTT.setBufferSize(512);  // go to initial value wifi/mqtt buffer
  Discovered = true;


}  // END OF sendMQTTDiscoveryMsg_global

void DeviceToDiscover(String VarName, String Unit, String Class, String Round) {
  char value[700];
  char DiscoveryTopic[120];
  char UniqueID[50];
  char ValTpl[60];
  char state_class[60];
  String TitleName = String(MQTTdeviceName) + " " + String(VarName);
  sprintf(DiscoveryTopic, "%s/%s/%s_%s/%s", MQTTPrefix.c_str(), SSR, MQTTdeviceName.c_str(), VarName.c_str(), "config");
  sprintf(UniqueID, "%s_%s", MQTTdeviceName.c_str(), VarName.c_str());
  sprintf(ValTpl, "{{ value_json.%s|default(0)|round(%s)}}", VarName.c_str(), Round.c_str());
  sprintf(state_class, "%s", "");
  if (Unit == "Wh" || Unit == "kWh") {
    sprintf(state_class, "\"state_class\":\"total_increasing\"%s,", state_class);
  }
  sprintf(value, "{\"name\": \"%s\",\"uniq_id\": \"%s\",\"stat_t\": \"%s\",\"device_class\": \"%s\",\"unit_of_meas\": \"%s\",%s\"val_tpl\": \"%s\",\"device\": %s}", TitleName.c_str(), UniqueID, StateTopic, Class.c_str(), Unit.c_str(), state_class, ValTpl, DEVICE);
  clientMQTT.publish(DiscoveryTopic, value);
}
void DeviceBin2Discover(String VarName) {
  char value[700];
  char DiscoveryTopic[120];
  char UniqueID[50];
  char ValTpl[60];
  int init = 0;  // default value
  String ic = "mdi:electric-switch";
  String TitleName = String(MQTTdeviceName) + " " + String(VarName);
  sprintf(DiscoveryTopic, "%s/%s/%s_%s/%s", MQTTPrefix.c_str(), BINS, MQTTdeviceName.c_str(), VarName.c_str(), "config");
  sprintf(UniqueID, "%s_%s", MQTTdeviceName.c_str(), VarName.c_str());
  sprintf(ValTpl, "{{ value_json.%s}}", VarName.c_str());
  sprintf(value, "{\"name\": \"%s\",\"uniq_id\": \"%s\",\"stat_t\": \"%s\",\"init\": %d,\"ic\": \"%s\",\"payload_off\":\"0\",\"payload_on\":\"1\",\"val_tpl\": \"%s\",\"device\": %s}", TitleName.c_str(), UniqueID, StateTopic, init, ic.c_str(), ValTpl, DEVICE);
  clientMQTT.publish(DiscoveryTopic, value);
}
void DeviceBinToDiscover(String VarName, String TitleName) {
  char value[700];
  char DiscoveryTopic[120];
  char UniqueID[50];
  char ValTpl[60];
  String init = "OFF";  // default value
  String ic = "mdi:electric-switch";
  sprintf(DiscoveryTopic, "%s/%s/%s_%s/%s", MQTTPrefix.c_str(), BINS, MQTTdeviceName.c_str(), VarName.c_str(), "config");
  sprintf(UniqueID, "%s_%s", MQTTdeviceName.c_str(), VarName.c_str());
  sprintf(ValTpl, "{{ value_json.%s}}", VarName.c_str());
  sprintf(value, "{\"name\": \"%s\",\"uniq_id\": \"%s\",\"stat_t\": \"%s\",\"init\": \"%s\",\"ic\": \"%s\",\"val_tpl\": \"%s\",\"device\": %s}", TitleName.c_str(), UniqueID, StateTopic, init.c_str(), ic.c_str(), ValTpl, DEVICE);
  clientMQTT.publish(DiscoveryTopic, value);
}


void DeviceTextToDiscover(String VarName, String TitleName) {
  char value[600];
  char DiscoveryTopic[120];
  char UniqueID[50];
  char ValTpl[50];
  sprintf(DiscoveryTopic, "%s/%s/%s_%s/%s", MQTTPrefix.c_str(), SSR, MQTTdeviceName.c_str(), VarName.c_str(), "config");
  sprintf(UniqueID, "%s_%s", MQTTdeviceName.c_str(), VarName.c_str());
  sprintf(ValTpl, "{{ value_json.%s }}", VarName.c_str());
  sprintf(value, "{\"name\": \"%s\",\"uniq_id\": \"%s\",\"stat_t\": \"%s\",\"device_class\": \"%s\",\"val_tpl\": \"%s\",\"device\": %s}", TitleName.c_str(), UniqueID, StateTopic, "enum", ValTpl, DEVICE);
  clientMQTT.publish(DiscoveryTopic, value);
}
//****************************************
//* ENVOIE DES DATAS VERS HOME ASSISTANT *
//****************************************

void SendDataToHomeAssistant() {
  String ActType;
  String ActifType;
  String ActionDur;
  char value[1000];
  sprintf(value, "{\"PuissanceS_M\": %d, \"PuissanceI_M\": %d, \"Tension_M\": %.1f, \"Intensite_M\": %.1f, \"PowerFactor_M\": %.2f, \"Energie_M_Soutiree\":%d,\"Energie_M_Injectee\":%d, \"EnergieJour_M_Soutiree\":%d, \"EnergieJour_M_Injectee\":%d", PuissanceS_M, PuissanceI_M, Tension_M, Intensite_M, PowerFactor_M, Energie_M_Soutiree, Energie_M_Injectee, EnergieJour_M_Soutiree, EnergieJour_M_Injectee);

  if (Source == "UxIx2" || Source == "ShellyEm" || Source == "ShellyPro") {
    sprintf(value, "%s,\"PuissanceS_T\": %d, \"PuissanceI_T\": %d, \"Tension_T\": %.1f, \"Intensite_T\": %.1f, \"PowerFactor_T\": %.2f, \"Energie_T_Soutiree\":%d,\"Energie_T_Injectee\":%d, \"EnergieJour_T_Soutiree\":%d, \"EnergieJour_T_Injectee\":%d, \"Frequence\":%.2f", value, PuissanceS_T, PuissanceI_T, Tension_T, Intensite_T, PowerFactor_T, Energie_T_Soutiree, Energie_T_Injectee, EnergieJour_T_Soutiree, EnergieJour_T_Injectee, Frequence);
  }
  if (temperature > -100 && Source_Temp != "tempNo") {
    sprintf(value, "%s,\"Temperature\": %.1f", value, temperature);
  }
  if (Source == "Linky") {
    int code = 0;
    if (LTARF.indexOf("HEURE  CREUSE") >= 0) code = 1;  //Code Linky
    if (LTARF.indexOf("HEURE  PLEINE") >= 0) code = 2;
    if (LTARF.indexOf("HC BLEU") >= 0) code = 11;
    if (LTARF.indexOf("HP BLEU") >= 0) code = 12;
    if (LTARF.indexOf("HC BLANC") >= 0) code = 13;
    if (LTARF.indexOf("HP BLANC") >= 0) code = 14;
    if (LTARF.indexOf("HC ROUGE") >= 0) code = 15;
    if (LTARF.indexOf("HP ROUGE") >= 0) code = 16;
    if (LTARF.indexOf("TEMPO_BLEU") >= 0) code = 17;  // Code EDF
    if (LTARF.indexOf("TEMPO_BLANC") >= 0) code = 18;
    if (LTARF.indexOf("TEMPO_ROUGE") >= 0) code = 19;
    sprintf(value, "%s,\"LTARF\":\"%s\", \"Code_Tarifaire\":%d", value, LTARF, code);
  }

  if (Source == "Enphase") {
    sprintf(value, "%s,\"PactProd\":%d, \"PactConso_M\":%d", value, PactProd, PactConso_M);
  }

  for (int i = 0; i < NbActions; i++) {
    ActType = "Ouverture_Relais_" + String(i);
    ActifType = "Actif_Relais_" + String(i);
    ActionDur = "Duree_relais_"+ String(i);
    if (i == 0) {
      ActType = "Ouverture_Triac";
      ActifType = "Actif_Triac";
      ActionDur = "Duree_Triac";
    }
    int Ouv = 100 - Retard[i];
    sprintf(value, "%s,\"%s\":%d", value, ActType.c_str(), Ouv);
    if (Ouv != 0) {
      sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 1);
    }
    else{
      sprintf(value, "%s,\"%s\":%d", value, ActifType.c_str(), 0);
    }
    sprintf(value, "%s,\"%s\":%f", value, ActionDur.c_str(), H_Ouvre[i]);
  }
  sprintf(value, "%s}", value);
  bool published = clientMQTT.publish(StateTopic, value);
}

je pense que « Nalexdouze » a compris si ce qu’il appelle « présentation » c’est les infos de découvertes (le mqtt discovery de HA):

tu sais copier l’image du post suivant ici?

si je clic dessus je n’ai pas accès sans créer de compte et je ne veux pas créer un compte


entre temps je check le payload de découverte que tu as donné au premier post et je vois des petits soucis qui pourraient expliquer pourquoi les commandes ne sont pas créées correctement dans le plugin et donc pourquoi les infos ne remontent pas.
je ne sais pas encore si le soucis est dans le plugin (et dans ce cas je vais pouvoir faire un fix) ou si c’est dans F1ATB et qu’ils ne respectent pas les spécifications;
si ca fonctionne sous HA c’est probablement mon plugin sauf si en fait c’est une syntaxe deprecated par exemple mais que HA continue de la supportée (ce que je n’ai pas très envie de faire)

Oui bien sur

Et dans le code pour le mqtt du programme de l’esp , juste au dessus. Tu n’as pas plus d’information ?

Plus d’infos, aprés si le probleme est du coté du routeur, j’essayerais de mieux expliquer

[2024-08-22 13:29:37] DEBUG  : ==> type='F1ATB_state' - content= {"PuissanceS_M":15,"PuissanceI_M":0,"Tension_M":243.5,"Intensite_M":3.2,"PowerFactor_M":0.01,"Energie_M_Soutiree":7350,"Energie_M_Injectee":117,"EnergieJour_M_Soutiree":5690,"EnergieJour_M_Injectee":116,"Temperature":35.3,"PactProd":948,"PactConso_M":963,"Ouverture_Triac":38,"Actif_Triac":1,"Duree_Triac":0.748038}
[2024-08-22 13:29:48] DEBUG  : new message:{"homeassistant":{"F1ATB_state":{"PuissanceS_M":19,"PuissanceI_M":0,"Tension_M":243.9,"Intensite_M":3.1,"PowerFactor_M":0.02,"Energie_M_Soutiree":7350,"Energie_M_Injectee":117,"EnergieJour_M_Soutiree":5690,"EnergieJour_M_Injectee":116,"Temperature":35.3,"PactProd":931,"PactConso_M":950,"Ouverture_Triac":39,"Actif_Triac":1,"Duree_Triac":0.749568},"sensor":{"routeur_rms_f1atb_pactconso_m":{"state":950,"last_updated":"2024-08-22T11:29:47.772830+00:00","last_changed":"2024-08-22T11:29:47.772830+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PactConso_M"},"routeur_rms_f1atb_powerfactor_m":{"state":0.02,"last_updated":"2024-08-22T11:29:47.774378+00:00","last_changed":"2024-08-22T11:29:47.774378+00:00","unit_of_measurement":"","device_class":"power_factor","friendly_name":"Routeur - RMS F1ATB PowerFactor_M"},"routeur_rms_f1atb_intensite_m":{"state":3.1,"last_updated":"2024-08-22T11:29:47.776082+00:00","last_changed":"2024-08-22T11:29:47.776082+00:00","unit_of_measurement":"A","device_class":"current","friendly_name":"Routeur - RMS F1ATB Intensite_M"},"routeur_rms_f1atb_pactprod":{"state":931,"last_updated":"2024-08-22T11:29:47.776921+00:00","last_changed":"2024-08-22T11:29:47.776921+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PactProd"},"routeur_rms_f1atb_tension_m":{"state":243.9,"last_updated":"2024-08-22T11:29:47.777624+00:00","last_changed":"2024-08-22T11:29:47.777624+00:00","unit_of_measurement":"V","device_class":"voltage","friendly_name":"Routeur - RMS F1ATB Tension_M"},"routeur_rms_f1atb_ouverture_triac":{"state":39,"last_updated":"2024-08-22T11:29:47.778233+00:00","last_changed":"2024-08-22T11:29:47.778233+00:00","unit_of_measurement":"%","device_class":"power_factor","friendly_name":"Ouverture"},"routeur_rms_f1atb_puissances_m":{"state":19,"last_updated":"2024-08-22T11:29:47.778863+00:00","last_changed":"2024-08-22T11:29:47.778863+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PuissanceS_M"},"prise_legrand_aquarium_power_apparent":{"state":225,"last_updated":"2024-08-22T11:29:47.788419+00:00","last_changed":"2024-08-22T11:26:59.512554+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"unit_of_measurement":"VA","friendly_name":"Prise LEGRAND Aquarium Power apparent"},"prise_legrand_aquarium_action":{"state":"None","last_updated":"2024-08-22T11:29:47.789822+00:00","last_changed":"2024-08-17T23:53:53.604083+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"icon":"mdi:gesture-double-tap","friendly_name":"Prise LEGRAND Aquarium Action"},"prise_legrand_aquarium_power":{"state":179,"last_updated":"2024-08-22T11:29:47.793758+00:00","last_changed":"2024-08-22T11:29:47.793758+00:00","state_class":"measurement","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"unit_of_measurement":"W","device_class":"power","friendly_name":"Prise LEGRAND Aquarium Puissance"}},"switch":{"prise_legrand_aquarium_led_if_on":{"state":"off","last_updated":"2024-08-22T11:29:47.784884+00:00","last_changed":"2024-08-17T23:53:53.607295+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"friendly_name":"Prise LEGRAND Aquarium Led if on"},"prise_legrand_aquarium_led_in_dark":{"state":"off","last_updated":"2024-08-22T11:29:47.791192+00:00","last_changed":"2024-08-17T23:53:53.603769+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"friendly_name":"Prise LEGRAND Aquarium Led in dark"},"prise_legrand_aquarium":{"state":"on","last_updated":"2024-08-22T11:29:47.792460+00:00","last_changed":"2024-08-17T23:53:53.607715+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"friendly_name":"Prise LEGRAND Aquarium"}},"select":{"prise_legrand_aquarium_power_on_behavior":{"state":"on","last_updated":"2024-08-22T11:29:47.786352+00:00","last_changed":"2024-08-17T23:53:53.603292+00:00","options":["off","previous","on"],"action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"icon":"mdi:power-settings","friendly_name":"Prise LEGRAND Aquarium Power-on behavior"}},"button":{"prise_legrand_aquarium_identify":{"state":"unknown","last_updated":"2024-08-22T11:29:47.796520+00:00","last_changed":"2024-08-17T23:53:49.896786+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"device_class":"identify","friendly_name":"Prise LEGRAND Aquarium Identifier"}}}}
[2024-08-22 13:29:48] DEBUG  : ==> type='F1ATB_state' - content= {"PuissanceS_M":19,"PuissanceI_M":0,"Tension_M":243.9,"Intensite_M":3.1,"PowerFactor_M":0.02,"Energie_M_Soutiree":7350,"Energie_M_Injectee":117,"EnergieJour_M_Soutiree":5690,"EnergieJour_M_Injectee":116,"Temperature":35.3,"PactProd":931,"PactConso_M":950,"Ouverture_Triac":39,"Actif_Triac":1,"Duree_Triac":0.749568}
[2024-08-22 13:29:48] DEBUG  : ==> type='sensor' - content= {"routeur_rms_f1atb_pactconso_m":{"state":950,"last_updated":"2024-08-22T11:29:47.772830+00:00","last_changed":"2024-08-22T11:29:47.772830+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PactConso_M"},"routeur_rms_f1atb_powerfactor_m":{"state":0.02,"last_updated":"2024-08-22T11:29:47.774378+00:00","last_changed":"2024-08-22T11:29:47.774378+00:00","unit_of_measurement":"","device_class":"power_factor","friendly_name":"Routeur - RMS F1ATB PowerFactor_M"},"routeur_rms_f1atb_intensite_m":{"state":3.1,"last_updated":"2024-08-22T11:29:47.776082+00:00","last_changed":"2024-08-22T11:29:47.776082+00:00","unit_of_measurement":"A","device_class":"current","friendly_name":"Routeur - RMS F1ATB Intensite_M"},"routeur_rms_f1atb_pactprod":{"state":931,"last_updated":"2024-08-22T11:29:47.776921+00:00","last_changed":"2024-08-22T11:29:47.776921+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PactProd"},"routeur_rms_f1atb_tension_m":{"state":243.9,"last_updated":"2024-08-22T11:29:47.777624+00:00","last_changed":"2024-08-22T11:29:47.777624+00:00","unit_of_measurement":"V","device_class":"voltage","friendly_name":"Routeur - RMS F1ATB Tension_M"},"routeur_rms_f1atb_ouverture_triac":{"state":39,"last_updated":"2024-08-22T11:29:47.778233+00:00","last_changed":"2024-08-22T11:29:47.778233+00:00","unit_of_measurement":"%","device_class":"power_factor","friendly_name":"Ouverture"},"routeur_rms_f1atb_puissances_m":{"state":19,"last_updated":"2024-08-22T11:29:47.778863+00:00","last_changed":"2024-08-22T11:29:47.778863+00:00","unit_of_measurement":"W","device_class":"power","friendly_name":"Routeur - RMS F1ATB PuissanceS_M"},"prise_legrand_aquarium_power_apparent":{"state":225,"last_updated":"2024-08-22T11:29:47.788419+00:00","last_changed":"2024-08-22T11:26:59.512554+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"unit_of_measurement":"VA","friendly_name":"Prise LEGRAND Aquarium Power apparent"},"prise_legrand_aquarium_action":{"state":"None","last_updated":"2024-08-22T11:29:47.789822+00:00","last_changed":"2024-08-17T23:53:53.604083+00:00","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"icon":"mdi:gesture-double-tap","friendly_name":"Prise LEGRAND Aquarium Action"},"prise_legrand_aquarium_power":{"state":179,"last_updated":"2024-08-22T11:29:47.793758+00:00","last_changed":"2024-08-22T11:29:47.793758+00:00","state_class":"measurement","action":null,"device":{"applicationVersion":0,"dateCode":" \u000020171107\u0000\u0000\u0000\u0000\u0000","friendlyName":"Prise LEGRAND Aquarium","hardwareVersion":1,"ieeeAddr":"0x00047400000920bc","manufacturerID":4129,"manufacturerName":" Legrand","model":"067775\/741811","networkAddress":28590,"powerSource":"Mains (single phase)","softwareBuildID":"005a","stackVersion":67,"type":"Router","zclVersion":8},"last_seen":"2024-08-22T11:29:47.764Z","led_if_on":"OFF","led_in_dark":"OFF","linkquality":216,"power":179,"power_apparent":225,"power_on_behavior":"on","update":{"installed_version":5916159,"latest_version":5916159,"state":"idle"},"update_available":null,"unit_of_measurement":"W","device_class":"power","friendly_name":"Prise LEGRAND Aquarium Puissance"}}
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_intensite_m/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_ouverture_triac/friendly_name ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/state ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/last_updated ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/last_changed ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/unit_of_measurement ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/device_class ?
[2024-08-22 13:29:48]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/friendly_name ?

ok donc tu peux lui répondre que c’est ca: ici il a mis « RMS » comme topic racine pour le routeur alors que les infos pour le discovery sont bien dans « homeassistant »

pour info, le topic « homeassistant » est parfois configurable mais tout le monde ne le permet pas et c’est tellement répandu d’après moi que c’est difficilement modifiable: si on voulait le faire sur une install on devrait adapter les configs de tous les connecteurs en espérant que tous le permettent.
tout ca pour dire que ca n’est pas très important de pouvoir le configurer, ca peut être en dur sur la passerelle.


ceci dit, je ne suis pas certain que ca réglerait le problème ici mais ca serait de toute facon plus propre de séparer les 2
je continue d’investiguer

les warnings qu’on voit « no config … » c’est justement parce que tout est mélangé et que donc le plugin trouve ce topic « f1atb… » dans « homeassistant » et essaye de lire la config qui n’en est pas une

Oui avant je faisais comme lui, et je remonté les infos dans mqtt2 mais homeassistant ne remonte pas le périphérique du coup. Pour cela que j’ai remis par défaut sauf que cela ne remonte pas sous mqtt2 , il ne voit pas meme pas le topic et mqttdisvery le voit bien lui

Par contre, le fait de le mettre en dur ne va rien changé a mon problème si j’ai bien compris car la publication sera fera pareil ?

le plugin trouve ce topic « f1atb… » dans « homeassistant » et essaye de lire la config qui n’en est pas une

Par contre, dans le message il y a bien les etats qui apparaisent mais c’est mal formaté ?

Merci de l’aide :+1:

:rofl: :rofl: :rofl: :rofl:

Vous avez une relation particulière toi et mips …

1 « J'aime »

Oups démasqué :sweat_smile:

1 « J'aime »

J’ai trouvé un petit bug dans la méthode qui affiche la config json de découverte
ca ne va rien changé au fait que les commandes se créent correctement ou pas mais par contre le fichier que tu as copié n’est pas correcte à cause de ce bug et ca complique mes recherches.
ca sera en beta demain

=> il me faudrait le json demain qui du coup devrait être formaté correctement cette fois pour pouvoir continuer mes recherches.

Ok merci, je vais mettre la beta et je reviens avec les infos
Je ferais un autre post plus tard quand on aura avancé ou arrivé a une conclusion ppur un autre probleme sur un autre equipement
J’avais laissé la creation et il m’a remonté mylectricaldata aussi de mon docker , j’en est pas forcement besoin sur jeedom mais cela pourrait etre un equipement en plus compatible avec le plugin si il fonctionne

oups j’avais oublié d’enlever les logs en debug (4 Go) ça pique :sweat_smile:

Donc la config , bizarre que tout ce met sur une ligne quand j’utilise le bouton copié

{"binary_sensor":{"F1ATB_Actif_Triac":{"name":"F1ATB Actif_Triac","uniq_id":"F1ATB_Actif_Triac","stat_t":"homeassistant/F1ATB_state","init":0,"ic":"mdi:electric-switch","payload_off":"0","payload_on":"1","val_tpl":"{{ value_json.Actif_Triac}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}}},"sensor":{"F1ATB_Temperature":{"name":"F1ATB Temperature","uniq_id":"F1ATB_Temperature","stat_t":"homeassistant/F1ATB_state","device_class":"temperature","unit_of_meas":"°C","val_tpl":"{{ value_json.Temperature|default(0)|round(1)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PactProd":{"name":"F1ATB PactProd","uniq_id":"F1ATB_PactProd","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":"{{ value_json.PactProd|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PactConso_M":{"name":"F1ATB PactConso_M","uniq_id":"F1ATB_PactConso_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":"{{ value_json.PactConso_M|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PuissanceS_M":{"name":"F1ATB PuissanceS_M","uniq_id":"F1ATB_PuissanceS_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":"{{ value_json.PuissanceS_M|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PuissanceI_M":{"name":"F1ATB PuissanceI_M","uniq_id":"F1ATB_PuissanceI_M","stat_t":"homeassistant/F1ATB_state","device_class":"power","unit_of_meas":"W","val_tpl":"{{ value_json.PuissanceI_M|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Tension_M":{"name":"F1ATB Tension_M","uniq_id":"F1ATB_Tension_M","stat_t":"homeassistant/F1ATB_state","device_class":"voltage","unit_of_meas":"V","val_tpl":"{{ value_json.Tension_M|default(0)|round(2)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Intensite_M":{"name":"F1ATB Intensite_M","uniq_id":"F1ATB_Intensite_M","stat_t":"homeassistant/F1ATB_state","device_class":"current","unit_of_meas":"A","val_tpl":"{{ value_json.Intensite_M|default(0)|round(2)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_PowerFactor_M":{"name":"F1ATB PowerFactor_M","uniq_id":"F1ATB_PowerFactor_M","stat_t":"homeassistant/F1ATB_state","device_class":"power_factor","unit_of_meas":"","val_tpl":"{{ value_json.PowerFactor_M|default(0)|round(2)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Energie_M_Soutiree":{"name":"F1ATB Energie_M_Soutiree","uniq_id":"F1ATB_Energie_M_Soutiree","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":"{{ value_json.Energie_M_Soutiree|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Energie_M_Injectee":{"name":"F1ATB Energie_M_Injectee","uniq_id":"F1ATB_Energie_M_Injectee","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":"{{ value_json.Energie_M_Injectee|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_EnergieJour_M_Soutiree":{"name":"F1ATB EnergieJour_M_Soutiree","uniq_id":"F1ATB_EnergieJour_M_Soutiree","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":"{{ value_json.EnergieJour_M_Soutiree|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_EnergieJour_M_Injectee":{"name":"F1ATB EnergieJour_M_Injectee","uniq_id":"F1ATB_EnergieJour_M_Injectee","stat_t":"homeassistant/F1ATB_state","device_class":"energy","unit_of_meas":"Wh","state_class":"total_increasing","val_tpl":"{{ value_json.EnergieJour_M_Injectee|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Ouverture_Triac":{"name":"F1ATB Ouverture_Triac","uniq_id":"F1ATB_Ouverture_Triac","stat_t":"homeassistant/F1ATB_state","device_class":"power_factor","unit_of_meas":"%","val_tpl":"{{ value_json.Ouverture_Triac|default(0)|round(0)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}},"F1ATB_Duree_Triac":{"name":"F1ATB Duree_Triac","uniq_id":"F1ATB_Duree_Triac","stat_t":"homeassistant/F1ATB_state","device_class":"duration","unit_of_meas":"h","val_tpl":"{{ value_json.Duree_Triac|default(0)|round(2)}}","device":{"ids":"c3dc24","name":"Routeur - RMS","mdl":"ESP32 - c3dc24","mf":"F1ATB - https://f1atb.fr","hw":"ESP32-D0WD rev.301","sw":"11.17","cu":"http://192.168.68.23"}}}}

Un copié collé est mieux

{
"binary_sensor" : {
"F1ATB_Actif_Triac" : {
"name" : "F1ATB Actif_Triac",
"uniq_id" : "F1ATB_Actif_Triac",
"stat_t" : "homeassistant/F1ATB_state",
"init" : 0,
"ic" : "mdi:electric-switch",
"payload_off" : "0",
"payload_on" : "1",
"val_tpl" : "{{ value_json.Actif_Triac}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
}
},
"sensor" : {
"F1ATB_Temperature" : {
"name" : "F1ATB Temperature",
"uniq_id" : "F1ATB_Temperature",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "temperature",
"unit_of_meas" : "°C",
"val_tpl" : "{{ value_json.Temperature|default(0)|round(1)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_PactProd" : {
"name" : "F1ATB PactProd",
"uniq_id" : "F1ATB_PactProd",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power",
"unit_of_meas" : "W",
"val_tpl" : "{{ value_json.PactProd|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_PactConso_M" : {
"name" : "F1ATB PactConso_M",
"uniq_id" : "F1ATB_PactConso_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power",
"unit_of_meas" : "W",
"val_tpl" : "{{ value_json.PactConso_M|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_PuissanceS_M" : {
"name" : "F1ATB PuissanceS_M",
"uniq_id" : "F1ATB_PuissanceS_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power",
"unit_of_meas" : "W",
"val_tpl" : "{{ value_json.PuissanceS_M|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_PuissanceI_M" : {
"name" : "F1ATB PuissanceI_M",
"uniq_id" : "F1ATB_PuissanceI_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power",
"unit_of_meas" : "W",
"val_tpl" : "{{ value_json.PuissanceI_M|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Tension_M" : {
"name" : "F1ATB Tension_M",
"uniq_id" : "F1ATB_Tension_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "voltage",
"unit_of_meas" : "V",
"val_tpl" : "{{ value_json.Tension_M|default(0)|round(2)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Intensite_M" : {
"name" : "F1ATB Intensite_M",
"uniq_id" : "F1ATB_Intensite_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "current",
"unit_of_meas" : "A",
"val_tpl" : "{{ value_json.Intensite_M|default(0)|round(2)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_PowerFactor_M" : {
"name" : "F1ATB PowerFactor_M",
"uniq_id" : "F1ATB_PowerFactor_M",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power_factor",
"unit_of_meas" : "",
"val_tpl" : "{{ value_json.PowerFactor_M|default(0)|round(2)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Energie_M_Soutiree" : {
"name" : "F1ATB Energie_M_Soutiree",
"uniq_id" : "F1ATB_Energie_M_Soutiree",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "energy",
"unit_of_meas" : "Wh",
"state_class" : "total_increasing",
"val_tpl" : "{{ value_json.Energie_M_Soutiree|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Energie_M_Injectee" : {
"name" : "F1ATB Energie_M_Injectee",
"uniq_id" : "F1ATB_Energie_M_Injectee",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "energy",
"unit_of_meas" : "Wh",
"state_class" : "total_increasing",
"val_tpl" : "{{ value_json.Energie_M_Injectee|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_EnergieJour_M_Soutiree" : {
"name" : "F1ATB EnergieJour_M_Soutiree",
"uniq_id" : "F1ATB_EnergieJour_M_Soutiree",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "energy",
"unit_of_meas" : "Wh",
"state_class" : "total_increasing",
"val_tpl" : "{{ value_json.EnergieJour_M_Soutiree|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_EnergieJour_M_Injectee" : {
"name" : "F1ATB EnergieJour_M_Injectee",
"uniq_id" : "F1ATB_EnergieJour_M_Injectee",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "energy",
"unit_of_meas" : "Wh",
"state_class" : "total_increasing",
"val_tpl" : "{{ value_json.EnergieJour_M_Injectee|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Ouverture_Triac" : {
"name" : "F1ATB Ouverture_Triac",
"uniq_id" : "F1ATB_Ouverture_Triac",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "power_factor",
"unit_of_meas" : "%",
"val_tpl" : "{{ value_json.Ouverture_Triac|default(0)|round(0)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
},
"F1ATB_Duree_Triac" : {
"name" : "F1ATB Duree_Triac",
"uniq_id" : "F1ATB_Duree_Triac",
"stat_t" : "homeassistant/F1ATB_state",
"device_class" : "duration",
"unit_of_meas" : "h",
"val_tpl" : "{{ value_json.Duree_Triac|default(0)|round(2)}}",
"device" : {
"ids" : "c3dc24",
"name" : "Routeur - RMS",
"mdl" : "ESP32 - c3dc24",
"mf" : "F1ATB - https://f1atb.fr",
"hw" : "ESP32-D0WD rev.301",
"sw" : "11.17",
"cu" : "http://192.168.68.23"
}
}
}
}

Log

[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/state_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energie_m_soutiree/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactconso_m/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_powerfactor_m/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/state_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_energiejour_m_soutiree/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_pactprod/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_tension_m/friendly_name ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/state ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/last_updated ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/last_changed ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/unit_of_measurement ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/device_class ?
[2024-08-23 10:16:46]WARNING : no config for component sensor with structuture routeur_rms_f1atb_puissances_m/friendly_name ?
[2024-08-23 10:16:46] DEBUG  : ==> type='F1ATB_state' - content= {"PuissanceS_M":402,"PuissanceI_M":0,"Tension_M":238.5,"Intensite_M":2.9,"PowerFactor_M":0.58,"Energie_M_Soutiree":20040,"Energie_M_Injectee":350,"EnergieJour_M_Soutiree":5351,"EnergieJour_M_Injectee":7,"Temperature":27.4,"PactProd":121,"PactConso_M":523,"Ouverture_Triac":0,"Actif_Triac":0,"Duree_Triac":0.026939}