Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is the repository with all the code and external libraries needed: https://bitbucket.sco.alma.cl/users/fcaro/repos/acs-baci-smart-bulb/browse. You should be able to insert your API credentials in the component's implementation and run this code as is.

Component's template

Code Block
languageyml
titletuya_bulb_baci.yml
linenumberstrue
working_dir: /home/francisco/workspace
prefix: ACSIOT
module: acsiot
component_name: TuyaBulbBaci
functions:
  - 'void turnOn()'
  - 'void turnOff()'
properties:
  - 'readonly attribute ACS::ROboolean status'

...