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 -
A low cost energy meter
My Project • 25 Jan 2024, 01:03 • OldSurferDude 12 Aug 2024, 06:03 -
Radar motion sensor
My Project • 9 days ago • suresh sharma 9 days ago -
Interface-board-for-remote-control
My Project • 8 days ago • OldSurferDude 8 days ago -
Water Meter or "How to get Home Assistant to send saved data to an Arduino"
My Project • 18 Oct 2024, 02:19 • OldSurferDude 18 Oct 2024, 02:19 -
Long time test done with soil sensor!
My Project • 7 Jan 2025, 09:13 • Nicklas Starkel 13 Jan 2025, 09:10