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


Question

Posted

Hi All 

 

If I open a browser and paste the string: http://192.168.0.110:1880/googlehome?announcement=someone%20at%20the%20door

My Google Home mini is saying someone at the door

 

I tried to create a scene, but its not working. (Fibaro Home Center 3)

 

local address = "http://192.168.2.160:8880/googlehome?announcement=someone%20at%20the%20door"

http = net.HTTPClient({timeout=3000})
http:request(address, {
    options={
      data = requestBody,
      method = 'POST'
},

 

I also tried the below code with help from Joep and Sankotronic

Please login or register to see this code.

I hope someone have any idear what i do wrong. 

Kind regards

Martin

6 answers to this question

Recommended Posts

  • 0
Posted

Check that you are using correct IP, Port and method (These differs from the 3 examples you provided)

  • 0
  • Inquirer
  • Posted

    Hi 747

     

    I have 2 differet setup on Node-red server.  When i test the scene the Home center is in the same IP Range as the node-red. and if i copy the http to the browser it works fine. 

    Do you have any ide how to do this. 

    • 0
    Posted

    I dont use Node-red and i dont have a HC3 (Only HC2).

     

    It sounds like you are using the Node-red to route data between to different IP subnets?

    Can you ping between these subnets?

    • 0
  • Inquirer
  • Posted

    Hi 747

    No i am in the same subnet. Sorry for confusion. Its should have been the same IP and port number on all my test... ( I just create another for test since i did not get it to work i tried to do a new setup on a router i had) 

    The only think i want is to open this from my HC3 (I use a VD on my HC2 and it worked very well)

     

    If I open a browser and paste the string: http://192.168.0.110:1880/googlehome?announcement=someone%20at%20the%20door

    My Google Home mini is saying someone at the door

     

    • 0
    Posted

    Ok. So its working when you do the same request from HC2 but not when you are using HC3?

    Im not familiar with the differences for HTTP requests between HC2 and HC3.

     

    Im not sure which method is the default one when pasting the request into browser, POST or GET, but if it works in HC2 and you use the exact same options/method in HC3 and it doesnt work then i dont know, sorry..

     

    • 0
  • Inquirer
  • Posted

    Hi 747

     

    I know LUA is differents in HC3 and HC2 so just try to find out the right one on HC3.

    Thanks for you input and have a nice day.

    br Martin

    Join the conversation

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

    Guest
    Answer this question...

    ×   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...