...
- A single component cannot control multiple physical devices. The component must control a unique physical device, so it must have a "device_id" characteristic, instead of passing it as a parameter.
- The "api_region", "api_key", and "api_secret" parameters must also be characteristics of the component, since they are static data as well.
- Actions "turnOn" and "turnOff" will be implemented asynchronously for simplicity. In another section we will implement a an asynchronous component.
BACI smart bulb component template
...
{"serverDuration": 69, "requestCorrelationId": "5e8bd504fd7990aa"}