'st-schema' examples and 'Aqara smart plug' or 'SmartThings-smartthings-hub' intergration

I modified the source code so that only the OAuth2 authentication process can be added to the “st-schema-connectors/viper-virtual-glitch-connector” example.

Also, the smart things hub is connected to the smart things mobile application, and the aqara smart plug is also linked under the hub.

After building the cli-example-nodejs example on github, if you look up the
sthelper list
with the CLI command, you will see the following.

deviceID : blahblah
name: switch-power-energy-consumption-report-aqara
label: Aqara Smart Plug
manufactureName: SmartThingsCommunity
presentationId: blahblah
deviceManufactureCode: LUMI
locationId: blahblah
roomId: blahblah
components: (skip)
~ ~~~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
deviceID : blahblah
name: SmartThings v3 Hub
label: SmartThings Hub
manufactureName: SmartThings
presentationId: blahblah
locationId: blahblah
ownerId: blahblah
roomId: blahblah
components: (skip)

I’m using the webhook method.

As I expected, additional work would be needed after entering the actual information about the hub or smart plug in package.json and going through the process of connecting with the actual room ID or owner ID in the source code.

How to work with hubs and smart plugs instead of virtual switches?

Hi @jihoon870808

Just to clarify Schema is used to integrate Cloud to Cloud devices, in the case that you want to integrate devices using the hub you will need a Edge driver, but Can you explain more about what are you trying to implement? to understand your question and be able to help you.