Page 1 of 1

Bluetooth to wake up a device

Posted: Monday 24 January 2022 4:13
by devinfarrell
Hi,

I'm an owner of a Sony AVR (STR DN1080) which can be woken up by bluetooth using my android phone (in the US, it can also be woken up by WOL packets, but such feature is disabled in Europe..).
I'd like to use my Domoticz and its host, a raspberry 3B+ (ie with bluetooth) to wake up the device, but I couldn't understand how to proceed with such bluetooth commands.
I could find the the wiki some scripts about detecting presence of bluetooth tokens (or devices), but I didn't understand if that's limited to presence detection or if it could be used to "discuss" with any bluetooth device. And I don't know either to iitiate a connection with a device.

On my android phone, to wake up my AVR, I only need to switch on bluetooth on my phone and select the Sony STR DN1080 in the list, so I guess there's no complex command other than the attachment to the device. (Not sure though on how to make the initial attachment with the raspberry pi: I did not understand that either on tutorials).

Any one could help me on what to intall on Rasp Pi and how to write scripts (or anyhting else) to attach to the device ?

Re: Bluetooth to wake up a device

Posted: Monday 24 January 2022 8:58
by waltervl
See for example https://forums.raspberrypi.com/viewtopic.php?t=214373

You need a bash script that will pair the device. That bash script you can set as on action (see wiki https://www.domoticz.com/wiki/Managing_ ... Off_Action ) to a dummy switch Push on Button (see wiki https://www.domoticz.com/wiki/Dummy_for ... l_Switches).