Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Home Assistant
  4. Customize and reference mysensor sensors in configuration

Customize and reference mysensor sensors in configuration

Scheduled Pinned Locked Moved Home Assistant
8 Posts 3 Posters 4.5k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cygnus
    wrote on last edited by
    #1

    Hi!

    Just got Home Assistant set up with a Mysensor MQTT gateway and it works like a charm. I get my sensors discovered as soon as they start sending data and they show up fine in Home Assistant.

    Now I'd like to customise my devices (sensors) and also group them together but I cannot figure out how to reference them in the configuration?

    It's a bit frustrating, I'm a professional system developer, working with yaml configs all day long :). I feel like I'm either stupid, or the documentation is leaving out big chunks of information...

    Is the mysensor gateway a "platform"? How do I name each sensor and what type of properties can I set on them? I'd like to give each sensor some friendly name, perhaps an entity picture and then group them together, is that doable?

    The only config examples I can find are related to setting up the gateway, which I already have done. If someone has a configuration.yaml doing some more stuff with the mysensor integration than just enabling the gateway, like referencing the sensors, it would fantastic if you could share it here as a reference.

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      I think what you are trying to achieve is more controller related than mysensors. In mysensors each sensor has a child ID and they are grouped under the Node ID, but besides that I don't think you can ask more to mysensors :)

      C 1 Reply Last reply
      0
      • gohanG gohan

        I think what you are trying to achieve is more controller related than mysensors. In mysensors each sensor has a child ID and they are grouped under the Node ID, but besides that I don't think you can ask more to mysensors :)

        C Offline
        C Offline
        cygnus
        wrote on last edited by
        #3

        Ok, but does that mean that I can reference each sensor in the hass configuration.yaml using node-id.child-id? Or do I need to use some mysensor prefix?

        Like this:

        customize:
            170.0:
              entity_picture: https://example.com/images/humidity.jpg
              friendly_name: Living room humidity
            170.1:
              entity_picture: https://example.com/images/temp.jpg
              friendly_name: Living room temperature
        
        
        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          I'm sorry, I can't answer that as I haven't used Home Assistant

          C 1 Reply Last reply
          0
          • gohanG gohan

            I'm sorry, I can't answer that as I haven't used Home Assistant

            C Offline
            C Offline
            cygnus
            wrote on last edited by cygnus
            #5

            @gohan said in Customize and reference mysensor sensors in configuration:

            I'm sorry, I can't answer that as I haven't used Home Assistant

            Ok, you're aware that this is the Home Assistant controller support forum, right?

            Anyway, figured out how to reference the sensors by looking in the code and the log files. The format is: sensor.<sketch-name>_<node-ID>_<child-ID>. Example: sensor.temperatureandhumidity_170_0.

            Sketch name is the name sent during presentation using the sendSketchInfo() method and should be in all lower case,

            Using this naming pattern I was able to set a friendly name on my humidity sensor like so:

            homeassistant:
              ...
              customize:
                sensor.temperatureandhumidity_170_0:
                  friendly_name: Guest room humidity
            
            gohanG C 2 Replies Last reply
            0
            • C cygnus

              @gohan said in Customize and reference mysensor sensors in configuration:

              I'm sorry, I can't answer that as I haven't used Home Assistant

              Ok, you're aware that this is the Home Assistant controller support forum, right?

              Anyway, figured out how to reference the sensors by looking in the code and the log files. The format is: sensor.<sketch-name>_<node-ID>_<child-ID>. Example: sensor.temperatureandhumidity_170_0.

              Sketch name is the name sent during presentation using the sendSketchInfo() method and should be in all lower case,

              Using this naming pattern I was able to set a friendly name on my humidity sensor like so:

              homeassistant:
                ...
                customize:
                  sensor.temperatureandhumidity_170_0:
                    friendly_name: Guest room humidity
              
              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              I am glad you figured it out

              1 Reply Last reply
              0
              • C cygnus

                @gohan said in Customize and reference mysensor sensors in configuration:

                I'm sorry, I can't answer that as I haven't used Home Assistant

                Ok, you're aware that this is the Home Assistant controller support forum, right?

                Anyway, figured out how to reference the sensors by looking in the code and the log files. The format is: sensor.<sketch-name>_<node-ID>_<child-ID>. Example: sensor.temperatureandhumidity_170_0.

                Sketch name is the name sent during presentation using the sendSketchInfo() method and should be in all lower case,

                Using this naming pattern I was able to set a friendly name on my humidity sensor like so:

                homeassistant:
                  ...
                  customize:
                    sensor.temperatureandhumidity_170_0:
                      friendly_name: Guest room humidity
                
                C Offline
                C Offline
                cygnus
                wrote on last edited by cygnus
                #7

                I also just found that you can find all entity names of all registered devices in the developer tools > states view (just click the < > icon under developer tools).

                Grouping the mysensor sensors is done like this, using the entity names as described above:

                group:
                  name: Guest Room
                  entities:
                    - sensor.temperatureandhumidity_170_1
                    - sensor.temperatureandhumidity_170_0
                
                1 Reply Last reply
                0
                • martinhjelmareM Offline
                  martinhjelmareM Offline
                  martinhjelmare
                  Plugin Developer
                  wrote on last edited by
                  #8

                  Hi!

                  All the answers that you've already found yourself should be available on these two pages, except the structure of entity_ids for mysensors devices. The latter is something we should add to the docs.

                  https://home-assistant.io/docs/configuration/devices/

                  https://home-assistant.io/docs/configuration/customizing-devices/

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  29

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular