espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
456 stars 154 forks source link

Sending matter sensor data to rainmaker (MEGH-6063) #338

Open aadhimellow opened 1 day ago

aadhimellow commented 1 day ago

Answers checklist.

General issue report

I have flashed the matter controller + rainmaker example with otbr feature to an espressif thread border router and was able to successfully commission a matter door sensor and mattet plug to rainmaker. How can I send the states of those devices to the rainmaker dashboard or aws iot core. Currently one device is not showing any parameters which is the door lock sensor and the matter plug can be turned on and off with rainmaker but those two devices are not shown in rainmaker dashboard. a846cc26-76e7-4e21-90b3-cc1270961f00 343f9638-caae-4bff-b66a-aa249c44319b

aadhimellow commented 23 hours ago

@sayondeep Could you please look into this ?

shahpiyushv commented 19 hours ago

The ESP RainMaker dashboard is an admin side device management dashboard meant for devices directly connected to the RainMaker backend, which in this case, is the controller. The devices connected to the controller are pure matter devices, not relevant to admin users. They are accessible only to the end user via the phone app. Moreover, some device types are not yet supported, either by the controller, or the phone app. So, even if they may be controllable by API, they may not show correctly in the app.

aadhimellow commented 19 hours ago

Is there any possible way to send the data of the sensor to aws iot core via the matter controller

sayondeep commented 18 hours ago

You can check the supported device type by the controller here https://github.com/espressif/esp-rainmaker/blob/f98cf1ec50bff6706c5afe626806fe9d95dbc141/examples/matter/matter_controller_with_touchscreen/main/app_matter_ctrl.cpp#L399

Currently door lock sensor is not supported by the controller and phone app.

Assuming that door lock sensor is supported in the controller. As a proof of concept you can your logic for sending on-off data of light to aws iot core by adding your logic here https://github.com/espressif/esp-rainmaker/blob/f98cf1ec50bff6706c5afe626806fe9d95dbc141/examples/matter/matter_controller_with_touchscreen/main/app_matter_ctrl.cpp#L120 .

We report the updated state of light (A supported device type by controller) . To check and verify the state. You can run the following commands.

$ cd $RMAKER_PATH/
$ esp-rainmaker-cli login --email <rainmaker-account-email>
$ esp-rainmaker-cli  getparams <rainmaker-node-id-of-controller>

On-Off cluster is 0x06.