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


  • 0

Notify me integration


Question

Posted

Hi Forum users,

I'm trying to make an integration between HC2 and Notify me (

Please login or register to see this link.

).
Notify me will create an announcement on Amazon echo devices.

 

I'm trying to send the request with https post. But, whatever I try, I always get the error :

'Transport endpoint is already connected'

 

Searching the forum learned me a lot but still it isn't working.
Anybody has an idea?

 

Please login or register to see this spoiler.

 

Please login or register to see this attachment.

8 answers to this question

Recommended Posts

  • 0
Posted

Hello,

 

I've not tested this, but given your code and the link to the documentation you provide it seems you need to make a POST not a GET request

Please login or register to see this code.

You may also need to add to the options 

Please login or register to see this code.

 

I hope that helps.  Let us know how you get on, I think I'd like to have a go at this....

  • 0
  • Inquirer
  • Posted

    hi @ianakapilotlight,

    Thanks for thinking with me.
    Post, Get, Put, I've tried them all (according to the documentation, it doesn't matter).
    Also the checkcertificate is not helping. At least, if I added it in the correct way.


    function sendRequest(url)
    local selfhttp = net.HTTPClient()   
      selfhttp:request(url, {
        options={
              method = 'POST',        
              headers = {
                ['Content-Type'] = 'application/json',
                },
            data = requestBody,
            timeout = 5000,
            checkCertificate = false
          },

    • 0
    Posted

    @wpeeters i tested it with homeseer, and with this program it works, but i don't think it is a big plus for homeautomation. if you sent something to Alexa a yellow led will blink and you have to ask if there are notifications. what i like to see that Alexa anounces it right away.

     

    (door open) Alexa: door is open

    and not

    door open,

    yellow led lit

    ask: are there notifications

    • 0
  • Inquirer
  • Posted

    hi @akatar,

    Yes I know. That's my goal as well. With the propers sensors, you can already send 'announcements'. It's a matter of time (I hope) till the API is available or the necessary skills will become available.
    This is my preparation already :-)
    I don't get it working directly in a scene. As a trial, I'll do it on my RPI (already working). Just creating a scene now and check if I can pass arguments.
    Nevertheless, I'm still searching for the https solution since I don't like to have additional equipment if it's not necessary.

    • 0
    Posted (edited)

    @wpeeters i asked "notify me"

     

    there answer :

    There is no (current) way for Notify Me to make Alexa blurt out notifications without prompting -- you must ask her why she chimed.  I believe Amazon designed notifications this way so you are alerted to them even if you are out of the room when they arrive, much like the light on an answering machine lights up to let you know you have messages pending.  You can read about Amazon's Alexa Notification system here:

    Please login or register to see this link.

     

     

    so it's of no use for me

    i want if someone calls me that Alexa speaks the number/name out loud

    i now project it on my tv screen but Alexa speaks the number/name is a lot cooler :)

     

    Edited by akatar
    • 0
  • Inquirer
  • Posted

    @akatar,

    Check below post. I'm not talking about 'notifications'. I refer to 'announcements'. 
    Announcements already exist if you have compatible amazon sensor or hub. Some suppliers already have 'announcements' so it may not take that long anymore before a skill will be developed or the API is public (and easy usuable).
    At least, that what I think (and hope :-) )

     

     

    • 0
    Posted (edited)
    On 12/12/2018 at 9:02 PM, wpeeters said:

    hi @ianakapilotlight,

    Thanks for thinking with me.
    Post, Get, Put, I've tried them all (according to the documentation, it doesn't matter).
    Also the checkcertificate is not helping. At least, if I added it in the correct way.


    function sendRequest(url)
    local selfhttp = net.HTTPClient()   
      selfhttp:request(url, {
        options={
              method = 'POST',        
              headers = {
                ['Content-Type'] = 'application/json',
                },
            data = requestBody,
            timeout = 5000,
            checkCertificate = false
          },

    hi @wpeeters did you get your code working?

    I am getting "hand share sslV3 ”error from my lua try.

     

     

     

     

    Edited by Markoe
    • 0
  • Inquirer
  • Posted

    @Markoe, no, it is not working.  I still use my rpi as a proxy.

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