Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Google Now + Z-Wave integration


berserker

Recommended Posts

I'd like to share with you a little experiment I'm working on:

Please login or register to see this link.

Taken from the video description:

By now I'm using Tasker to automate the voice recognition event (triggered by the AutoVoice plugin) and the REST API to control Z-Wave devices (exposed by my Fibaro home center).
The next step is to write an app on my own and to move the "logic" on another device (raspberry).

 

Hope you'll enjoy it

Please login or register to see this image.

/emoticons/default_icon_smile.gif" alt=":-)" />

Link to comment
Share on other sites

It looks promising.

Can you show an example of a REST API command that triggers an action in the HC2 from Tasker?

Link to comment
Share on other sites

  • Topic Author
  • It looks promising.

    Can you show an example of a REST API command that triggers an action in the HC2 from Tasker?

     

    Thanks!

    The "trigger" in the video is invoked from a plugin called

    Please login or register to see this link.

    (please note that my device is not rooted).

    AutoVoice allows me to intercept Google Now commands and in my test I created 2 profiles for the following "recognition events":

    • Turn on the air in the bedroom
    • Turn off the air in the bedroom

    To be able to turn on/off my FIBARO Relay Switch (that is connected with the air recycler in the video) I need to create the following two actions (please note that the switch ID is 25):

    • Please login or register to see this link.

    • Please login or register to see this link.

    The FIBARO REST API requires (rightly) every HTTP request to be authenticated via "HTTP Basic Authorization" but I got some troubles in setting a custom HTTP header with the "standard" Tasker options (maybe it's possible) so I used another plugin called

    Please login or register to see this link.

    .

    Actually the demo is designed to work on LAN (as you can see in the URL's host) but it could be obviously ported to work from remote too

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    Link to comment
    Share on other sites

    Thanks!

    The "trigger" in the video is invoked from a plugin called

    Please login or register to see this link.

    (please note that my device is not rooted).

    AutoVoice allows me to intercept Google Now commands and in my test I created 2 profiles for the following "recognition events":

    • Turn on the air in the bedroom
    • Turn off the air in the bedroom

    To be able to turn on/off my FIBARO Relay Switch (that is connected with the air recycler in the video) I need to create the following two actions (please note that the switch ID is 25):

    • Please login or register to see this link.

    • Please login or register to see this link.

    The FIBARO REST API requires (rightly) every HTTP request to be authenticated via "HTTP Basic Authorization" but I got some troubles in setting a custom HTTP header with the "standard" Tasker options (maybe it's possible) so I used another plugin called

    Please login or register to see this link.

    .

    Actually the demo is designed to work on LAN (as you can see in the URL's host) but it could be obviously ported to work from remote too

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    Hello ,

    can you tell us how did you configure Restask?....I have Autovoice and Task .

    When i create the action in Task where should i put this api "

    Please login or register to see this link.

    " ? 

    Request Type =Get

    Host = 192.168.x.xxx

    return code =?

    response =?

    .

    .

    .

    ?

    Link to comment
    Share on other sites

  • Topic Author
  • Hello ,

    can you tell us how did you configure Restask?....I have Autovoice and Task .

    When i create the action in Task where should i put this api "

    Please login or register to see this link.

    " ? 

    Request Type =Get

    Host = 192.168.x.xxx

    return code =?

    response =?

     

    That's very easy, just follow these steps:

    • Create a new activity
    • Click on +
    • Click on plugins
    • Select RESTask
    • Click on the top/right pen for editing it
    • In the the "host" field enter the URL

      Please login or register to see this link.

    • Enter you FIBARO Home Center user and pass
    • Have fun

      Please login or register to see this image.

      /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />
    Link to comment
    Share on other sites

    Well, it does work. Thanks for that.

     

    I have succesfully triggered devices on and off and also started fibaro scenes, but i do not get virtual devices responding.

    The api command:

    Please login or register to see this code.

    works when sent from a browser but it does not when it is played on Tasker.

    Any clues?

    Link to comment
    Share on other sites

  • Topic Author
  • Well, it does work. Thanks for that.

     

    I have succesfully triggered devices on and off and also started fibaro scenes, but i do not get virtual devices responding.

    The api command:

    Please login or register to see this code.

    works when sent from a browser but it does not when it is played on Tasker.

    Any clues?

     

    Hi, sorry for the delay!

    I tested a virtual device with the same api command and it does work, in my case I have something like this:

    /api/callAction?deviceID=35&name=pressButton&arg1=1

     

    I can suggest for debugging purpose to test the api with curl, i.e.:

    curl.exe -v "http://<user>:<pass>@192.168.1.3/api/callAction?deviceID=35&name=pressButton&arg1=1"

    Link to comment
    Share on other sites

  • Topic Author
  • a little example about how to invoke the REST API for a Virtual Device/Plugin (in this case it's the Fibaro's Wake On LAN plugin).

     

    Link to comment
    Share on other sites

    Thanks. Nevertheless, I found a different way to trigger these API actions without the need to code every single one in the tasker app.

    Have a look :

    Please login or register to see this link.

    Link to comment
    Share on other sites

    • 2 weeks later...

    hi

    i have used autovoice and tasker in the past with imperihome, so if you install imperihome app aswell then tasker has a plugin for that so you dont need to send any REST API commands over the internet.  The only thing is imperihome plugin in tasker can only run scenes so unfortunately you would need to create a scene for everything you want to run.

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...