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. My Project
  3. Identify a Sensor

Identify a Sensor

Scheduled Pinned Locked Moved My Project
5 Posts 3 Posters 1.4k Views 2 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.
  • t1m0T Offline
    t1m0T Offline
    t1m0
    wrote on last edited by t1m0
    #1

    Hello,
    i want to build a RGB Sensor.
    As a basic structure I have token "dimmableLEDAcuator "
    Now i want to identify the right sensor.

    )
    void receive(const MyMessage &message) {
      if (message.type == V_LIGHT || message.type == V_DIMMER) {
    

    Is it posible to show me in a var witch childid sended it?

    mfalkviddM 1 Reply Last reply
    0
    • t1m0T t1m0

      Hello,
      i want to build a RGB Sensor.
      As a basic structure I have token "dimmableLEDAcuator "
      Now i want to identify the right sensor.

      )
      void receive(const MyMessage &message) {
        if (message.type == V_LIGHT || message.type == V_DIMMER) {
      

      Is it posible to show me in a var witch childid sended it?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @t1m0 I think you can use message.sensor
      https://www.mysensors.org/download/sensor_api_20#message-manipulation has some information, but I had to check the source code at https://github.com/mysensors/MySensors/blob/development/core/MyMessage.h#L349

      1 Reply Last reply
      0
      • t1m0T Offline
        t1m0T Offline
        t1m0
        wrote on last edited by
        #3

        @mfalkvidd said:

        message.sensor

        Thank you sooooo much! That is the var i was locking for!

        korttomaK 1 Reply Last reply
        1
        • t1m0T t1m0

          @mfalkvidd said:

          message.sensor

          Thank you sooooo much! That is the var i was locking for!

          korttomaK Offline
          korttomaK Offline
          korttoma
          Hero Member
          wrote on last edited by
          #4

          @t1m0 you know you dont have to invent the RGB sketch your self right?

          You just need to search the forum. Here is a sketch I use.

          • Tomas
          1 Reply Last reply
          0
          • t1m0T Offline
            t1m0T Offline
            t1m0
            wrote on last edited by
            #5

            @mfalkvidd ah okay. I Think that script would be okay and i can usw it for Pimatic... Thank you :)

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


            22

            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