Sensor naming problem



  • 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:
    0_1518096545790_2018-02-08 10_32_45-Home Assistant.png

    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?
    (Also posted on HA dev forum, not sure where is best!)



  • @nick-willis I have the same problem.

    Up till now I was doing a simple hack that changed the naming of the sensors to the description field. Would be good to have an option to use just the description for sensors that have them meaningful and usable. I guess that would be a good topic for HA forum of this extension...


  • Plugin Developer

    This is on my todo list. I hope to get to it soon.


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 3
  • 1
  • 17

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts