<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[BLE motion sensor via BTHome]]></title><description><![CDATA[<p dir="auto">I'm trying to connect a Shelly BLU Motion sensor to an M5StickCPlus (as a BLE server). I'd like to trigger GPIO events on the M5 as well as send commands to another BLE device (BLE relay and/or BLE light) when motion is detected.<br />
I managed to pair the sensor to my phone and get info from it using the app nrf Connect, but I'm kind of stuck on how to incorporate it in UIFLOW2. I guess I would need to initiate some kind of pairing between the two?<br />
I think BTHome would be easiest to implement, since it's standardized and not encrypted,</p>
<p dir="auto">I guess it would be enough to read the UUID for the unencrypted BTHome data: "d52246df-98ac-4d21-be1b-70d5f66a5ddb"<br />
An example of the data received for that UUIDis:  "(0x) 44-00-71-01-64-05-A4-32-01-21-00", where two last bytes seem to be the motion sensor (21) and it's status (00 for not active). So, then if that data is parsed and only the last byte used, I guess i would know the status.</p>
<p dir="auto">Has anyone managed to pair a BLE sensor to an M5Stack product?</p>
<p dir="auto">Info on Shelly BLU Motion: <a href="https://shelly-api-docs.shelly.cloud/docs-ble/common" target="_blank" rel="noopener noreferrer nofollow ugc">https://shelly-api-docs.shelly.cloud/docs-ble/common</a><br />
and <a href="https://shelly-api-docs.shelly.cloud/docs-ble/Devices/motion" target="_blank" rel="noopener noreferrer nofollow ugc">https://shelly-api-docs.shelly.cloud/docs-ble/Devices/motion</a></p>
<p dir="auto">Info on BTHome:  <a href="https://bthome.io/format/" target="_blank" rel="noopener noreferrer nofollow ugc">https://bthome.io/format/</a></p>
]]></description><link>https://community.m5stack.com/topic/6765/ble-motion-sensor-via-bthome</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:29:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6765.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Sep 2024 14:08:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BLE motion sensor via BTHome on Mon, 09 Sep 2024 08:55:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/calvorotas" aria-label="Profile: Calvorotas">@<bdi>Calvorotas</bdi></a></p>
<p dir="auto">Thanks a lot!</p>
<p dir="auto">I'll  give it a try right away :)</p>
]]></description><link>https://community.m5stack.com/post/26395</link><guid isPermaLink="true">https://community.m5stack.com/post/26395</guid><dc:creator><![CDATA[OscarE]]></dc:creator><pubDate>Mon, 09 Sep 2024 08:55:48 GMT</pubDate></item><item><title><![CDATA[Reply to BLE motion sensor via BTHome on Sat, 07 Sep 2024 17:00:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello Oscar...</p>
<p dir="auto">For connect M5stack to Shelly BLU:</p>
<p dir="auto"><img src="/assets/uploads/files/1725727743698-2cd939a7-3d8e-43fb-924e-7fb51cdbfda4-image.png" alt="2cd939a7-3d8e-43fb-924e-7fb51cdbfda4-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And you can see an example in: <a href="https://community.m5stack.com/topic/6737/receiving-response-from-ble-server">https://community.m5stack.com/topic/6737/receiving-response-from-ble-server</a></p>
<p dir="auto">I hope it can be of use to you.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.m5stack.com/post/26382</link><guid isPermaLink="true">https://community.m5stack.com/post/26382</guid><dc:creator><![CDATA[Calvorotas]]></dc:creator><pubDate>Sat, 07 Sep 2024 17:00:06 GMT</pubDate></item></channel></rss>