Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents
Revision 2 as of 2021-04-14 17:57:21
MeidokonWiki:
  • HomeAssistant

I have Hass running on an RPi3 at home, not doing much at the moment though.

Contents

  1. Hardware
  2. Software
  3. Beaconing
    1. Scanning and detecting beacons

Hardware

RPi3 type B

Software

I'm running Hass.io because it's easymode.

Beaconing

General notes: https://www.home-assistant.io/blog/2016/04/30/ibeacons-part-1-making-presence-detection-work-better/

So it can do some interesting things, but it's especially good for presence detection and the like.

There's a bunch of libraries for supporting it in various forms, etc:

  • https://www.home-assistant.io/components/sensor.eddystone_temperature/

  • https://www.home-assistant.io/blog/2016/04/30/ibeacons-part-1-making-presence-detection-work-better/

  • https://developers.google.com/beacons/eddystone#beacon_manufacturers

  • https://en.wikipedia.org/wiki/Facebook_Bluetooth_Beacon

  • https://shop.ruuvi.com/product/ruuvitag/

  • https://github.com/beaconinside/awesome-beacon

Scanning and detecting beacons

apt install python3-pip
apt install python3-pil
apt install python-smbus i2c-tools
apt install vim
apt install chrony
apt install dnsutils
apt install python-gpiozero festival
apt install python-alsaaudio
apt install python3-gpiozero
apt install python3-alsaaudio
apt install tcpdump
apt install bluez-tools
apt install bluez-hcidump

apt install python3-pip python3-pil python-smbus i2c-tools vim chrony dnsutils python-gpiozero festival python-alsaaudio python3-gpiozero python3-alsaaudio tcpdump bluez-tools bluez-hcidump


activate_beacon.sh

#!/bin/bash

sudo hciconfig hci0 down
sudo hciconfig hci0 up
sudo hciconfig hci0 leadv 3
sudo hciconfig hci0 noscan

#                                                      COMP.ID    LEN    UUID                                                   MAJ   MIN   POWER  EOF
#sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00   02 15     E2 0A 39 F4  73 F5  4B C4  A1 2F  17 D1 AD 07 A9 61    42 42 69 69 CC     00
sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00   02 15     28 F3 7A B2  A4 FB  57 E9  BD 7D  DA F9 A4 A4 F4 D6    42 42 69 69 CC     00
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.