dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.7K
active users

#ble

0 posts0 participants0 posts today

#HomeAssistant dog owners, please help! I am getting a small dog and I am looking for a Bluetooth tag to attach to a dog collar. It should have a long battery life. I already use the Bermuda #BLE Trilateration integration for room presence so this one needs to work with that too (does it have to be iBeacon?). Should work locally. Also, I need a case that fits the tag and attaches to a dog collar. Ideally waterproof.

Any recommendations?

@homeassistant

Qu’il soit blanc, aux graines, complet ou bio, le pain est la star de nos repas. Mais tous, sans exception, contiennent des traces de cadmium : un métal lourd utilisé dans l’industrie.

« Pain, fruits, légumes : révélations sur un nouveau scandale alimentaire »
📺 #zoneinterdite en streaming sur M6+

m6.fr/zone-interdite-p_845/pai

I've not been great at documenting my #decemberadventure but finally finished my last post blog.solarcene.community/posts

I've spent the last few days in between family and work adding #Bluetooth (#ble) to my #Psion #Series5 by tapping into internal serial lines and then using a #hm-11 module. While it's not perfect it's really nice to be able to use the psion wirelessly. Next task is to increase the connection speed and fix the issue with a proxy server.

Flashing Xiaomi BLE sensors and integrating it in Home Assistant

There is no ‘too much’ temperature and humidity sensors, right? So I bough another 5 Xiaomi Mi BLE sensors (in Nov. 2024) model LYWSD03MMC I wanted to flash them OTA (over-the-air) with custom firmware as previous 7 sensor (bougth in 2022-23).

But why would I want to flash it with custom firmware? To connect it to my Home Assistant, of course. Stock firmware connects only to Xiaomi phone app.

But not so fast.

After I bought the sensors, I found out that OTA using the web flasher currently doesn’t work. Xiaomi updated the sensor’s firmware (2.1…), closed the loop hole and it can not be ‘activated’ and then flashed over-the-air anymore [see the debate on GitHub].

But smart people of internetz found the way to flash it via serial connection, usb2ttl adapter and some wires. Only the first flashing should be done with serial adapter.

The process

I downloaded this firmware: ATC_Thermometer.bin (rel. 79)

I dissasembled the device (T5 driver):

I connected DuPont wires to the USB2TTL adapter, the wires with crocodile clips to DuPont wires via some pins. I didn’t match the colours of the wires so I had to check 10 times which wire goes where. Amateur forever.

Moreover, I bought 3 slightly different usb2ttl adapters in a pack (in 2023) and only one (dark blue one, HW-597) worked for this specific flashing.

Then I connected:

USB2TTL adapter | Xiaomi sensor

GND –> battery middle connector (-),

+3V –> battery side connector (+),

Tx –> P14 (just held the white wire to the P14 dot while flashing, no soldering needed).

I used this serial flasher (works in Chrome, not in FireFox). All settings default.

After flashing (30 secs), I disconnect the cables, assembled the device and put the battery in.

When assembling the back side, you have to press it hard on 3 sides to hear ‘clicks’ on each side. Otherwise the board will not have a good contact with LCD display.

I observed the MAC address rotating at the startup and wrote it down:

MAC: A4:C1:38:XX:YY:ZZ

The first 3 numbers are always the same for all LYWs… sensors.

Opened the OTA Telink flasher. Clicked ‘connect’. A new window with BLE devices shows up. Select the correct device.

Then I configured it with the following settings:

  • Smiley: Comfort indicator
  • advertising: custom
  • Adv. interval: 1 min
  • Show battery: Enabled
  • Sensor instant advertising: temp 0,5 alarm, humi 5% instant alarm
  • Save current settings to flash

Then I went to Home Assistant ESPHome add-in and opened the yaml of my BLE proxy. Added the following code for each sensor:

...sensor:...- platform: atc_mithermometer    mac_address: "A4:C1:38:XX:YY:ZZ"    temperature:      name: "ATC 11 (ROOM NAME) Temperature"    humidity:      name: "ATC 11 (ROOM NAME) Humidity"    battery_level:      name: "ATC 11 (ROOM NAME) Battery-Level"    battery_voltage:      name: "ATC 11 (ROOM NAME) Battery-Voltage"    signal_strength:      name: "ATC 11 (ROOM NAME) Signal" ...

Saved, installed new firmware to my ESP32 BLE proxy.

Checked the ESP32 logs to see if it receives BLE data from new sensor:

All good!

Then I opened ESPHome integration in Home Assistant to check if new entities appeared. They have.

Looks like my ESP32 (Wroom, 2 core) can handle 11 Xiaomi BLE sensors + 1 BLE hand band (almost) without problems.

It outputs a yellow warning “… tracker tool a long time for an operation – 80ms“, but it isn’t noticable from HA perspective.

Integration to Home Assistant

No additional work here to be done. ESPHome integration adds the new entities from ESP32 BLE tracker automagically.

I’ve put one of my sensors to the attic, because I was always curious what’s the temperature there in winter and sommer. Moreover, I was interested in the difference of outside temperature and attic temperature.

The blue line is the attic temp., yellow and red are the outside temps:

What’s interesting is a phase shift of temperatures. Attic temp. follows outside temp. with small delay (2-3 hrs).

