The easiest way to create a new IoT device using the 2Smart Cloud platform is to use a step-by-step wizard. However, for experienced developers and those who do not want to be limited to the scope of the wizard, an alternative option is suitable, which is more flexible. Using the example of a Wi-Fi relay, we will show how to create a new IoT device in 2Smart Cloud without using a wizard.
If you begin your experience with the platform through this article, we recommend going through the wizard’s instructions, which contain essential details excluded in the text below. Let’s move on to how to build an IoT device using the 2Smart Platform.
So, let’s make the internet of things hardware.
The assembling of a smart Wi-Fi relay prototype is described in detail in the previous article. We will use the same scheme to describe the features of creating a new IoT device on a platform without a wizard.
It is also assumed that you have already registered on the platform and tried its functionality in demo mode.
You can postpone this step if you wish. You can edit this data at any time. Remember to return to this step before publishing the product.
# Switchers for relay and wi-fi led indicator switch: - platform: gpio id: l2 name: relay pin: number: GPIO4 inverted: True - platform: gpio id: Wifiled name: ledWifi pin: number: GPIO2 # Physical button for relay switching binary_sensor: - platform: gpio pin: number: GPIO13 mode: INPUT_PULLUP inverted: True name: sensor_button on_press: then: - switch.toggle: l2 # Physical button for reset creds for production devices (only for 2Smart Cloud version of EspHome) - platform: reset_sensor pin: number: GPIO15 mode: INPUT_PULLUP inverted: true name: Reset button filters: - delayed_on: 2s interval: - interval: 10s then: if: condition: wifi.connected: then: - switch.turn_on: Wifiled else: - switch.turn_off: Wifiled # Standart sensor for wi-fi signal sensor: - platform: wifi_signal name: "WiFi Signal Sensor" update_interval: 10s # Standart sensors for wi-fi settings text_sensor: - platform: wifi_info ip_address: name: ESP IP Address ssid: name: ESP Connected SSID bssid: name: ESP Connected BSSID mac_address: name: ESP Mac Wifi Address
After configuring the code, click “Save”.
Feel like you need help building your own IoT device? Contact us now!
Use Production firmware for devices that will be sold to end-users. We recommend leaving one prototype device with test Test firmware to quickly test new features or change the mobile app’s interface.
Please note that the product will appear in the public catalog only after the platform administrators approve it. Before then, you can only add the device through the pairing procedure by selecting “Others” in the market.
Examine your device through the eyes of your customers and test the product in a real environment. For more information, see the instructions for the wizard.
Use the additional device control features that 2Smart Cloud users have: voice commands, a Telegram bot, and phone call control. Take the opportunity to share access to the device’s control with other users. You can find detailed instructions in the blog on our website.
As you can see, the above method of creating a new device in 2Smart Cloud is more flexible than the wizard. We recommend it for experienced developers who have completed at least one product and are already familiar with the platform’s functionality.
Please note that you can always go back to an already published product to edit the firmware and application interface. For example, if users of your product start complaining about inconvenient control or insufficient functionality of the application, you can make the necessary changes in just a few minutes. They will automatically be visible to your customers after restarting the 2Smart Cloud app on their smartphone.
For more information on editing the product, see the tutorial.
You can also work with statistics on the usage of your devices by your users. There is another tutorial on how to do this.
You don’t have to be a significant manufacturer to join the 2Smart Cloud and create your IoT product! The platform is also open for DIY developers who make devices for themselves, as in our example with the smart relay. We also encourage novice inventors to discover how to build custom IoT hardware with the help of our free guides and tutorials.
While our platform suggests an easy way to build IoT devices, this process is generally a little more complex and prolonged. Usually, the way to create IoT hardware begins with generating the concept – that is, coming up with a helpful idea on how an imagined device can be used. Next, it is necessary to proceed with market research and develop an even better idea to build an open-source IoT device than your competitors have. You can proceed with user modeling, prototyping, and manufacturing the device at the next stage.
The main requirement of building an IoT device is to ensure seamless and secure data transfer, processing, and analysis, especially when making IoT devices and life-changing IoT innovations for the healthcare industry.
So, here is how to create an IoT product. Building an IoT device implies building the hardware and creating the software to interconnect them further. With the help of our platform, for example, you can quickly build an application to integrate it with your smart device and launch it to the market.
Share with us your business idea and expectations about custom software development for the internet of things.