Notifying Yango Smart Home about events
Yango Smart Home can receive and process events that are related to smart devices. The manufacturer only needs to send generated events to Yango Dialogs according to the protocol.
How it works
- Providers Smart Devices
-
Provider's smart devices. Generate events.
- Provider IOT Cloud
-
Provider cloud that processes events received from user devices. When the event is processed, it's forwarded to the Adapter API.
- Adapter API
-
Intermediate provider API. When processing an event, it converts it to the Yango Smart Home format and forwards it to Yango Dialogs.
- Yango Smart Home
-
Yango's service for managing smart devices. Responds to events received from the provider.
Sample scenario
- Step 1. Connecting the device
-
- The user bought a smart temperature and humidity sensor that is activated once every five minutes to get readings.
- If this is the first time the user accesses the Yango services, the user account in the smart device provider's system must first be linked to the user's Yango account.
- The user finds the developer skill and links the accounts.
- After the accounts are linked, the device list is automatically updated.
- Yango Smart Home requests the details of user devices from the provider.
- After that, the device is ready to be used in Yango Smart Home.
- If the user device doesn't notify Yango Smart Home of its state change, the user can't access the current data. To get information about state changes of the user device, the developer must set up the notification service.
- Step 2. Notifying Yango Smart Home about the state change
-
- When the sensor is activated, it measures the current indicators and sends them to the device manufacturer server.
- The manufacturer server sends a request to notify the platform about the device state change.
- Yango Smart Home processes the request and updates the device status.
When the user wants to find out the sensor state, they say the command. Yango Smart Home informs the user of the last known temperature state recorded by the device:
User: Yasmina, what's the temperature in the room?
Yasmina: The temperature in the room is 24 degrees.