Hi, I am switching from iobroker to homeassistant. In iobroker mqtt topics are automatically discovered, but in homeassistant this does not seem to be the case.
I need to get data from a mqtt publisher.
The topic is smartyreader_enovos/act_pwr_imported_p_plus, and the payload is {"act_pwr_imported_p_plus_value":1.58,"act_pwr_imported_p_plus_unit":"kW"}
So what I try since 2 days, is to read these data into homeassisatnt
in my configuration.yaml file I added the following
then I created the folder mqtt, with the subfolders sensor, binary_sensor, switch and light.
I the create the file /homeassistant/mqtt/sensor/Power_mqtt.yaml .
So my expectation is that this file will be read upon restart
The content of the file is the following
so I think I should see a device cakked Enovos_import_power_act, but I do not see it.
I switched on debug mode in mqtt, and checked the los, but I do not see anything
does anyone knows where the pronlem comes from ?
also, can I group different sensors in different files ? The enovos device sends about 40 topics, so I need to read them all, and then i have several devices like these.
Can I create different yaml files, all starting with sensor: if not, how to split the configuration in different files
hi, thanks.
the payload is send every minute, but is not retained.
How do I see if the configuration file is taken into account ?
Is my configuration in the configuration yaml file correct ?
If so, do I have to add sensor: at the top of every configuration file in the folder mqtt/sensor ?
I guess that I should see the sensor in the devices, or the entities list when it is correctly configured ?
still no device/entitie, and still no error in the logs. I also activated debugging in mqtt , should I see more details in the logs, or are debugging information stored elsewhere ?