Handling Sinric Pro Smart Button

Want to control your DIY projects with just a tap on your phone? Sinric Pro’s Smart Button feature is the perfect solution. Create a push buttons in the app that can trigger any action on your microcontroller – from switching on LEDs to controlling motors or sensors. This guide will walk you through setting up Smart Button functionality on your ESP32, ESP8266, or Raspberry Pi Pico W. You’ll learn how to handle all types of button interactions:

Prerequisites :

  1. ESP32, ESP8266 or Raspberry Pi Pico W x 1.

Step 1 : Connect to Sinric Pro

Step 1.1 : Create a custom device type for Smart Button.

Sinric Pro does not have a built-in device type for Push Button so we are going to create a custom device type for it.

Note: You can use the device template import feature mentioned below to skip creating the full template.

Sinric Pro smart button template

Sinric Pro custom device type for push button

Click on Save to save.

Sinric Pro moisture saved template

Now you can see the template we just created.

Import an existing template?

If you are feeling lazy setup all the Modes and Range values, you can use the import feature.

Sinric Pro capacitive soil moisture sensor import template

Paste this Template:

{
  "name": "SmartButton",
  "description": "SmartButton",
  "deviceTypeId": "672a3b2c96ec80395518f2fe",
  "capabilities": [
    {
      "id": "672a3fbd96ec8039551901eb"
    }
  ]
}

Sinric Pro create device alexa

Sinric Pro copy device id

Sinric Pro copy device id

Step 2 : Connect to Sinric Pro

Step 2.1 Install Sinric Pro Library

Sinric Pro install SinricPro library

2.2 Complete Code

Sinric Pro smart button in portal

Sinric Pro smart button in app

Troubleshooting

  1. Smart Buttons are only supported in SinricPro app. Alexa, Google Home or SmartThings are not supproted.

  2. Please refer to our Troubleshooting page for more details.

This document is open source. See a typo? Please create an issue