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


HC3: UNIFI presence


10der

Recommended Posts

6 minutes ago, akatar said:

and true story

i have pirs around my house to turn on the ouside light, but they only work to 2 oclock in the morning, once every couple of weeks i go to a couple of friends to drink.

When i come back it's after 2 oclock and i sent an app to turn on the lights then, to drunk to do it any other way

?

 

Well, i would like everything to be smarter then me. Like, when you are at your friends geo location. The system knows to

set the pirs to work after 2 oclock. But how the system would know that you have been drinking to much, uhm dunno  :)

Edited by ppeterr
  • Like 1
Link to comment
Share on other sites

@ppeterr My house is running itself, only things that happens that can not be fixed by a rule: fails

I don't like geo location, i am technician and work at custumors and it happens that i drive by my house to go somewhere.

Geo location would think that i am at home and do all kinds of stuff i don't want,

 

The house can not be smarter then you, tou prograam the rules

the house is never smarter then the person who created it

 

Link to comment
Share on other sites

Well, it was just a funny example :) Anyway time to fire up the bbq.

Another thing the HC3 cant do!

  • Like 1
Link to comment
Share on other sites

there is a way to control the bbq :)

Please login or register to see this link.

  • Like 1
Link to comment
Share on other sites

  • Topic Author
  • 17 hours ago, akatar said:

     

    The mesages i get for example

    we got mail (real mail) 

    there is someone at the door 

    My old QA for HC3 still here 

    Please login or register to see this attachment.

    ring plus telegram 

     

    17 hours ago, ppeterr said:

    fire up the bbq

    Use HC3 for fire bbq

    nice idea 

    ideal solution

    • Like 2
    Link to comment
    Share on other sites

    18 minutes ago, 10der said:

    Use HC3 for fire bbq

    nice idea 

    ideal solution

    ? plastic roasted burgers

     

    Anyway i got a G4 doorbell in a unifi protect setup. (or at least, still new in the box)

    Hopefully i can include some stuff in the hc3 someday.

    • Thanks 1
    Link to comment
    Share on other sites

    22 minutes ago, akatar said:

    @ppeterr well, doorbell works perfect here (hs4) :)

     

    I get your point, but I'm far from done playing with the hc3.

    Someday...

    Link to comment
    Share on other sites

    • 1 year later...
    • 8 months later...
    On 12/19/2022 at 11:07 PM, texan said:

    Hello,

     

    Does this quickapp work with cloud-key-gen2-plus?

     

    Thanks

     

    Hi, yes it does only the API addresses has to be adjusted so I did :D (else it won’t work with Unifi OS/ Cloud key Gen 2) as address only fill out the IP.

     

    Only the 401 error keep returning, I didn’t bother trying to fixing it

    Please login or register to see this attachment.

    • Thanks 2
    Link to comment
    Share on other sites

    • 4 weeks later...
    On 8/27/2023 at 7:06 PM, Justino said:

     

    Hi, yes it does only the API addresses has to be adjusted so I did :D (else it won’t work with Unifi OS/ Cloud key Gen 2) as address only fill out the IP.

     

    Only the 401 error keep returning, I didn’t bother trying to fixing it

    Please login or register to see this attachment.

    Hi,

    I've change to my cloudkey gen2plus ip and user/passwd, what else do I've to do to get it to work?

    I tried with my phones mac address, do I have to edit something more?

     

    Thanks

    Link to comment
    Share on other sites

  • Topic Author
  • On 9/19/2023 at 11:08 PM, texan said:

    Hi,

    I've change to my cloudkey gen2plus ip and user/passwd, what else do I've to do to get it to work?

    I tried with my phones mac address, do I have to edit something more?

     

    Thanks

    i think no. just only 

    Please login or register to see this attachment.

     

     

     

     

    btw:

    fscking russian!!! 😢 

    Please login or register to see this image.

    /monthly_2023_09/image.png.c1fdca616453173614693ac8ae7d734b.png" />

    Link to comment
    Share on other sites

    Hello, totally newby here, I am trying to install this. Does it work with dream router and unifi OS? Do i have to make any changes under LUA code or only set up variables?

    Link to comment
    Share on other sites

  • Topic Author
  • 22 hours ago, _Corcov said:

    Hello, totally newby here, I am trying to install this. Does it work with dream router and unifi OS? Do i have to make any changes under LUA code or only set up variables?

    sorry idk.

    but this app use connection API to UNIFI controller. AFAIK UDx (UDR/UDM) have their own application controller and no clue about compatible. Sorry.

    Link to comment
    Share on other sites

    It is ubiquiti equipment only difference is that dream router doesnt need cloud key for remote connection. I have unifi OS, but just not able to set up everything

    Link to comment
    Share on other sites

    A Dream router uses the same OS as a Cloud Key Gen 2 so ... it should work (the API is the same) 

    source: 

    Please login or register to see this link.

     

    Mine is still running fine on a Cloud Key gen 2-plus 

    • Like 1
    Link to comment
    Share on other sites

  • Topic Author
  • 6 hours ago, Justino said:

    A Dream router uses the same OS as a Cloud Key Gen 2 so ... it should work (the API is the same) 

    source: 

    Please login or register to see this link.

     

    Mine is still running fine on a Cloud Key gen 2-plus 

    Good to know. Thank you.

    Link to comment
    Share on other sites

    • 1 month later...

    Hey to make it work for UDM I had to change some API points. I'm not a programer, but it works on my UDM-Pro

    SLAVA UKRAINI!

     

    function QuickApp:getDevices(func)
        self:unifiClient('https://' .. ip_address .. '/proxy/network/api/s/' .. site ..'/stat/sta', nil, 
            function (data)
                    if data.meta and data.meta.rc and data.meta.rc == "ok" then
                        func(data)
                    else
                        -- error?
                    end
            end,
            function (err)
                if err.status == 401 then
                    -- do auth
                    local login = {username = username, password = password, strict = true}
                    self:unifiClient('https://' .. ip_address.. '/api/auth/login', json.encode(login), 
                        function (data) 
                                if data.meta and data.meta.rc and data.meta.rc == "ok" then
                                    print("login OK")
                                    self:getDevices(func)
                                end
                        end)
                end
    • Like 1
    • Thanks 1
    Link to comment
    Share on other sites

    On 11/16/2023 at 11:06 PM, martinpreiss said:

    Hey to make it work for UDM I had to change some API points. I'm not a programer, but it works on my UDM-Pro

    SLAVA UKRAINI!

     

    function QuickApp:getDevices(func)
        self:unifiClient('https://' .. ip_address .. '/proxy/network/api/s/' .. site ..'/stat/sta', nil, 
            function (data)
                    if data.meta and data.meta.rc and data.meta.rc == "ok" then
                        func(data)
                    else
                        -- error?
                    end
            end,
            function (err)
                if err.status == 401 then
                    -- do auth
                    local login = {username = username, password = password, strict = true}
                    self:unifiClient('https://' .. ip_address.. '/api/auth/login', json.encode(login), 
                        function (data) 
                                if data.meta and data.meta.rc and data.meta.rc == "ok" then
                                    print("login OK")
                                    self:getDevices(func)
                                end
                        end)
                end

    I don't get it, what exactly did you change to what? I am still not able to get it working on my dream machine

    Please login or register to see this attachment.

    Please login or register to see this attachment.

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