Bluetooth Tag and Home Assistant
Vložit
- čas přidán 8. 09. 2024
- #ideas #homemade #diy
Pair iTag bluetooth key ring with ESPHome using ESP32 boards in Home Assistant then control automations and scenes.
Invitation Link to join my Exclusive membership:
/ @kian.smarthome
Getting Started with ESPHome and Home Assistant:
esphome.io/gui...
ESPHome Repository:
github.com/esp...
Buy me a Coffee:
www.buymeacoff...
Lines/Codes:
Assign Static IP:
manual_ip:
static_ip: 192.168.1.20
gateway: 192.168.1.1
subnet: 255.255.255.0
esp32_ble_tracker:
ble_client:
Replace with the MAC address of your device.
- mac_address: FF:FF:13:A3:BD:80
id: itag_red
binary_sensor:
- platform: template
id: red_button
name: "Red iTag Button"
filters:
delayed_off: 200ms
- platform: ble_presence
mac_address: FF:FF:13:A3:BD:80
name: "iTag"
sensor:
- platform: ble_client
ble_client_id: itag_red
name: "Red iTag btn"
service_uuid: 'ffe0'
characteristic_uuid: 'ffe1'
notify: true
internal: true
update_interval: never
on_notify:
then:
- binary_sensor.template.publish:
id: red_button
state: ON
- binary_sensor.template.publish:
id: red_button
state: OFF
- platform: ble_client
ble_client_id: itag_red
name: "Red iTag Battery"
service_uuid: '180f'
characteristic_uuid: '2a19'
icon: 'mdi:battery'
unit_of_measurement: '%'
#bluetooth #integration #esp #scene #automation #smart_home #home_automation #iot #energy_saving #wifi #tuya #rf #ir #itag #home_assistant #esp32 #tutorial
Great tutorial, but I would suggest to add "device_class: connectivity" to the
- platform: ble_presence
mac_address: FF:FF:13:A3:BD:80
name: "iTag"
part. Doing so will show the iTag as "connected" or "disconnected" in Homeassistant.
Good explanation video.
Thanks sir.
I watch your every video..
Thanks a million
Thk you. All good for you
You're welcome
At 7:22 in your video, the CP2102 USB port appears... Mine shows the CC2538 USB CDC port, which should be the same port as yours (in my laptop's device manager it's CP2102). What should I do? Please help. Thank!
Are you sure you install the correct driver and you have CP2102?
@@kian.smarthome To be exact, I have installed the CP2102 driver. When installing ble proxy, connect to CP2102. But for some reason, when I add the line "esp32_ble_tracker" and select the option to connect to the computer, it shows port CC2538. So after installation, a message appears that the port is wrong.
I will try to use iTag to control the garage door in the way you show
Did it work? Try to automate my garage door to.
I have multiple bluetooth proxies setup in home assistant can i add these lines you have show in these proxies and do i need to add these to each bluetooth proxy ?
yes.
@@kian.smarthome By yes do you mean I have to add these lines in each Bluetooth proxy ?
@@fawad.rashid That is a Yes.
Can I add another itag?
Yes, you can
Just copy and paste related codes for tag
Is there an option to have bluetooth always on?
Bluetooth is always on. May I know what exactly are you looking?
@@kian.smarthome He probably means keeping the Bluetooth "on" on the iTag. (As far as I know there's no way)
@@97Giorgos97 Yes, You are right,There is no way to change it on the Tag.
nothing shows up in logs after i click the button on the itag to retrieve the mac address! already tried 2 itags.
Yep, same
@@iMxXxMi check wiring and pins and Also power of the Board
@kian.smarthome I've managed to grab the mac address using an app on my phone called EFR Connect. I've a question tho. im only getting about 2-3 meters range. What do you recommend using to bump the range to like 30-100 meters? Is that even possible! maybe with different esp32 models? Or is it a range problem with the itag itself.
same here: I think it has to do with "logger:" settings very verbose, or just verbose... I'll check if that helps when I get a chance.
@@iMxXxMi can't consider it as problem. It's Bluetooth range!