I have my heating from FHEM connected to HA via MQTT, and it works, i.e. I can read all defined values. I haven’t cared yet for writing values back, and this is not the topic here.
What puzzles me now is that (only now) I realise that I seem to have a redundant config for the MQTT sensor:
First, I have this in /homeassistant/configuration.yaml (just one MQTT sensor parameter shown as an example, there are more):
(obviously the same despite the lacking unit_of_measurement and device_class and thus redundant, as I see now)
As I set up the MQTT-related stuff a longer while ago, I do not remember why I did it like this, if it is correct (I doubt it), and which one of the two I should prefer.
I guess that the second one has advantages (I could add unit_of_measurement and device_class there, too), as it helps to keep oversight, which I was obviously lacking till now.
Thanks for sharing your thoughts and for your help!
It is important to note that when using !include_dir_merge_list, you must include a list in each file (each list item is denoted with a hyphen [-]). Each file may contain one or more entries.
It is important to note that when using !include_dir_merge_list, you must include a list in each file (each list item is denoted with a hyphen [-]). Each file may contain one or more entries.