Bluetooth to wake up a device

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
devinfarrell
Posts: 1
Joined: Monday 24 January 2022 4:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Bluetooth to wake up a device

Post 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 ?
User avatar
waltervl
Posts: 5910
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bluetooth to wake up a device

Post 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).
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest