[Edge Driver] How to develop an Edge driver that can read data from a LAN device, and then send data to a separate Z-Wave drivers/devices?

Hi everyone!

I’m a newbie to the Smart Home world. As a summer project, my friends and I decided to learn more about Smartthing and develop software to make our home smarter with automation embedded into the devices we had. I’m new to the Smartthings Developing environment, so any advice or guidance would be greatly appreciated.

Currently, we have a custom LAN device that we wrote, and it has data in it. We also have a Z-wave stock driver that can control a Z-wave switch.

Now I want to develop a bridge driver that can read data from the LAN driver and output a control command to the Z-wave driver to control the switch depending on the logic we programmed.

The goal is to embed the ST automation feature straight into the driver itself without the need for user settings.

Note: We want everything to run locally on the ST hub.

Here are couples of our questions:

  • Is it possible to read data from a LAN device as input and output data to a ZigBee or Z-wave device, or does it have to be all LAN devices?
  • How to read the data from the LAN device, store it in the Hub, process the logic we set, and ultimately send the output to the Z-wave drivers?

We understand that we could set a scene or routine in the ST app, but as the user are elderly, like our grandparents or even our parents, who aren’t familiar with technology, that could be a challenge for them when we aren’t around.

I hope y’all can point me in the right direction with guidance and resources on developing this driver.

Thanks a lot!

1 Like

Edge drivers are for devices, their states and actions. One edge driver can’t control another directly. What you’re looking for sounds like an automation, so you’ll want to look into the Rules API documentation. Or go the easy route and create a Routine in the mobile app, which uses the Rules API on the backend.

4 Likes

Thank you for your response, Jimmy!

I’ll read more about Rules API and post further questions.