piBeacon:15- device type CAR
piBeacon:15- device type CAR
starting with v 7-37-37 the plugin supports a device type = CAR
1. create a device plugin = pibeacon, type = CAR, eg Volvo or Moms car ...
2. select
(A) a battery type beacon (i.e. with AAA battery), place that beacon in the CAR (fixed)
(B) a USB powered beacon put into USB output in CAR
(C) 0-3 beacons attached to your car keys (eg xy) The CAR device will have 3 states with the following values:
(a) LOCATION= HOME/ AWAY
(b) ENGINE = ON/OFF/""
(c) MOVING = STOP/LEAVING/LEFT/ARRIVING Conditions for the states:
LOCATION:
-HOME: if Beacons A or B or all C are UP (at least one of the beacon is how so the car must be home)
-AWAY: if Beacons A and B and one of C are down (none of the beacons is home)
ENGINE:
ON if beacon B is on
OFF if beacon B is off
"" if STATUS =AWAY
Moving:
- STOP if home and Beacon B = off (HOME and car is off = must be home standing)
- LEAVING if HOME and Beacon B = ON ( car is home and battery beacon or key is on and USB key comes on. = home starting engine --> must be leaving)
- LEFT if AWAY (no beacon visible so car must be gone)
- ARRIVING if AWAY and any beacon on (was away, have detected at least one beacon so it must come home)
the state "status can be set to show either one or 2/3 of the states described above.
This can be used to detect your CAR(s) home/ away, coming home, leaving ..
It utilizes "fastDown" option for the beacons: if a beacon does not send a signal for x seconds the RPI will send a "fastDown" message to the plugin. for the status to go down ALL RPI must send the fastDown signal.
This is in contrast to not sending anything to the plugin and the plugin will set the beacon status to Down after seconds expiration time.
This will allow a faster reaction time. The fastDownTime used here is 15 seconds. You can manually adjust it for each beacon in beacon device edit. Increase if you have just one RPI, or you could go down to 10 seconds if you have 10 beacons. But you might get some false positives.
Karl
1. create a device plugin = pibeacon, type = CAR, eg Volvo or Moms car ...
2. select
(A) a battery type beacon (i.e. with AAA battery), place that beacon in the CAR (fixed)
(B) a USB powered beacon put into USB output in CAR
(C) 0-3 beacons attached to your car keys (eg xy) The CAR device will have 3 states with the following values:
(a) LOCATION= HOME/ AWAY
(b) ENGINE = ON/OFF/""
(c) MOVING = STOP/LEAVING/LEFT/ARRIVING Conditions for the states:
LOCATION:
-HOME: if Beacons A or B or all C are UP (at least one of the beacon is how so the car must be home)
-AWAY: if Beacons A and B and one of C are down (none of the beacons is home)
ENGINE:
ON if beacon B is on
OFF if beacon B is off
"" if STATUS =AWAY
Moving:
- STOP if home and Beacon B = off (HOME and car is off = must be home standing)
- LEAVING if HOME and Beacon B = ON ( car is home and battery beacon or key is on and USB key comes on. = home starting engine --> must be leaving)
- LEFT if AWAY (no beacon visible so car must be gone)
- ARRIVING if AWAY and any beacon on (was away, have detected at least one beacon so it must come home)
the state "status can be set to show either one or 2/3 of the states described above.
This can be used to detect your CAR(s) home/ away, coming home, leaving ..
It utilizes "fastDown" option for the beacons: if a beacon does not send a signal for x seconds the RPI will send a "fastDown" message to the plugin. for the status to go down ALL RPI must send the fastDown signal.
This is in contrast to not sending anything to the plugin and the plugin will set the beacon status to Down after seconds expiration time.
This will allow a faster reaction time. The fastDownTime used here is 15 seconds. You can manually adjust it for each beacon in beacon device edit. Increase if you have just one RPI, or you could go down to 10 seconds if you have 10 beacons. But you might get some false positives.
Karl
Re: piBeacon:15- device type CAR
One item i need to improve:
sequence of beacon coming on/ off line. They might be just a second apart: eg
battery beacon comes online first then the USB that would result in a state HOEM, then "leaving" not "arriving" the other way around would it work fine..
Need to add short timers and controls to make sure that these things are handled correctly.
In other words not just current state but also last state has to be taken into account.
will take a day or so.
Karl
sequence of beacon coming on/ off line. They might be just a second apart: eg
battery beacon comes online first then the USB that would result in a state HOEM, then "leaving" not "arriving" the other way around would it work fine..
Need to add short timers and controls to make sure that these things are handled correctly.
In other words not just current state but also last state has to be taken into account.
will take a day or so.
Karl
Re: piBeacon:15- device type CAR
posted v 7-37-40.
improved the flow and timing of the states, added state indicators etc to the layout. And have removed the "beta"
Karl
improved the flow and timing of the states, added state indicators etc to the layout. And have removed the "beta"
Karl
Re: piBeacon:15- device type CAR
This is how the data looks when leaving and when arriving
Code: Select all
id | ts | engine | motion | status | location
-----+----------------------------+--------+----------+----------------------+----------
134 | 2017-01-16 21:46:35.244983 | off | stop | home/off/stop |
135 | 2017-01-17 14:03:49.225078 | on | leaving | home/on/leaving |
136 | 2017-01-17 14:04:35.525524 | | left | away//left | away
137 | 2017-01-17 15:01:56.764415 | off | arriving | home/off/arriving | home
138 | 2017-01-17 15:01:56.939498 | on | | home/on/arriving |
139 | 2017-01-17 15:02:39.540619 | off | stop | home/off/stop |
Re: piBeacon:15- device type CAR
Hi Karl, Which USB beacons work for (B)? I have a ZUS that lives in the car and is charged on USB, but as it has a battery that is recharged, I am not sure it will change behaviour with engine on or off?
Thanks
simon.
Thanks
simon.
Re: piBeacon:15- device type CAR
you need one w/o battery to detect motor on/off and put it into a usb port that switches of when the keys are out.
do menu/basic setup help.
it gives you an overview of ... and beacons tested and ... ( several pages)
the feasy USB has an antenna ~ 3time distance reach, and the simplest is the radius USB beacon for that purpose.
Karl
do menu/basic setup help.
it gives you an overview of ... and beacons tested and ... ( several pages)
the feasy USB has an antenna ~ 3time distance reach, and the simplest is the radius USB beacon for that purpose.
Karl
Re: piBeacon:15- device type CAR
This plugin just gets better and better. Got a feasy USB beacon and a feasy white triangle now in the car (Zus been repurposed) and this works great.
Re: piBeacon:15- device type CAR
I use one if the beacons that come with 3 /4 aaa batteries- instead of the feasy triangle. Those beacons last for MANY years (>4 right now, still plenty of juice left)
Though they are large
The signal strength is the same though
Karl
Is and thanks for the nice feedback. Feels good
Sent from my iPhone using Tapatalk
Though they are large
The signal strength is the same though
Karl
Is and thanks for the nice feedback. Feels good
Sent from my iPhone using Tapatalk
Re: piBeacon:15- device type CAR
I couldn’t find one of those in UK Amazon. Will look harder.kw123 wrote:I use one if the beacons that come with 3 /4 aaa batteries- instead of the feasy triangle. Those beacons last for MANY years (>4 right now, still plenty of juice left)
Though they are large
The signal strength is the same though
Karl
Is and thanks for the nice feedback. Feels good
Sent from my iPhone using Tapatalk
Re: piBeacon:15- device type CAR
I bought one from a Uk dealer Beaconzone
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: piBeacon:15- device type CAR
Cheers. They say they only supply to businesses
Re: piBeacon:15- device type CAR
You do have a business ?!
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: piBeacon:15- device type CAR
And you can try
RadBeacon E4
Also do menu print help.
That gives you a list of tested beacons w battery size
Karl
Sent from my iPhone using Tapatalk
RadBeacon E4
Also do menu print help.
That gives you a list of tested beacons w battery size
Karl
Sent from my iPhone using Tapatalk
piBeacon:15- device type CAR
And your business name is clark-motion 
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: piBeacon:15- device type CAR
True... however for now I will see how I go with the Feasy triangle.