Identify a Sensor
-
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?
-
@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
-
-
@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.
-
@mfalkvidd ah okay. I Think that script would be okay and i can usw it for Pimatic... Thank you
1 out of 5
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Radar motion sensor
My Project • 21 days ago • suresh sharma 21 days ago -
Status of my rv(camper) home automation system 2020-2025
My Project • 8 days ago • fsgraz 6 days ago -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Long time test done with soil sensor!
My Project • 7 Jan 2025, 09:13 • Nicklas Starkel 13 Jan 2025, 09:10 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21