piBeacon: 3- presence monitoring download

Posted on
Wed Jul 12, 2023 10:07 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Added features / changes in v2022.168.79 @ 2023-07-12
==================================================

1. added state: "lastBatteryReplaced" to devices that have a batteryLevel state.
it shows the date-time when the battery level went back from < 100 to 100 %
with this you can see when you replaced the battery.
this is also shown in the battery level report in menue / print various ...

Posted on
Fri Jul 14, 2023 9:21 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

dded features / changes in v2022.168.82 @ 2023-07-14
==================================================

1. added state: "lastBatteryReplaced" ...
.. now also supports beacons that do not broadcast their battery level, but also beacons that
have to be queried to get their battery status eg iTrack, musegear ..

Posted on
Sun Aug 20, 2023 11:36 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
added features / changes in v2022.169.84 @ 2023-08-20
==================================================

1.   general maintenance release
2.   added battery level to veg trug beacons
3.   added menu action to reset or calibrate co2 sensors sensirion scd30
     added device states to reflect calibration status


Posted on
Wed Aug 23, 2023 2:12 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
added features / changes in v2022.170.86 @ 2023-08-23
==================================================

1.   fixed bug introduced in v2022.169.84
     changed values (5 min, 10 min, 1 hour ...)  for temp humidity .. values did not update
2.   added sensirion scd40 41.. sensortypes they measure CO2 temp and hunidity, using i2c
     please get one with its own voltage regulator (eg adafruit.
     they draw 200mA when measuring and require a very stable voltage.
     And connect the V pin to +5V make sure you set V-i2c to 3V on the board)
     not fully tested, pre version
3.   optimized pi software updates

Posted on
Wed Aug 30, 2023 9:08 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
added features / changes in v2022.171.87 @ 2023-08-30
==================================================

1.   added option to use any GPIO on the rpi to read one wire sensor temperature (ie 18db20)
     you can now use all gpios to read multiple onewire sensors each
     so with > 10 gpios and 10 onewire sensors on each gpio it can go > 100.
     but reading one sensor takes ~ 1 secs. So for 100 that would take 100 secs.
     you need to add at the bottom of /boot/config.txt:
dtoverlay=w1-gpio
dtparam=gpiopin=26       <-- this will be  busmaster 4
dtoverlay=w1-gpio
dtparam=gpiopin=5
dtoverlay=w1-gpio
dtparam=gpiopin=17
dtoverlay=w1-gpio
dtparam=gpiopin=4        <-- this will be  busmaster 1
     that will result in GPIO 4,17,5, 26 be reading onewire temp sensors
     to edit config.txt do sudo nano /boot/config.txt  and add the lines
     with control-o and control-x  you can save and exit nano editor
     then reboot
     with    ls -o /sys/bus/w1/devices/  you can check if the busmaster channels 1.. 4 in this case are ready. you should see something like this:
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-000d770e64ff -> ../../../devices/w1_bus_master4/28-000d770e64ff
..
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-3ce10457da57 -> ../../../devices/w1_bus_master1/28-3ce10457da57
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-0516b33a17ff -> ../../../devices/w1_bus_master3/28-0516b33a17ff
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-3ce104570a38 -> ../../../devices/w1_bus_master2/28-3ce104570a38
...
lrwxrwxrwx 1 root 0 Aug 29 02:06 w1_bus_master1 -> ../../../devices/w1_bus_master1
     where 28-3ce10457da57 are the IDs of the one wire sensors

2. added "lastBatteryReplaced" state to isensor  devices
      they will show when the state "lowVoltage" went from empty to false or from true to false, ie when a new battery was added or when

3. fixed bug for iSensor On devices (door button): the dev state onOffstate ui value was always "on". the onOffState itself was correct.

Posted on
Tue Nov 07, 2023 12:38 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

added features / changes in v2022.171.88 @ 2023-11-07
==================================================

highlight: With eg = 10 gpios and 10 onewire sensors on each gpio the rpi can read 100 one wire sensors

