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

Geolocation in LUA - multiple triggers to define home profile / Geolokalizacja w LUA - wiele wyzwalaczy w celu zdefiniowania profilu domu


Question

Posted

I've been looking for answers in this forum for a long time, but unfortunately couldn't find anything, so it's time to open a new thread.

I am using a solution in which the departure of users outside the home, triggers changing profile to AWAY. This profile turns off the lights, deactivates scenes with sensors (I have cats, so I don't want them to turn on the lights in my absence), change the temperature, etc. I do it through a series of scenes in which each of the family members activates the value of a variable dedicated to him. The cluster of variable values gives me a general presence in the house.
It looks like this in short:
1. If the user 1 enters the location of the HC3, the variable A changes to 1.
2. If the user 2 enters the location of the HC3, the variable B changes to 1.
3. If the variable A OR the variable B = 1, the variable of presence at home changes to 1 and switches the profile to HOME
4. If the variable A AND the variable B = 0, the variable of presence at home changes to 0 and switches the profile to AWAY.
In addition, I also use the Internet weather to determine whether the heating is to be turned on or not and at what temperature (which is included in the next two variables and added as conditions to the above).
This is troublesome as I have to create many, many scenes to achieve automatic profile switching.

QUESTION - can anyone tell me how to use geo localization triggers in a LUA on action side so that I can include it all in one scene?

 

I'm pretty new to LUA so forgive me in advance.

 

_____________________________________

Szukałem odpowiedzi na tym forum przez długi czas, ale niestety nic nie znalazłem, więc pora otworzyć nowy wątek.

Korzystam z rozwiązania w którym wyjazd użytkowników poza dom uruchamia przełączenie profilu na AWAY. Ten profil powoduje wyłączenie świateł, deaktywację scen z czujnikami (mam koty więc nie chcę aby włączały światła pod moją nieobecność), zmianę temperatury itd. Wykonuję to poprzez szereg scen w których każdy z domowników aktywuje wartość dedykowanej dla siebie zmiennej. Zlepek wartości zmiennych daje mi ogólną obecność w domu.
Wygląda to w skrócie tak:
1. Jeśli użytkownik 1 wjeżdża do lokalizacji centrali to zmienna A zmienia się na 1.
2. Jeśli użytkownik 2 wjeżdża do lokalizacji centrali to zmienna B zmienia się na 1.
3. Jeśli zmienna A LUB zmienna B = 1 to zmienna obecności w domu zmienia się na 1 i przełącza profil na HOME
4. Jeśli zmienna A ORAZ zmienna B = 0 to zmienna obecności w domu zmienia się na 0 i przełącza profil na AWAY.
Dodatkowo używam jeszcze internetowej pogody do tego aby ustalić czy ogrzewanie ma być włączone czy nie oraz na jaką temperaturę (co zawarte jest w dwóch kolejnych zmiennych i dodane jako warunki do powyższych).
Jest to kłopotliwe, ponieważ muszę stworzyć wiele, wiele scen aby osiągnąć automatyczne przełączanie profili.

PYTANIE - czy ktoś może mi powiedzieć jak użyć wyzwalaczy lokalizacji po stronie akcji w scenie LUA, abym mógł zawrzeć wszystko w jednej scenie?

 

Jestem dość świeży w LUA więc z góry wybaczcie moje pytania..

3 answers to this question

Recommended Posts

  • 0
Posted
4 hours ago, matnowys said:


This is troublesome as I have to create many, many scenes to achieve automatic profile switching.

QUESTION - can anyone tell me how to use geo localization triggers in a LUA on action side so that I can include it all in one scene?

 

I'm pretty new to LUA so forgive me in advance.

Instead of creating many many scenes please try to use geolocation of

Please login or register to see this link.

Just in one line you can do everything you need and no LUA knowledge required.

It's probably sounds as advertising, but some users think it does the job

 

  • 0
  • Inquirer
  • Posted
    6 godzin temu, cag014 napisał:

    Instead of creating many many scenes please try to use geolocation of

    Please login or register to see this link.

    Just in one line you can do everything you need and no LUA knowledge required.

    It's probably sounds as advertising, but some users think it does the job

     

    Thanks for your reply. Can you tell me in few simple steps how to start this? Cause thread that you've send looks a lil bit overwhelming for me :)  (126 pages ? )

    • 0
    Posted (edited)
    2 hours ago, matnowys said:

    Thanks for your reply. Can you tell me in few simple steps how to start this? Cause thread that you've send looks a lil bit overwhelming for me :)  (126 pages ? )

    Just follow the procedure...

     

    Install QuickApp , define credentials of your HC3 as "home" controller:

    jSlave={
        
            home={user="admin",passwd="admin",ip="10.0.0.0",slaveApiTime=600}  
            }
    It should start to run...

    Please read GPS user guide...

    Let me know  when AOQ is running and will help you to configure geolocation according to your needs...  or any other configuration that you might need.

    In addition you can ask users in the thread for help as well

     

    Edited by cag014
    • Like 1

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