On average, attic temp is only 2-5C higher than outside temp. It’s not surprising, because there is 30cm of insulation on the attic floor.

Calculating difference of 2 temperatures

How did I calculated the difference of temperatures?

I’ve created a new helper, template sensor and entered the following code in template options/state template field:

{{ (states('sensor.atc_11_podstresje_temperature') | float(2) - states('sensor.toplotna_outside_temperature') | float(2)) | round (1) }}

[Thread on Fediverse]

TL;DR

  • Xiaomi MI BLE sensors are quite reliable, I use them for 2-3 years without issues
  • Flashing with serial adapter is not so difficult as I thought, no soldering is needed
  • Battery lasts almost a year
  • Didn’t try to flash them with zigbee firmware yet. As I read, it drains the battery faster and I don’t see any advantages over BLE.

Tags: #homeassistant #xiaomi #ble #esphome #esp32 #temperature #humidity

If you’re reading this on fediverse or RSS feed and the layout (embedded pics) is off or missing, here’s the link to the original blog post.

https://blog.rozman.info/flashing-xiaomi-ble-sensors-and-integarting-it-in-home-assistant/

The state of my Home Assistant in 2024

My #homeautomation journey started 4 yrs ago (2020) when I bought 1 Aqara #zigbee hub, 1 room temp. sensor and 1 smart socket (for controling the heating of the office). I started with Aqara app. with 1 automation: If office temp < 21 turn on the pump, if > 22 turn it off.

After some months I moved to Home Assistant (in 2022).

The state today (end of 2024) is somehow different:

  • Home Assistant system running in VirtualBox on an old i5 4GB RAM laptop
  • 24 zigbee devices
    • Sonoff Zigbee dongle (router for all zigbee devices)
    • Tuya 3 phase electricity meter (for measuring electricity consumption on all 3 mains)
    • 8 Tuya/Aqara/Elivco smart sockets (for monitoring the consumption of various individual devices like dishwasher, production of solar panels, controling central heating pump etc.)
    • 3 sonoff smart switches (for controlling bathroom exhaust fan, aquarium/terrarium lights and pumps, charging of tablet)
    • Aqara smoke detector
    • 3 Ikea movement sensors
    • Ikea air quality sensor (to improve our ventilation – window opening habits)
    • 2 Aqara door sensors
    • 1 Aqara temp/humidity sensor
    • 1 Aqara button
  • 11 BLE devices
    • Xiaomi Mi temperature/humidity sensors connected to ESP32 BLE proxy
    • all Xiaomi sensors flashed with custom firmware
  • 40 automations for (major functionalities):
    • Controlling bathroom exhaust fan and adopting humidity threshold to external humidity
    • Controlling office heating radiator (pump)
    • Unlocking front door via NFC stickers
    • Controlling and monitoring aqarium and terrarium lights/pump
    • Notifying if windows are opened too long
    • Front door ring bell notifications
    • Turning off TV and related devices at night
    • Monitoring solar panels output and export to grid, turning on various devices to minimize electricity export
    • Notifications in case of goind over max. ‘agreed’ grid power draw (>8,4kW)
    • Various notifications of 3D printer (too hot, finished)
  • Total: 1400 entities in #homeassistant
  • 1 main dashboard
  • ~40 other lovelace dashboards, for each room that has at least one device

That’s very brief description of my Home Assistant system at the end of 2024. I’m documenting the progress and the document is already 100 pages long.

Maybe it sounds a lot, but I feel I didn’t even scratched the surface.
Plz. send help 🙂

When I published this info on Fediverse, I found out there are people with far larger setups (200+ zigbee devices).

Good, it looks like I still have some self-control 🙂

Join the AHA (Anonymous Home Assistants 🙂 ) debate on Fediverse.

Tags: #homeassistant #zigbee #ble #selfhosting #wifi #esp32 #esphome #tuya #aqara

If you’re reading this on fediverse and the layout (embedded pics) is off, here’s the link to the original blog post.

https://blog.rozman.info/the-state-of-my-home-assistant-in-2024/

US #Army 17 Echo, formerly known as 96 "Fireman," a big "head" job at the Ft. McCoy electronic proving grounds for "Wireless Warfare in the Cities" "Homestation Training Lanes" where our houses are targets for their wireless attacks.

invidious.perennialte.ch/watch

That part of the clandestine Army murdered three sailors in Pensacola, FL.

They can also wirelessly damage CNS and critical organ systems.

---> see wireless #BLE #KEYSTROKE injection from defcon (took until 2022 for them to get to where the Army was in 2018 and before)

invidious.perennialte.ch/watch

#DefCon 30 - Jose Pico, Fernando Perera - Wireless Keystroke Injection via #BLE #Bluetooth

is a good demonstration of how insecure BLE is. The application layer can make up for insecurities in the network and lower level layers (e.g. Zimmerman doesn't require a BlackPhone hardware anymore just the Silent Circle app), hopefully, but BLE remains a problem. That is why I always remove the physical module. There is a way to passively (while powered off) destroy the LCD with BLE and other embedded antennas. Consumers do not have TEMPEST Shielded MIL-STD-461 standard equipment unfortunately and the DOD secret is out apparently on that offensive capability.