Giter VIP home page Giter VIP logo

Comments (6)

shogunxam avatar shogunxam commented on August 18, 2024 1

I will see what I can do during the Xmas holidays 🎄 😃

from esp32_bletracker.

shogunxam avatar shogunxam commented on August 18, 2024 1

I hope this can satisfy your request, for now is only in the develop branch
Runtime settings

from esp32_bletracker.

shogunxam avatar shogunxam commented on August 18, 2024

Yes this is a good idea for further improvements.
Bay the way the scan interval can be changed changing the macro

#define BLE_SCANNING_PERIOD 10

in the config.h

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on August 18, 2024

Yes, I know that. It was just easier to configure via the web interface, and then every time you fill in a sketch because of the settings, it's not very convenient. Let's say I already set up everything, but then I bought another BLE tracker and to add it to the white list, I will have to fill in the sketch again with code editing.

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on August 18, 2024

I really liked your firmware. Before I found your firmware, I tried the firmware on github of different authors and everything is wrong. It would be great if you improve your firmware. For example, add the function of scanning phones (if possible), then there will be more opportunities, because someone will use trackers, someone phones. I have my own YouTube channel about smart home and I'm going to tell you about your firmware on my channel. Bluetooth tags, this is an important function for determining the home friend or foe. A smart home can identify its owner by scanning a phone or tracker, but almost everyone has phones, and not everyone has trackers + they are not reliable, often break down or the battery runs out at the wrong time.

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on August 18, 2024

Thanks). I tried adding in home assistant and everything works fine. I did not write everything in the configuration file configuration.yaml, and everything was taken out separately. Created the includes folder and bin_sensor and sensors subfolders. Inside them, I created two ble_tracker files.yaml where I added the code and also created a separate mqtt file for MQTT

It looks like this for me
04_HA

In the configuration file configuration.yaml inserted these lines
binary_sensor: !include_dir_merge_list includes/bin_sensor
sensor: !include_dir_merge_list includes/sensors/

01_HA
02_HA
03_HA

In the folder HomeAssistant\includes\bin_sensor\ble_tracker.yaml
#####BLE Tracker#####
#Binary Sensors to resolve unknown device state
#######################
#Check BLETracker state

  • platform: mqtt
    name: BLETracker_state
    state_topic: 'home/BLETracker/LWT'
    payload_on: "online"
    payload_off: "offline"
    device_class: "connectivity"

In the folder HomeAssistant\includes\sensors\ble_tracker.yaml
#####BLE Tracker#####
#Sensors

  • platform: mqtt
    state_topic: 'home/BLETracker/mac'
    name: 'BLETracker_Redmond_state'
    value_template: "{{ value_json.state }}"
    expire_after: 120
    force_update: true

  • platform: mqtt
    state_topic: 'home/BLETracker/mac'
    name: 'BLETracker_Redmond_battery'
    value_template: "{{ value_json.battery }}"
    force_update: true

In the folder HomeAssistant\includes\sensors\mqtt.yaml
#####BLE Tracker#####

  • platform: mqtt
    name: "BLETracker_Redmond"
    state_topic: "home/BLETracker/mac/state"
    availability_topic: "home/BLETracker/LWT"
    expire_after: 300
    value_template: >-
    {% if value == 'on' %}
    home
    {% elif value == 'off' %}
    away
    {% else %}
    away
    {% endif %}

from esp32_bletracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.