Code: Select all
1.   added option to use any GPIO on the rpi to read one wire sensor temperature (ie 18db20)
     you can now use all gpios (20+) to read multiple onewire sensors each
     you need to set the GPIOs in device edit for the RPI as it is set for all onewire sensors on that RPI
   With eg = 10 gpios and 10 onewire sensors on each gpio it can read 100 sensors
     with    ls -o /sys/bus/w1/devices/  you can check if the busmaster channels are ok. You should see something like this:
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-000d770e64ff -> ../../../devices/w1_bus_master4/28-000d770e64ff
..
lrwxrwxrwx 1 root 0 Aug 29 02:06 28-3ce104570a38 -> ../../../devices/w1_bus_master2/28-3ce104570a38
...
lrwxrwxrwx 1 root 0 Aug 29 02:06 w1_bus_master1 -> ../../../devices/w1_bus_master1

     where 28-3ce10457da57 are the IDs of the one wire sensors

    added option to use a relay to reset the onewire setup (eg to disconnect power from the onewire sensors). Set this in RPI device edit
    added option to reboot the RPI if reading onewire sensors is not successfull for xx read tries
    It takes about 1 secs to read a sensor. With 10 sensors on one GPIO it would take about 11 secs to read 100 sensors with 10 GPIOs

2. fixed bug for iSensor On devices (door button): the dev state onOffstate ui value was always "on". the onOffState itself was correct.

3. added "lastBatteryReplaced" state to isensor  devices
      they will show when the state "lowVoltage" went from empty to false or from true to false, ie when a new battery was added
 
4. changed state lastBatteryUpdate:
  was: if new batterylevel ==100 and old < 100: set lastBatteryUpdate to current date
  now: added if lastBatteryUpdate is empty set to current date.
  if the battery level is less than 100 when you start the plugin you might need to wait for a loooong time before this state gets set ie if the battery live is 2 years
  this now gives you at east some date (when you load this plugin)

5. added device types:
   MMK  beacons, must be configured with iphone app KBeaconpro. These devices transmit TML (google def) packages
   they can be configured to send different packges of data.
   you need to setup these diffent packages (called slots in KBeaconpro)
   add one slot for each package, single, double, long press and if available for Temp/hum/acceleration
   set Namespace ID to 1 for single press, 2 for double press, 3 for long press
   then set trigger advertisement to "trigger only"  and "trigger by" to single, double long press respectively

   A) SOS button can be used for eg a door buton, indigo can then trigger on button press, double press, long press

   B) rechargeable beacon with ALSO temp,hum,acceleration info.
 
   It is a little tricky to setup but works well



Karl

Posted on
Sat Jan 13, 2024 4:41 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

added features / changes in v2022.173.89 @ 2024-01-13
==================================================
Code: Select all
1. added Thermopro beacon & sensors

2. added Shelly BLU button and Motion and Window sensor
   this is a newer line of SHELLY products that use BLE to communicate. They Broadcast various infos:
   battery level, button:press/short/double/tripple/long, illuminance (in Lux), door open/closed/ rotation, motion.
   some of them can beep, but only thru the shelly phone app shelly BLU
   YOU MUST SETUP EACH DEVICE IN THAT APP AND ENABLE broadcast (BC) and disable encryption

   you can add them with menu/accept new beacons.. selcet the proper shelly dev type.
   then a beacon device is created as well as a sensor device that shows the open/close montion/. button press. values.
   you need to edit the created sensor device to select the proper RPi to be used to trac the button info. you can select several RPi to do this.

   with a single shelly button device you can trigger up to 4 actions in indigo. (press/double/tripple/long press)
   trigger on dev/state[on/offstate] == True, then with condition dev/state[currentEvntType]  == press/ double_press/ tripple_press / long_press
   then you can have ONE button that can eg: open house/ garage/ light on/ away

   the beacon behaves like a regular beacon (although it broadcast alive only every 8 secs, otehr beacosn every second or faster)
       it hence can be used as "present" indicator like all otehr beacons
   
3. fixed state indicator red/green/grey for delayed action (eg button press goes green but never grey.. afetr x seconds as intended). It was always set to sensor ON

