fmartinou / teleinfo2mqtt

Publish teleinfo to mqtt topics
https://fmartinou.github.io/teleinfo2mqtt
MIT License
64 stars 17 forks source link

Unable to get auto-discovery in Home Assistant working #28

Closed Lins-bot closed 2 years ago

Lins-bot commented 2 years ago

Hello,

Thank you for your implementation šŸ‘

Using https://fmartinou.github.io/teleinfo-mqtt/#/configuration/, I have defined in my docker-compose.yml : teleinfo2mqtt: container_name: teleinfo2mqtt image: fmartinou/teleinfo-mqtt restart: always devices:

In HomeAssistant, I can see MQTT frames : Message 46 reƧu sur homeassistant/sensor/teleinfo/02xxxxxxx_hhphc/config Ơ 17:09 :

{ "unique_id": "teleinfo_02xxxxxxx_HHPHC", "name": "Teleinfo 02xxxxxxx HHPHC", "state_topic": "teleinfo/02xxxxxxx", "value_template": "{{ value_json.HHPHC.value }}", "device": { "identifiers": [ "02xxxxxxx" ], "manufacturer": "Enedis", "model": "linky_02xxxxxxx", "name": "Linky 02xxxxxxx" } } or

Message 47 reƧu sur teleinfo/021861327816 Ơ 17:09 :

{ "ADCO": { "raw": "02xxxxxxx", "value": 02xxxxxxx }, "OPTARIF": { "raw": "BASE", "value": "BASE" }, "ISOUSC": { "raw": "30", "value": 30 }, "BASE": { "raw": "006002774", "value": 6002774 }, "PTEC": { "raw": "TH..", "value": "TH" }, "IINST": { "raw": "001", "value": 1 }, "IMAX": { "raw": "090", "value": 90 }, "PAPP": { "raw": "00410", "value": 410 }, "HHPHC": { "raw": "A", "value": "A" } }

However, I'm unable to see these sensors : image Of course, I have set "Activate discovery" on Home Assistant : image

Any idea ?

EDIT : I'm using Home Assistant Core 2022.6.5 on Docker

Lins-bot commented 2 years ago

Well, after multiple reboots, a MQTT explorer, some conf on ZWave2MQTT, it starts working. I close this issue

fmartinou commented 2 years ago

Hi,

Thank you for your support. I'm glad to see that you succeeded to sort it out by yourself šŸ‘