#Help Needed with Matter Commissioning via Smartphone and Subscription

1 messages · Page 1 of 1 (latest)

cobalt mica
#

Hi everyone,

I’m new to Matter and would really appreciate your help if possible.

I installed the Docker image on my mini PC, running it with Bluetooth support. I was able to commission the devices and read their values via WebSocket.

So far, so good. However, I am now stuck because I don’t know how to proceed with commissioning via my smartphone.

My sensors operate on a Thread network created by my OTBR (GL-iNet GL-S200).

Could you kindly help me with the following questions?

  1. Is it possible to commission a Matter device using my smartphone? I need to use the smartphone's Bluetooth because my Matter devices are not close to the mini PC running Python Matter Server.

  2. During commissioning, can I set a custom node_id, or do I always have to use the one assigned by Python Matter Server?

  3. Once a device is commissioned, I need to set up two separate subscriptions for the same type of device.

    • The first subscription with the following timing for certain values:
      "min_interval": 300,
      "max_interval": 300
      
    • A second subscription with a different timing for other values:
      "min_interval": 1800,
      "max_interval": 1800
      

I really appreciate any help you can provide.

Thanks in advance!

runic tree
#

The python matter server is primarily designed for use with HA, and the preferred commissioning strategy there is you use the HA companion app to do the commissioning. In that scenario they do indeed use the bluetooth on your smartphone. This actually uses the matter stack from your phone OS vendor. If you are bypassing the HA ecosystem you'll presumably need your own iOS or Android app to do that.

#

(This won't work if you use a "freedom" version of Android or something like graphenos)

cobalt mica
#

Thank you @runic tree for your response. I need to use my app for commissioning, but it's not clear to me what I need to pass to the Python Matter Server for it to detect the device on the Thread network.

If I start the PMS Docker image with Bluetooth support on my mini PC, I can commission the device and control it via WebSockets. My app's WebSocket control also works.

The only missing step is commissioning from my smartphone to the PMS. I’m not sure if I need to run PMS with the standard command or something else. I also don’t know if smartphone commissioning needs to send any information to PMS for it to recognize the Matter device once commissioned.

In short, there’s no documentation, and I don’t know what to do.

runic tree
#

So you’ve made your own android or iOS app?

#

(I don’t think there’s much work being done on PMS for use outside of HA, hence why you are struggling for documentation)

hardy quartz
#

with the normal provisioning flow on a mobile device, the python-matter-server isn't involved at all until after the device has joined the thread network. what happens is a separate matter stack running on the phone does the initial provisioning itself, and then after the device is connected to the phone, it shares the device with the python-matter-server.

cobalt mica
#

@hardy quartz, how does the sharing of the commissioned device towards PMS happen?
Is there a websocket command that I have to send? If so, with what parameters?

cobalt mica
#

Never mind, I figured it out. Thanks!