Incorrect Variable count

Posted on
Tue Oct 31, 2017 5:44 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Incorrect Variable count

Hi Karl,

This isn't directly related to the latest version of the plugin. I use the group count for myself and my wife to show that we're either home or away. I realised that I wasn't getting notifications when we were both away. I updated the plugin just to see if the problem was still there and it is. I can't say when this exactly happened - at the moment we're both home and showing "Up" however the Group 3 (which we're both in) is showing 1 Home and 1 Away.
Any suggestions as to what's going on?

Posted on
Tue Oct 31, 2017 9:41 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Incorrect Variable count

is there another group member?

one home means at least one home, one away is at least one away. So if you have 3 that might explain it.. just a guess... will check it out


Karl

Posted on
Tue Oct 31, 2017 10:39 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Incorrect Variable count

I fixed an issue for wifi devices , could you try v.63.

tested with one/two/three members .. the variables as well as the events behaved as they should.
==> could you post the group part of "print config" that shows the group members for each group... need to look at the config to check paraemerts..

Karl

Posted on
Wed Nov 01, 2017 6:53 am
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Incorrect Variable count

See below. I've updated the plugin and I'm connecting remotely at the min. Both phones are expired but the variable is still 1/1.
Code: Select all
                                   -------Group members ---------------
                                   members in group: Group3
Colins iPhone                ,Anita's iPhone               
                                   UniFi  =============plugin config Parameters========  END

Posted on
Wed Nov 01, 2017 10:27 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Incorrect Variable count

don't see what is wrong..

could you go into device edit and set the group memberships once more, then save for both devices? (...fishing in the dark..)


Karl

Posted on
Wed Nov 01, 2017 12:37 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Incorrect Variable count

OK so I edited both devices and moved them to Group 2. I'm at home now and my wife isn't. Group 2 Var hasn't updated - something strange going on.
I had previously set up a set of variables myself which update based on either phone being expired. These still work... :?

Posted on
Wed Nov 01, 2017 1:19 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Incorrect Variable count

Problem sorted!
I've 2 sets of automatically created variables - 1) Unifi-Count-Group2-Home and 2) Unifi_Count_Group2_Home.
Set 2) works and Set 1) doesn't. I guess that came with a previous update and I was referencing the wrong variable in my Trigger.
Thanks for your help all the same.

Posted on
Wed Nov 01, 2017 1:53 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Incorrect Variable count

good, I was worry I had a deep coding problem ..

Karl

Posted on
Wed Nov 01, 2017 2:28 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Incorrect Variable count

No such problem. I take it I should delete those old variables.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest