Windows 10 iBeacon scanning to send alert to HA

I run HA in a docker container in a Ubuntu VM running in Hyper-V. I’m trying to use Bluetooth Beacons and I got a beacon setup that my phone can find, but I can’t get my server to see it.

I tried using “Bluetooth Beacon Interactor” from Windows Store but it says >>

image

Does anybody have any suggestions? Something I can enable in Windows or a way to use PowerShell maybe (probably ideal would be a powershell script that just continuously runs)

I was able to get this working via NirSoft’s BlueToothCL.exe and a powershell script to search for the MAC availability and post to a “WebHook_ID” to run my “Home” automation. This won’t work for “away”, but I have existing measures for that call and just wanted quicker/better home detection.

PowerShell script:

function Test-BTMacSearch {
        param (
            [String]
            $MAC,
            [int]
            $TIMEOUT
        )
        IF (!$TIMEOUT) {$TIMEOUT = 15}
        $searchresults = BlueToothCL -timeout $TIMEOUT | Select-String -Pattern $MAC
        IF ($searchresults -ne $null) {return $TRUE} ELSE {return $FALSE}
}
$MAC = "##:##///"
$TIMEOUT = "10"
$WebHookURL= "https://freesoftwareservers.com/api/webhook/webook_id"
$BeaconMacFound = $False
WHILE ($BeaconMacFound -ne $TRUE) {
$BeaconMacFound = Test-BTMacSearch -MAC $MAC -TIMEOUT $TIMEOUT
Write-Host "BeaconMacFound = $BeaconMacFound"
 If ($BeaconMacFound -eq $True) {
  Write-Host "BeaconMacFound True Statement Running"
  Invoke-WebRequest -Uri $WebHookURL -Method POST
  sleep 1800 #Sleep 30 Minutes
  $BeaconMacFound = $False #NeverEnding Loop $BeaconMacFound will always = $False at start of While Loop
 }
}

See my blog for more details --> https://www.freesoftwareservers.com/display/FREES/Search+for+iBeacons+-+BLE+-+via+PowerShell+-+Home-Assistant+Presence+Detection+-+Windows