Bluetooth Tag and Home Assistant

Sdílet
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

Komentáře • 29

  • @kaif.5365
    @kaif.5365 Před rokem +1

    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.

  • @sarasagar76
    @sarasagar76 Před 2 lety +1

    Good explanation video.
    Thanks sir.
    I watch your every video..

  • @setmane
    @setmane Před 2 lety +1

    Thk you. All good for you

  • @ngoctaiquach3144
    @ngoctaiquach3144 Před 2 měsíci

    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!

    • @kian.smarthome
      @kian.smarthome  Před 2 měsíci

      Are you sure you install the correct driver and you have CP2102?

    • @ngoctaiquach3144
      @ngoctaiquach3144 Před 2 měsíci

      @@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.

  • @stanislavgadjunk6544
    @stanislavgadjunk6544 Před 2 lety

    I will try to use iTag to control the garage door in the way you show

    • @richi718
      @richi718 Před rokem

      Did it work? Try to automate my garage door to.

  • @fawad.rashid
    @fawad.rashid Před 8 měsíci

    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 ?

  • @ngoctaiquach3144
    @ngoctaiquach3144 Před 2 měsíci

    Can I add another itag?

  • @djseber3357
    @djseber3357 Před rokem

    Is there an option to have bluetooth always on?

    • @kian.smarthome
      @kian.smarthome  Před rokem

      Bluetooth is always on. May I know what exactly are you looking?

    • @97Giorgos97
      @97Giorgos97 Před 7 měsíci

      @@kian.smarthome He probably means keeping the Bluetooth "on" on the iTag. (As far as I know there's no way)

    • @kian.smarthome
      @kian.smarthome  Před 7 měsíci

      @@97Giorgos97 Yes, You are right,There is no way to change it on the Tag.

  • @gOrLaMiii
    @gOrLaMiii Před rokem

    nothing shows up in logs after i click the button on the itag to retrieve the mac address! already tried 2 itags.

    • @iMxXxMi
      @iMxXxMi Před rokem

      Yep, same

    • @kian.smarthome
      @kian.smarthome  Před rokem +1

      @@iMxXxMi check wiring and pins and Also power of the Board

    • @iMxXxMi
      @iMxXxMi Před rokem +1

      @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.

    • @michaelluger2127
      @michaelluger2127 Před rokem +2

      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.

    • @kian.smarthome
      @kian.smarthome  Před rokem

      @@iMxXxMi can't consider it as problem. It's Bluetooth range!