#Trigger actions over BLE

1 messages · Page 1 of 1 (latest)

digital grail
#

Is there any way for me to trigger my smart devices over BLE. I have HA running in a Docker container on a Raspberry Pi 4 B
I cant get it to use my built in Bluetooth, and cant seem to find anyone that is using Bluetooth to trigger actions

I have a Arduino sending commands out over Bluetooth LE, and I want the Raspberry Pi to trigger lights and curtains based upon the BLE signal
So the Arduino sends out a signal saying to turn on the lights in the living room, the raspberry pi is listening and triggers the lights
I can listen for the BLE over Python, but I cant get HA to do it

#

Im not cross posting, i was asked to post in here instead

leaden sorrel
fathom pawn
#

HA won’t do anything like that without a custom integration. AFAIK, there are none that exist like that.

digital grail
#

Is there no way to trigger an action through a python script running not inside of HA?

fathom pawn
#

You could by using the HA rest/websocket API from an external Python script.

digital grail
#

I'll look into that, thank you (any hints would be greatly appreciated)

fathom pawn
digital grail
#

I was looking at that, looks like events is what i am after

fathom pawn
#

Or aiohttp as well. Either way is fine.

digital grail
fathom pawn
digital grail
#

Oh, okay, i was setting up a Automation which does the action, and triggering it when a manual event is called

fathom pawn
#

Ah… ok. Yeah, that could work as well. There’s at least a half-dozen ways you could attack this. lol

digital grail
#

Alright, I'll give it a go, thanks for all the guidance

fathom pawn
#

Anytime! Good luck!

digital grail
#

It works

#

But the documentation definitely needs updating xD

manic lodge