Salut,
Ma version :
Il un y a un truc qui m’échappe/que je ne comprend pas trop :
Quand l’option Home assistant : activation auto discovery est HS dans les paramètres de mes notif’heures. Ils échangent avec mon serveur MQTT via le topic :
Quand l’option Home assistant : activation auto discovery est ES, ils échangent avec mon serveur MQTT sur 2 topics :
- byfeel/NotifheureXL/57f08e/lana/state
- homeassistant/sensor/57f08e/ homeassistant/switch/fd84cc
Equipement MQTTDiscovery :
Config de l’équipent :
{
"sensor" : {
"temperature" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"stat_t" : "~/state",
"name" : "notif_lana_T",
"device_class" : "temperature",
"val_tpl" : " value_json.temperature",
"unit_of_meas" : "°C",
"uniq_id" : "temp_57f08e"
},
"humidity" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"stat_t" : "~/state",
"name" : "notif_lana_H",
"device_class" : "humidity",
"val_tpl" : " value_json.humidity",
"unit_of_meas" : "%",
"uniq_id" : "hum_57f08e"
},
"wifi" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"stat_t" : "~/state",
"name" : "notif_lana_wifi",
"device_class" : "signal_strength",
"val_tpl" : " value_json.rssi",
"unit_of_meas" : "dBm",
"uniq_id" : "rssi_57f08e"
},
"up" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"icon" : "mdi:clock-start",
"stat_t" : "~/state",
"name" : "notif_lana_uptime",
"val_tpl" : " value_json.up",
"uniq_id" : "up_57f08e"
},
"ip" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"icon" : "mdi:ip-network",
"stat_t" : "~/state",
"name" : "notif_lana_ip",
"val_tpl" : " value_json.ip",
"uniq_id" : "ip_57f08e"
}
},
"switch" : {
"sec" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"stat_t" : "~/state",
"name" : "notif_lana_sec",
"cmd_t" : "~/options",
"val_tpl" : " value_json.sec ",
"stat_on" : true,
"stat_off" : false,
"pl_on" : "{'sec':'true'}",
"pl_off" : "{'sec':'false'}",
"uniq_id" : "sec_57f08e"
},
"hor" : {
"dev" : {
"ids" : "57f08e",
"mf" : "byfeel",
"mdl" : "NotifheureXL - Chip: ESP8266 5763214 ( lananotif_lana.local )",
"name" : "notif_lana",
"sw" : "1.1.1",
"cu" : "http://192.168.1.26"
},
"~" : "byfeel/NotifheureXL/57f08e/lana",
"stat_t" : "~/state",
"name" : "notif_lana_hor",
"cmd_t" : "~/options",
"val_tpl" : " value_json.hor ",
"stat_on" : true,
"stat_off" : false,
"pl_on" : "{'hor':'true'}",
"pl_off" : "{'hor':'false'}",
"uniq_id" : "hor_57f08e"
}
}
}
Quand je passe une commande sur l’équipement MQTTDiscovery : notif_lana_hor (affichage de l’heure).
La commande passe sur le topic :
byfeel/NotifheureXL/57f08e/lana/options
Et non pas sur le topic : homeassistant
Ma configuration ne va pas et j’ai du loupé un truc ou certainement mal compris le fonctionnement.