I have an issue in expanding my MySensors network in HA.
My desired sensor naming convention follows the following:
temperature_livingroom
temperature_kitchen
motion_bathroom
… and so on.
But in MySensors the sensors take the node name (from the Arduino sketch name) and the child ID (NODENAME_CHILDID). If I’m running a DHT22 temp/humidity sensor I’ll have two child IDs under one node. But this means they are named:
bathroom_1
bathroom_2
Hardly descriptive and very easy to mix up.
In the sketch I have defined the child sensor names to be what I want and you can see them come out in the description field:
But it isn’t using them for the sensor name. Is this possible or something that could be changed? Something like try to use the child sensor description if available otherwise fall back to the child ID. Any thoughts?
Anyone? Surely not everyone is happy with:
bathroom_6_1
bathroom_6_2
livingroom_3_2
livingroom_4_1
kitchen_8_3
As entity ids in HA? It’s just impossible to keep track!
If you have the recorder component configured then you’ll get state history for all your sensors.
At minimum you just need to add to configuration.yaml: recorder:
In my config I choose only to log certain domains otherwise the database fills up VERY fast. I also use mysql to store my data. My config: