piBeacon: 3- presence monitoring download

Posted on
Mon Oct 10, 2022 3:34 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v2022.151.14@ 2022-10-10
===================================================
   
1. made switchbot operation work more smoothly, timing, error recovery ..

2. added an action that stops any switchbot actions pending on an rpi
   eg when you got multiple triggers and the first responding action worked, no need to have the action executed many times
     like when the door is open no need to trigger open magnet n times more 

3. added option in the switchbot action to have a sensor(BLE only) on one RPi that triggers
   a switchbot action on another (or same) rpi w/o indigo being up.
   the sensor RPI will send a command to the switchbot rpi through sftp
   eg a BLE sensor with button press signal (eg ibs04-button) can be received on rpi-1,
     rpi-1 sends a press/on command to rpi-2 for a switchbot to move the arm.
     Indigo is not involved.
     This is useful if the button is out of reach of the rpi where the switchbot is managed and indigo is down
   To setup create an action in indigo "Set switchbot relay to on/off or pulses.."

4. added option to have ON/OFF sensors stay longer ON for xx secs. Some of these sensors go from on-off within 0.2 secs.
   This gives the indigo dev state more time to show the ON state

5. added option for on/off sensor to show arbitrary text in display like moving / stopped etc.

6. added support for musegear finder beacons (regular, mini, wallet). They can be purchased from amazon in Europe
   They can be beeped (to find its location) and the plugin gets the battery level.
   They have the itrack software similar to Rinex, Njoii, Spotypal etc, which can be bought in the USA

6.1 added support for NUT-pro beacon (with beep command and battery read)

7. Added a virtual device "garage door". (similar to the virtual device Car)
   This dev type tracks the states of a garage door:
   Closed, opening, stopped, open, closing, position
   This device needs 3 on/off magnet sensors(eg switchbot connect) and several magnets
   The sensors are positioned at: at closed position, open position; on the moving door
   Magnets are at:
   - One on door, moving between open sensor and closed sensor to indicate open/closed.
   - Several magnets on the rail where the sensor on the door moves by and gets triggered by the magnets
     the magnets should be placed >1 "second" apart, something like 20-30 cm
     But the speed of the door changes, eg at close it slows down. There the magnets should be closer together
     But not too close as the sensor might not be ready for the next trigger
     With these magnets the plugin counts the magnets passed and calculates the current position (0-100%)

   The dev states used for the sensors are onoffState and one that indicates the moving changes
   eg lastMotion of the sensor that is mounted on the door.
 
8. for ADS-1115 ADC added samples per second option, removed un-used code and made differential measurement (eg input0 -input1) 
   a single measurement instead of 2 single and then subtract

Karl

Posted on
Sat Dec 03, 2022 1:47 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
1. made all major py programs on rpi run under python2 or python3
   py2 vs py3 can be selected in config for all rpi or left to each individual rpi
   in rpi dev edit the py version can be selected if in config it is set to individual rpi
    py3 requires pi-os >=10 (stretch ssd) to work properly
    On  pi-os 11 =  bullseye  python 2 is not fully supported anymore, the rpi  will automatically switch to py3 usage and
          will ignore any p2/py settings

   All required libs are installed by the plugin system (ie neopixel, sensor libs etc, see checkForInclude-py2/py3.py on the rpi
       eg   libs: io, hcidump, smbus2 pexpect, expect, ... , syntax changes:  / vs // (int//float), print /;print() etc
       the devil is in the details: 
        calling py3 modules can be different from py2 eg to make them "unlinked" /E option has to be used and many more "little" changes
        binary socket data transfer is different

   ==> this was a major pice of work <== 

   for ssd updates:  I suggest that you do
     1. updates apps and sys:
      sudo apt update
      sudo apt upgrade -y   ( or a more thorough, but mostly not needed:  sudo apt dist-upgrade  -y )
     2. cleanup:
      sudo apt autoremove
      sudo apt clean
     3. then reboot
     every 2 months to keep the security patches up to date

2. added option to detect new beacons looking at the manufacturer name in the BLE message. Some beacons send that info in their BLE msg
   some beacons like from NUT or april have several tag definitions, with this option you can catch them all
   the plugin will then find the proper individual tag that works for the soecific beacon type ie beep, battery, ..
   to use this: select in "accept new beacons" menu item

3. added TOF sensor vl503l1xDistance. It has range up to 4 m
   you now can use several of vl503l1x or vl503l0x tof sensors on one RPI

3. several smaller fixes and improvements

4. some menu fixes


Also a new SSD w pi-os-11 (bullseye) has been posted @ https://forums.indigodomo.com/viewtopic.php?f=187&t=15152 (first post in this thread)

Karl

Posted on
Tue Dec 06, 2022 3:27 pm
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v2022.160.15@ 2022-12-08
===================================================

1. fixed issues with py3 ie for BLE connect devices like xiaomi soil meter, Temp&Humidity sensors...

Posted on
Wed Dec 14, 2022 4:41 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v2022.160.16@ 2022-12-14
===================================================

1. improved switchbot response time by ~ 0.5 secs

Posted on
Sat Jan 14, 2023 3:29 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
Added features / changes in v2022.160.19@ 2023-01-14
===================================================
   
1. added option for each pi to ignore known_hosts for ssh and sftp to rpi
   this is to avoid needing to modify knownhostsfile incase of changes in ip number etc.

2. fixed pmairquality py2 -> py3 bug ( concatenate strings / bytes)
   sensor now only works with py3 !!

3. bug for sensor INPUTpulse, device statename was wrong (typo), fixed (bug was added in py2->py3 conversion (u"xxx" changed to  "uxxx" instead of "xxx"))


this should finalizes the py2 -> py conversion

Karl

Posted on
Tue Jan 24, 2023 7:48 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v2022.160.23@ 2023-01-24
===================================================

1. added feature kight rider for neopixel (swinging band of leds left right )

2. delay start time for gpio and i2c-relay: now checks ALSO during delay before any action if it should be cancelled
in general you can remove the previous command by issuing a new one
eg send 10 pulses 1 sec each and then an off after 5 secs, only 5 pulses will be done
before this it was only checking during the active part if it should stop.
... this matters only if you use a delay at start parameter

3. bug fix: File "plugin.py", line 6052, in filterNeopixeldevices
it is a format error

4. bug fix in config edit

5. some menu changes


Karl

Posted on
Wed Jan 25, 2023 6:25 am
kw123 offline
User avatar
Posts: 8111
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v2022.160.25@ 2023-01-25
===================================================

1. fixed bug introduced in v ..19, error setting up new RPI

Who is online

Users browsing this forum: No registered users and 15 guests