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.7k 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!

        K 1 Reply Last reply
        1
        • t1m0T t1m0

          @mfalkvidd said:

          message.sensor

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

          K Offline
          K 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            30

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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