!!! IMPORTANT !!!
4. fixed issue for python2 installs on rpi w older ssd image:  removed new format statement that only work under py3: f" {xx}" replaced by " {}.format(xx)"
if you are using an older RPI image w/o python3 as default (older than 2022) PLEASE install this version. beacon detection will not work otherwise
 

Karl

Posted on
Mon Jan 22, 2024 3:29 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
added features / changes in v2022.174.89 @ 2024-01-22
==================================================

1. now supports RPI opsys bookworm - 32 bit version, released in Dec 2023
  it was a little bit of work to make everything work again.
  behaviour of links between programs programs changed, ie sudo python xxx.py now requires sudo python xx.py & to invoke
  previously  xxx.py canceled the sudo process w/o impaction xxx.py. That is not true anymore. It is used quit extenisveley in pibeacon
  Several other chnages required modigications
  NO  python2 programs are available, everything is now py3 o the new RPI OP sys

2. you now can use the regular RPI SD IMAGE INSTALLER tool to create your SD.
   see     >>>        https://forums.indigodomo.com/viewtopic.php?f=187&t=15482&p=109421#p109421  <<<
   The plugin will auto install all needed software and set all required configs on the RPI

==> I will not supply a precanned image anymore to be copied onto the SD
    you can now create that yourself. It is actually more user friendly.

In the future I will need to stop supporting py2 compatibility.
That means new plugin versions MIGHT not run on older SD versions anymore.
This one still does, but might be the last one. I hope you understand.

Karl

Posted on
Tue Jan 30, 2024 5:30 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

added features / changes in v2022.174.90 @ 2024-01-31
==================================================

1. fixed menu/ send .. to rpi/ "restart master on rpi through ssh" did not work

2. added a check around debugRPI, it now makes sure that the variable is properly set, even if not initialized


Karl

Posted on
Tue Feb 13, 2024 2:04 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

added features / changes in v2022.175.90 @ 2024-02-13
==================================================

1. added precision temperature sensor tmp117

2. some py3 fixes on rpi, to import adafruit libraries

Posted on
Wed Feb 14, 2024 5:01 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

Code: Select all
added features / changes in v2022.175.91 @ 2024-02-13
==================================================
1. fixed for older rpi images install of tmp177 library
   the pip3 environment changed with os v rpi of 12
   with v 11 it is
      sudo pip3 install  adafruit-circuitpython-tmp117
   with v 12:
      sudo pip3 install --break-system-packages adafruit-circuitpython-tmp117


available at:https://github.com/kw123/pibeacon/releases/tag/2022.175.91

Posted on
Sun Feb 25, 2024 4:01 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

in how to .. ssd there is cn important change:

previously it stated which RPI you select to download the proper OS doe not matter, instead:

1. RPI device >> IT MATTERS WHICH RPI YOU SELECT<< not all OS run on all RPI, older RPi do not run on OS 12, bookworm does not run on rpi0w first version, RPI1, and RPI2

Karl

Posted on
Sun Feb 25, 2024 4:01 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

in how to .. ssd there is cn important change:

previously it stated which RPI you select to download the proper OS doe not matter, instead:

1. RPI device >> IT MATTERS WHICH RPI YOU SELECT<< not all OS run on all RPI, older RPi do not run on OS 12, bookworm does not run on rpi0w first version, RPI1, and RPI2

Karl

Posted on
Fri Mar 29, 2024 6:10 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: piBeacon: 3- presence monitoring download

added features / changes in v2022.175.93 @ 2024-03-26
==================================================

1. NaN == "Not a Number"
Replaced any "NaN" received from an RPI sensor to -9999
This is not a problem for any std pibeacon or sensor data. Only if you use a user extension (your own program) that can create a NaN.
A sensor might return an error when reading , that in turn could lead to a NaN.
In all data from std sensors I have converted a read error to a "bad Sensor" message or a -999 or a -9999 data element
Indigo has serious issues with NaN data in some funtions, hence the new filter.
This has happened to one user and if you dont know about it you are not impacted.

2. Added Switchbot curtain version 3 support
The version 3 has a changed ble handler (0x08->0x10) and a new device id (c -> { )

Who is online

Users browsing this forum: No registered users and 14 guests