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
Suggested Topics
-
Welcome
Announcements • • hek