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


Recommended Posts

Posted

@jgab have something changed in iOSLocator.lua? This 2 lines does not work any more.

Please login or register to see this code.

 

  • Topic Author
  • Posted
    4 minutes ago, jompa68 said:

    @jgab have something changed in iOSLocator.lua? This 2 lines does not work any more.

    Please login or register to see this code.

     

    Nop, nothing changed in that logic.

    Do you see that IOSLocator sends the event to your scene (in IOSLocator's log) ?

     

    Posted

    Ah, sorry. Did play around with 2 different versions of rule, so typo error. All ok now.

    Please login or register to see this image.

    /monthly_2019_06/1260602554_Skrmavbild2019-06-23kl_20_20_05.png.26f75d6533b1e1b3f929fca27089ae91.png" alt="1260602554_Skrmavbild2019-06-23kl_20_20_05.png.26f75d6533b1e1b3f929fca27089ae91.png" />

    Posted
    7 hours ago, Sjakie said:

    I feel myself at the center of the Forrest without any navigation.

    What did I do (wrong)?

    First, you have a telegram bot if i understand it right. Have you fill in your telegram token and chatID in Node-Red?
    I have created a group for my bot so i use this group chatID in NR

    Posted

    Hello Jompa,

    Yes I have a TelegramBot.

    The connection error is solved ( I copied your Nodes in my file)

    I see also on scene 1608: Got back Test (in Yellow color) >>>>>how to use this in a rule?

    In NodeRed I dont see any errors in Debug

    So a part is working, thanks for that.

    How to get that message also on >>>>>>>my phone via Telebot??

    Please advice

     

    Posted

    Create a telegram group and invite your account and your bot. Change chat I'd so it match group instead

    Posted

    Hello Jompa,

    I created a group in TelegramBot and modified ID in GroupsID.

    From ER scene TelegramBot message 23.00>>>> to mobile  did not see it in debug Node Red

     

     

     

    Please login or register to see this attachment.

    Posted

    @Sjakie send me you NR flow (export) so i can take a look. Send it in private, perhaps in a txt file.

    Posted
    13 hours ago, jgab said:

    Nop, nothing changed in that logic.

    Why does this rule not work?

     

    Please login or register to see this code.

    When all iOS devices is away from home, this should run. 

  • Topic Author
  • Posted (edited)
    10 minutes ago, jompa68 said:

    Why does this rule not work?

     

    Please login or register to see this code.

    When all iOS devices is away from home, this should run. 

     

    Do you get the event to your scene? (_debugFlags.triggers=true)

    Does the IOSLocator send the event? (_debugFlags.fother=true and scene logs fibaro:startScene(...) )

    Do you subscribe to the event or have you configured what scene to send to in IOSLcator/HT ?

    Edited by jgab
    Posted (edited)
    15 minutes ago, jgab said:

     

    Do you get the event to your scene? (_debugFlags.triggers=true)

    Does the IOSLocator send the event? (_debugFlags.fother=true and scene logs fibaro:startScene(...) )

    Please login or register to see this code.

    Above is from iOSLocator

    and below is from my alarm scene

    Please login or register to see this code.

    i am already away from home so when she did leave it should trigger "allaway" (what i think)

     

    Please login or register to see this code.

     

    Edited by jompa68
  • Topic Author
  • Posted
    13 minutes ago, jompa68 said:

    Please login or register to see this code.

    Above is from iOSLocator

    and below is from my alarm scene

    Please login or register to see this code.

    i am already away from home so when she did leave it should trigger "allaway" (what i think)

     

    Please login or register to see this code.

     

    First it seems like you get 2 events when Mona is away. Do you still have the

    Please login or register to see this code.

    as part of the HT/configuration? Then you will get an event from that + from the subscription .

    Have the IOSLocator detected that you are away? Or do you still have that Mona email adress as a user also?

    When it starts up it logs "User:..", can you check that you only have 2 users, you and Mona?

     

    From the "client" scene you can do

    Please login or register to see this code.

    and it will re-send all user+locations it knows about. It can be a way to debug it. (one #location event per user it knows about)

    Make it an "Telegram" rule so you can ask who it knows about when you don't get the status you expect.

     

    I will update IOSLOcator with some better debug statements but while you wait for that you can add a debug statement in IOSLocator. Around line 260 there is the code

    Please login or register to see this code.

    add the last 

    Please login or register to see this code.

    that gives some info if it doesn't think that anyone is home or all are away... #locations are how many locations it has detected so far.. #iUsers are the number of registered users. homeFlag is the previous status (true someone is at home), and home is the new detected status.

    Posted

    Implemented

    Please login or register to see this code.

     

    New error that i have not seen before, perhaps after update?

     

    Please login or register to see this image.

    /monthly_2019_06/image.png.9677490d3e2a1ff19db36c542720377a.png" alt="image.png.9677490d3e2a1ff19db36c542720377a.png" />

  • Topic Author
  • Posted (edited)
    24 minutes ago, jompa68 said:

    Implemented

    Please login or register to see this code.

     

    New error that i have not seen before, perhaps after update?

     

    Please login or register to see this link.

     

    Ok, it was a bug in IOSLocator. I fixed it and hopefully allaway will work now. pushed new version. B7.

    The other error was because a line had disappeared from last eventrunner, have no idea how that happened. I pushed new version B59.

    Edited by jgab
    • Like 1
    Posted

    You are the best! :D

    Posted

    @jgab if my alarm scene restarts for some reason, when it starts again it never trigger/checks state of presence again. Want scene to arm alarm again if it have been temporary disarmed. (by dog or cat movement)

    Please login or register to see this code.

     

  • Topic Author
  • Posted

    Ok, I think I fixed it - but I have no chance to test it at the moment. B8)

    If you subscribe to #presence

    Please login or register to see this code.

    you should at startup get the latest #presence event from IOSLocator (if IOSLocator hasn't yet polled all users to decide if they are home or away the event will come later).

    Posted

    This is what i have now but i never see state='allaway' in debug

     

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    18 hours ago, jompa68 said:

    This is what i have now but i never see state='allaway' in debug

     

    Please login or register to see this code.

     

     

    Fixed in B9. Still works?

    Posted
    Just now, jgab said:

    Fixed in B9. Still works?

    Yes, all ok now

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