Bluetooth Tag and Home Assistant

Description

#itag #home_assistant #esp32
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:
https://www.youtube.com/channel/UCXRNO_06vrZ7MGvQvWZPQ3Q/join

Getting Started with ESPHome and Home Assistant:
https://esphome.io/guides/getting_started_hassio.html

ESPHome Repository:
https://github.com/esphome/home-assistant-addon

Buy me a Coffee:
https://www.buymeacoffee.com/kian.smarthome

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 #bluetooth_key_ring #itag_key_ring #ha #esphome #integration #esp #scene #automation #trigger_automation #trigger_scene #smart_home #home_automation #bms #iot #live_smart #security #peace #comfort #energy_saving #zwave #zigbee #wifi #tuya #rf #ir
Top Bottom
SiteLock