SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
238 stars 16 forks source link

How can I create custom actions that communicate within a local network? #126

Open gabrielcolon32 opened 2 years ago

gabrielcolon32 commented 2 years ago

Hello,

Is there a sequence of steps that I can take to create a file that takes care of custom actions? More specifically, I wish to send an API request to a server on a local network via voice command. Some files seem to have a lot of code which I am not familiarized with any help is appreciated.

Thanks.

fquirin commented 2 years ago

Hi,

there are basically 3 options to do this:

If you have a smart home HUB like OpenHAB or Node-RED etc. the first option might be the best.
A custom service is the most flexible solution but it's the most complicated as well. There is an example service that generates custom MQTT broadcasts which might come close to your use-case. I was planning to build more SDK examples. If you describe your use-case a bit maybe I could create some kind of template for custom HTTP calls that can be used without Java knowledge :slightly_smiling_face: