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 -
Door chime
My Project • 28 days ago • Paul Scarbro 25 days ago -
Interface-board-for-remote-control
My Project • about 18 hours ago • OldSurferDude about 18 hours 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 -
Nb of possible nodes in a mysensors networks with domoticz
My Project • 13 Jan 2025, 18:10 • GLAB 16 Feb 2025, 01:11 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13