CichY
25 Lipiec 2020 12:22
21
Po dodaniu do configuration.yaml poniższych informacji:
“- platform: miflora
mac: ‘xx:xx:xx:xx:xx:xx’
name: Mi Flora 1”
o czujniku “Mi Flora” i sprawdzeniu konfiguracji otrzymuje komunikat błędu:
“Platform error sensor.miflora - Requirements for miflora not found: [‘bluepy==1.3.0’].”
Po wydaniu poniższych poleceń pojawiają się również błędy.
sudo apt-get install python-pip libglib2.0-dev
sudo pip install bluepy
W jaki sposób należy prawidłowo zainstalować bluepy aby poprawnie obsłużyć czujniki “Mi Flora” ?
Nie wiem, u mnie integracja zrobiona za pomocą ESPHome. Za pośrednika między Mi-flora a HA robi moduł ESP32, który ma oprócz Wi-fi również BT.
CichY
25 Lipiec 2020 13:12
23
U mnie bramką wi-fi bluetooth jest “XIAOMI Qingping Blueooth WIFI Gateway”.
Jeśli chcesz użyć tej integracji:
to ona sprzętowo chodzi po Bluetooth.
HA a raczej host gdzie jest HA, musi mieć Bluetooth. Jako, że bramka AIS nie ma Bluetooth na pokładzie użyłem ESP32.
Można by spróbować z jakimś adapterem Bluetooth wpinanym pod USB w bramce. Wówczas wspomniana integracja Mi Flora miała by prawo zadziałać. Pod warunkiem posiadania prawidłowych bibliotek i uprawnień dla obsługi sprzętowej na bramce AIS.
Rozwiązanie z ESP32 pod kontrolą ESPHome pozwala na obsługę wielu urządzeń zarówno po BT jak i Wi-fi.
Jak możesz zauważyć powyżej, u mnie dodatkowo podpoiłem czujnik BME280. Można dodać termometry Xiaomi po BT czy inne urządzenia. Wszystko spina jeden węzeł ESPHome, czyli jeden moduł ESP32.
CichY
25 Lipiec 2020 17:11
26
Posiadam bramkę AIS z wbudowanym bluetooth (na samym początku były dwie wersje do wyboru). Dlatego chciałbym sprawdzić czy po instalacji bluepy to mi zadziała.
Być może ta bramka “Qingping Blueooth WIFI” jest zbudowana w oparciu o ESP32 - tego nie wiem. Z jednej strony łączy się po WiFi (posiada swój adres IP) a z drugiej strony łączy się z urządzeniami bluetooth takimi jak m.in. mi flora i czujnik temperatury i wilgotności.
Cytiję za autorem blogu Hej Dom:
Ten punkt robimy tylko i wyłącznie gdy mamy alternatywną instalację HA
Przyznaj uprawnienia do bezrootowego dostępu do interfejsu HCI w języku Python: sudo setcap ' cap_net_raw, cap_net_admin + eip ' ' readlink -f \
which python3 ’ '`
Sprawdzić: sudo getcap
readlink -f `which python3```
Link do źrudla integracji dla tej platformy:
# Xiaomi passive BLE Monitor sensor platform
<!-- TOC -->
- [Introduction](#introduction)
- [Supported sensors](#supported-sensors)
- [How to install](#how-to-install)
- [Configuration](#configuration)
- [Configuration variables](#configuration-variables)
- [Frequently asked questions](#frequently-asked-questions)
- [Credits](#credits)
- [Forum](#forum)
<!-- /TOC -->
## INTRODUCTION
This custom component is an alternative for the standard build in [mitemp_bt](https://www.home-assistant.io/integrations/mitemp_bt/) integration that is available in Home Assistant. Unlike the original `mitemp_bt` integration, which is getting its data by polling the device with a default five-minute interval, this custom component is parsing the Bluetooth Low Energy packets payload that is constantly emitted by the sensor. The packets payload may contain temperature/humidity/battery and other data. Advantage of this integration is that it doesn't affect the battery as much as the built-in integration. It also solves connection issues some people have with the standard integration (due to passivity and the ability to collect data from multiple bt-interfaces simultaneously). Read more in the [FAQ](https://github.com/custom-components/sensor.mitemp_bt/blob/master/faq.md#why-is-this-component-called-passive-and-what-does-it-mean).
## SUPPORTED SENSORS
This file has been truncated. show original
Zobacz alternatywne możliwości.
Zobacz dział FAQ dla tej integracji.
Opisane są problemy z instalacją. Wydaje mi się, że chodzi o wersję Python.
# Frequently asked questions
## Table of contents
<!-- TOC -->
- [Why is this component called “passive” and what does this mean](#why-is-this-component-called-passive-and-what-does-this-mean)
- [INSTALLATION ISSUES](#installation-issues)
- [I get a PermissionError in Home Assistant after the installation](#i-get-a-permissionerror-in-home-assistant-after-the-installation-or-python-upgrade)
- [How do I find the number of the HCI interface?](#how-do-i-find-the-number-of-the-hci-interface)
- [How can I create a battery sensor?](#how-can-i-create-a-battery-sensor)
- [RECEPTION ISSUES](#reception-issues)
- [My sensor doesn't receive any readings from my sensors anymore or only occasionally](#my-sensor-doesnt-receive-any-readings-from-my-sensors-anymore-or-only-occasionally)
- [How to increase coverage](#how-to-increase-coverage)
- [My sensor's BLE advertisements are encrypted, how can I get the key?](#my-sensors-ble-advertisements-are-encrypted-how-can-i-get-the-key)
- [OTHER ISSUES](#other-issues)
- [Conflicts with other components using the same BT interface](#conflicts-with-other-components-using-the-same-bt-interface)
- [My sensor stops receiving updates some time after the system restart](#my-sensor-stops-receiving-updates-some-time-after-the-system-restart)
- [My sensor from the Xiaomi ecosystem is not in the list of supported ones. How to request implementation?](#my-sensor-from-the-xiaomi-ecosystem-is-not-in-the-list-of-supported-ones-how-to-request-implementation)
- [TIPS AND TRICKS](#tips-and-tricks)
- [How to know exactly if the reception of data from my sensors has stopped?](#how-to-know-exactly-if-the-reception-of-data-from-my-sensors-has-stopped)
This file has been truncated. show original