horchi / linux-p4d

Deamon which fetch sensor data of the 'Lambdatronic s3200' and store to a MySQL database
GNU General Public License v2.0
50 stars 22 forks source link

Home Assistant: MQTT <GROUP> doesn't work #47

Open hoppel118 opened 10 months ago

hoppel118 commented 10 months ago

P4D: 0.9.53-GITf7e96b1 HA Core: 2023.12.4 HA Supervisor: 2023.12.0 HA Operating System: 11.2 HA Frontend: 20231208.2

Hi @Tropaion and @horchi,

happy new year. Thanks again for the latest changes. With NAME I have it working now. I see one device with 45 entities. p4d is configured as follows:

screenshot_1904

in Home Assistant I see the following:

screenshot_1905

screenshot_1908

So far so good. With MQTT Explorer I recognized that there are two p4d topics.

screenshot_1911

screenshot_1913

screenshot_1912

I assume that Home Assistant needs the "homeassistant" config topic to work.

When I configure GROUP instead of NAME:

screenshot_1914

I see the following in the MQTT Explorer:

screenshot_1915

The data topic "p4d2mqtt" is there and and I see my GROUPs (Baugruppen), but I miss my subtopics / entities in Home Assistant. The "homeassistant" config topic is also missing, when I use GROUP.

No big drama, I use the NAME variant at the moment. I didn't use GROUPs since I migrated from FHEM to HA, because I didn't get it to work. But I would really like to.

Any idea, what is wrong?

Cheers Hoppel

horchi commented 10 months ago

It would be helpful to describe the specific error of the p4d - i.e. what does the p4d write incorrectly on the topic and how should it look correctly. The structure of the error description above is from the point of view of the Home Assistant, which unfortunately does not help here in the p4d git