Thursday, March 17, 2022

How to set up MYEWWT for IoT?

MYEWWT connects to the Internet via WI-Fi and interacts with the Telegram bot, receiving commands from it, processes them and controls peripheral devices: light switches, smart sockets, etc. using ESP-NOW technology.


MYEWWT device features:

  • connection to a Wi-Fi access point and Internet access,
  • data exchange with other smart home devices using ESP-NOW technology,
  • temperature and humidity control in the room,
  • the ability to change the color of the clock segments to any of the RGB range.


To control the grid technology smart home system using the MYEWWT device, you need to create your own bot in Telegram.


For this you need:

Open a dialog with BotFather. This is the main bot - he creates bots. Press start, and after his answer, enter the command / newbot.

Come up with any name (name) for the bot, for example "My house" or "Apartment_50".

Come up with a name for the bot (username). It must end with "_bot". It is worth paying attention, the name must be unique and written in Latin.


An example of a dialogue with a bot

After completing the bot creation procedure, you need to save the data highlighted on the screen - a link to the bot and a token. The token must be kept secret, as it provides access to the bot. (On the screen is an invalid, photoshopped token).

The most important thing for IoT

A smart home needs one very important thing. It's called the gateway. Usually it lies somewhere, collecting dust like a Wi-Fi router, and quietly performs its inconspicuous but important functions: it unites all smart home devices into a single network, and also accesses the Internet via Wi-Fi.


Basically everything. She has a boring job, right?


Why would a device just stand and perform these functions, if you can make it cooler, more interesting and more convenient? That's how I thought and decided to start creating MYEWWT.


MYEWWT is made in the form of a desktop clock that combines the functions of a Wi-Fi gateway, a real-time clock, equipped with a humidity and air temperature sensor, as well as a photoresistor for adaptively changing the brightness of the clock segments depending on the lighting conditions in the room.


MYEWWT interacts with the Telegram API, allowing the user to send commands and providing a response to them in a Telegram bot created in advance by the user.

How to set up MYEWWT for IoT?

MYEWWT connects to the Internet via WI-Fi and interacts with the Telegram bot, receiving commands from it, processes them and controls perip...