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
5 out of 5
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
A low cost energy meter
My Project • 25 Jan 2024, 01:03 • OldSurferDude 12 Aug 2024, 06:03 -
Door chime
My Project • 9 Mar 2025, 10:06 • Paul Scarbro 13 Mar 2025, 00:15 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Interface-board-for-remote-control
My Project • 10 days ago • OldSurferDude 10 days ago -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21