Hello everyone,
I am new to JeeDom, but now I want to develop a Plugin for Snips voice assistant.
The Idea is, when the snips assistant received voice instructions, it will split it into a structurized json data with intents and necessary parameters.
But Snips using python, it support running a script or start a script when an intent has been detected automatically.
As I know, JeeDom is running under PHP. My idea is to write a Plugin which listen on the Snips bus, once an intent has been detected, it will call JeeDom to run the script which can control the equipments registered in JeeDom system. ( More like sending a commend) .\
Anyone knows how can I do this ?
How can I run a python script when event has been triggered
Re: How can I run a python script when event has been triggered
The idea way is, this script can be written in python and then the commends and devices inside can be understand by JeeDom's. Finally the JeeDom will execute those commands.
Re: How can I run a python script when event has been triggered
Hello,
I am also looking at snips which looks very insteresting.
Isn't it possible to write a Code Snippet (Python) on Snips side to invoque Jeedom Interactions using the HTTP API ?
http://#IP_JEEDOM#/jeedom/core/api/jeeApi.php?apikey=#APIKEY#&type=interact&query=#QUERY#
https://jeedom.github.io/core/fr_FR/api ... Anchor-1-3
This way, Intents can be directly sent to jeedom Interactions through the #QUERY# parameter. But in this case, I don't khow the interaction answers can be handled by Snips.
Looking at the action type, it is also possible to use Home Assitant Component instead of Code Snippet. One of the Home Assistant Component is HTTP. https://www.home-assistant.io/components/http/.
May be it could be used directly with Jeedom Interactions API.
I am also looking at snips which looks very insteresting.
Isn't it possible to write a Code Snippet (Python) on Snips side to invoque Jeedom Interactions using the HTTP API ?
http://#IP_JEEDOM#/jeedom/core/api/jeeApi.php?apikey=#APIKEY#&type=interact&query=#QUERY#
https://jeedom.github.io/core/fr_FR/api ... Anchor-1-3
This way, Intents can be directly sent to jeedom Interactions through the #QUERY# parameter. But in this case, I don't khow the interaction answers can be handled by Snips.
Looking at the action type, it is also possible to use Home Assitant Component instead of Code Snippet. One of the Home Assistant Component is HTTP. https://www.home-assistant.io/components/http/.
May be it could be used directly with Jeedom Interactions API.
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 2 invités