esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
293 stars 36 forks source link

Esphome stops tracking Xiaomi MiFlora devices - not sending updates to HA #348

Closed dgtal1 closed 5 years ago

dgtal1 commented 5 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

HA in Docker. Esphome installed in Windows 10 with pip

ESP (ESP32/ESP8266, Board/Sonoff):

ESP32 WROOM DEVKIT V1 https://www.aliexpress.com/item/32849567377.html?spm=a2g0s.9042311.0.0.579e4c4dpgaE7U

Affected component:

https://esphome.io/components/sensor/xiaomi_miflora.html?highlight=miflora

Description of problem: Yesterday suddenly the ESP32 BLE tracker stopped tracking my MiFlora device. Home Assitant shows its sensors as 'Unavailable' and the history graph shows just a horizontal line as no new values are pushed by the tracker. The MiFlora device is fully functional as I'm able to connect to it with my smartphone and see current readings. The ESP32 board is also fine I guess - it tracks MiJia temperature and humidity without any problems. The BLE signal range is not a problem either. I put it next to the ESP board and still no luck getting it work again. I restarted the ESP32 - didn't help. I did a new OTA upgrade - didn't help either. I added this workaround with the restart switch - didn't help. Restarting doesn't help in general. Today I switched from MQTT to the native API - didn't help.

In the logs I see that the tracker receives the mesages from MiFlora, but does not push it to HA either via MQTT or the API.

If this matters - my ESP32 board is a tracker for 1 MiFlora device and 1 MiJia device + reads 3 ADC inputs. I wanted to add more MiFlora devices but now I'm in doubts if this makes sense as the 1st one stopped working suddenly and noting helps.

Problem-relevant YAML-configuration entries:

esphome:
  name: sensors_tracker
  platform: ESP32
  board: esp32doit-devkit-v1

wifi:
  ssid: 'XXXX'
  password: 'XXXXX'

ota:
  password: 'xxxxxxxxxx'

# Enable logging
logger:

esp32_ble_tracker:

sensor:
  - platform: xiaomi_miflora
    mac_address: C4:7C:8D:65:FC:33
    temperature:
      name: "MiFlora Trawa Temperature"
    moisture:
      name: "MiFlora Trawa Moisture"
    illuminance:
      name: "MiFlora Trawa Illuminance"
    conductivity:
      name: "MiFlora Trawa Soil Conductivity"
    battery_level:
      name: "MiFlora Trawa Battery Level"

  - platform: xiaomi_miflora
    mac_address: C4:7C:8D:65:FB:D5
    temperature:
      name: "MiFlora Tuje Temperature"
    moisture:
      name: "MiFlora Tuje Moisture"
    illuminance:
      name: "MiFlora Tuje Illuminance"
    conductivity:
      name: "MiFlora Tuje Soil Conductivity"

  - platform: xiaomi_mijia
    mac_address: 4C:65:A8:DB:DB:A6
    temperature:
      name: "Garaz Temperature"
      filters:
      - sliding_window_moving_average:
          window_size: 3
          send_every: 3
    humidity:
      name: "Garaz Humidity"
    battery_level:
      name: "Garaz Battery Level"

  - platform: adc
    pin: GPIO34
    name: "esp32_swiatlo"
    update_interval: 60s
    attenuation: 11db

  - platform: adc
    pin: GPIO35
    name: "esp32_gleba"
    filters:
      - sliding_window_moving_average:
          window_size: 12
          send_every: 12
      - lambda: return (3.9 - x);
    update_interval: 5s
    attenuation: 11db

  - platform: adc
    pin: GPIO32
    name: "esp32_deszcz"
    update_interval: 60s
    attenuation: 11db

api:  

time:
  - platform: sntp
    on_time:
      - seconds: 0
        minutes: 0
        hours: 12
        days_of_week: MON-SUN
        then:
          - switch.toggle: restart

switch:
  - platform: restart
    name: "ESP32 garaz restart"
    id: restart

Traceback (if applicable):

[10:25:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:25:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.39V
[10:25:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:25:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:26:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:16][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:26:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.14V
[10:26:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.35V
[10:26:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:26:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:00][I][ota:152]: Boot seems successful, resetting boot loop counter.
[10:27:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:27:04][10:27:04][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=108┬ÁS/cm
[10:27:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:15][D][api:073]: Disconnecting aioesphomeapi (192.168.0.13)
[10:27:15][D][api:546]: Client 'Home Assistant 0.93.1 (192.168.0.13)' connected successfully!
[10:27:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:29][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:27:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:27:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:38][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.6°C, humidity=58.4%
[10:27:38][D][sensor.sensor:100]: 'Garaz Temperature': Sending state 22.60000 °C with 1 decimals of accuracy
[10:27:38][D][esp32_ble_tracker:431]: Found device 4C:65:A8:DB:DB:A6 RSSI=-96
[10:27:38][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:27:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.46V
[10:27:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:27:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
WARNING Disconnected from API.
INFO Connecting to sensors_tracker.local:6053 (192.168.0.25)
INFO Successfully connected to sensors_tracker.local
[10:27:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:28:01][D][api:073]: Disconnecting Home Assistant 0.93.1 (192.168.0.13)
[10:28:03][D][api:073]: Disconnecting aioesphomeapi (192.168.0.13)
[10:28:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.05V
[10:28:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.46V
[10:28:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:28:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:29:02][D][api:546]: Client 'Home Assistant 0.93.1 (192.168.0.13)' connected successfully!
[10:29:04][10:29:04][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=106┬ÁS/cm
[10:29:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
WARNING Disconnected from API.
INFO Connecting to sensors_tracker.local:6053 (192.168.0.25)
INFO Successfully connected to sensors_tracker.local
[10:29:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:23][D][api:073]: Disconnecting aioesphomeapi (192.168.0.13)
[10:29:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.03V
[10:29:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.47V
[10:29:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:29:52][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.5°C
[10:29:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:30:01][D][esp32_ble_tracker:165]: Starting scan...
[10:30:03][D][esp32_ble_tracker:431]: Found device 45:C2:A1:E4:22:F3 RSSI=-84
[10:30:03][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:30:05][D][esp32_ble_tracker:372]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got illuminance=5412lx
[10:30:05][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FC:33 RSSI=-88
[10:30:05][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:30:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:09][D][esp32_ble_tracker:431]: Found device 60:AD:6B:96:6E:32 RSSI=-81
[10:30:09][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:30:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:28][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.5°C, humidity=58.3%
[10:30:28][D][esp32_ble_tracker:431]: Found device 4C:65:A8:DB:DB:A6 RSSI=-95
[10:30:28][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:30:29][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.5°C
[10:30:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.05V
[10:30:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.47V
[10:30:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:30:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:31:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:20][D][esp32_ble_tracker:431]: Found device 4B:72:4E:91:CF:FE RSSI=-82
[10:31:20][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:31:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.04V
[10:31:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.47V
[10:31:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:31:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:32:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:29][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.5°C
[10:32:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.03V
[10:32:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.44V
[10:32:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:32:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:33:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:33:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.42V
[10:33:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:33:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:34:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:29][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.5°C
[10:34:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.08V
[10:34:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.46V
[10:34:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:34:53][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:34:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:35:01][D][esp32_ble_tracker:165]: Starting scan...
[10:35:03][D][esp32_ble_tracker:431]: Found device 4B:72:4E:91:CF:FE RSSI=-92
[10:35:03][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:35:05][10:35:05][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:35:05][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FC:33 RSSI=-86
[10:35:05][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:35:05][D][esp32_ble_tracker:431]: Found device 45:C2:A1:E4:22:F3 RSSI=-87
[10:35:05][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:35:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:09][D][esp32_ble_tracker:431]: Found device 57:FD:C8:2D:3A:E6 RSSI=-88
[10:35:09][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:35:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.06V
[10:35:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.53V
[10:35:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:35:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:36:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:18][10:36:18][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:36:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:36:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.63V
[10:36:43][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.5°C, humidity=58.4%
[10:36:43][D][esp32_ble_tracker:431]: Found device 4C:65:A8:DB:DB:A6 RSSI=-97
[10:36:43][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:36:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:36:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:37:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:30][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:37:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.02V
[10:37:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.72V
[10:37:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:37:53][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.4°C
[10:37:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:38:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:17][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:38:18][10:38:18][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:38:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.03V
[10:38:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.72V
[10:38:42][D][esp32_ble_tracker:372]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got illuminance=7138lx
[10:38:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:38:59][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.5°C, humidity=58.4%
[10:38:59][D][sensor.sensor:100]: 'Garaz Temperature': Sending state 22.50000 °C with 1 decimals of accuracy
[10:39:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:39:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:30][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:39:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.18V
[10:39:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.74V
[10:39:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:39:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:40:01][D][esp32_ble_tracker:165]: Starting scan...
[10:40:05][D][esp32_ble_tracker:431]: Found device 57:FD:C8:2D:3A:E6 RSSI=-85
[10:40:05][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:40:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:06][D][esp32_ble_tracker:431]: Found device 4B:72:4E:91:CF:FE RSSI=-83
[10:40:06][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:40:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:30][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.5°C
[10:40:30][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FC:33 RSSI=-89
[10:40:30][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:40:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.06V
[10:40:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.63V
[10:40:42][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.5°C, humidity=58.4%
[10:40:42][D][esp32_ble_tracker:431]: Found device 4C:65:A8:DB:DB:A6 RSSI=-95
[10:40:42][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:40:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:40:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:41:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.06V
[10:41:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.74V
[10:41:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:41:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:42:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.12V
[10:42:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=0.96V
[10:42:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:42:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:43:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:17][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.7°C
[10:43:20][D][esp32_ble_tracker:357]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got temperature=22.5°C, humidity=58.6%
[10:43:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.22V
[10:43:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=1.32V
[10:43:42][10:43:42][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:43:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:43:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:44:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:30][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.7°C
[10:44:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.01V
[10:44:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=1.94V
[10:44:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:44:54][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:44:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:45:01][D][esp32_ble_tracker:165]: Starting scan...
[10:45:04][D][esp32_ble_tracker:431]: Found device 4B:72:4E:91:CF:FE RSSI=-81
[10:45:04][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:45:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:09][D][esp32_ble_tracker:431]: Found device 57:FD:C8:2D:3A:E6 RSSI=-91
[10:45:09][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:45:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:45:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.32V
[10:45:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:45:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:46:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:16][D][esp32_ble_tracker:431]: Found device 72:7C:1B:A7:CA:75 RSSI=-82
[10:46:16][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:46:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:19][10:46:19][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=109┬ÁS/cm
[10:46:19][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FC:33 RSSI=-89
[10:46:19][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:46:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.01V
[10:46:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.15V
[10:46:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:46:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:47:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:31][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:47:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:47:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.07V
[10:47:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:47:54][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.8°C
[10:47:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:48:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:19][10:48:19][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:48:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.07V
[10:48:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.12V
[10:48:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:49][D][esp32_ble_tracker:366]: Xiaomi MiJia 4C:65:A8:DB:DB:A6 Got battery level=85%
[10:48:49][D][esp32_ble_tracker:431]: Found device 4C:65:A8:DB:DB:A6 RSSI=-96
[10:48:49][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:48:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:48:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:49:05][10:49:05][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FB:D5 Got soil conductivity=251┬ÁS/cm
[10:49:05][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FB:D5 RSSI=-95
[10:49:05][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:49:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:06][10:49:06][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=107┬ÁS/cm
[10:49:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.02V
[10:49:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.18V
[10:49:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:49:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:50:01][D][esp32_ble_tracker:165]: Starting scan...
[10:50:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:06][D][esp32_ble_tracker:431]: Found device 72:7C:1B:A7:CA:75 RSSI=-82
[10:50:06][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:50:08][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:50:08][D][esp32_ble_tracker:431]: Found device C4:7C:8D:65:FC:33 RSSI=-87
[10:50:08][D][esp32_ble_tracker:452]:   Address Type: PUBLIC
[10:50:09][D][esp32_ble_tracker:431]: Found device 57:FD:C8:2D:3A:E6 RSSI=-91
[10:50:09][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:50:10][D][esp32_ble_tracker:431]: Found device 53:7D:8A:79:A1:D3 RSSI=-87
[10:50:10][D][esp32_ble_tracker:452]:   Address Type: RANDOM
[10:50:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:50:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=1.99V
[10:50:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:50:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:51:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.16V
[10:51:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.10V
[10:51:43][10:51:43][D][esp32_ble_tracker:375]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got soil conductivity=106┬ÁS/cm
[10:51:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:51:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:01][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:01][D][sensor.sensor:100]: 'esp32_gleba': Sending state -0.00000 V with 2 decimals of accuracy
[10:52:06][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:07][D][esp32_ble_tracker:372]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got illuminance=8258lx
[10:52:08][D][esp32_ble_tracker:369]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got moisture=28%
[10:52:11][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:16][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:21][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:26][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:31][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:31][D][esp32_ble_tracker:360]: Xiaomi MiFlora C4:7C:8D:65:FC:33 Got temperature=18.9°C
[10:52:35][D][sensor.adc:087]: 'esp32_deszcz': Got voltage=0.00V
[10:52:36][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:41][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:41][D][sensor.adc:087]: 'esp32_swiatlo': Got voltage=2.20V
[10:52:46][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:51][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V
[10:52:56][D][sensor.adc:087]: 'esp32_gleba': Got voltage=3.90V

Additional information and things you've tried:

OttoWinter commented 5 years ago

Is it really "Unavailable" ? Or just "unknown". If it's unavailable that means that HA can't connect to the ESP. For that please look in the HA logs (and paste them here).

Also try removing the ESP from the integrations screen and re-adding it.

dgtal1 commented 5 years ago

Yes, all sensors related to this MiFlora device are shown as 'Unavailable' in HA. The ESP surly does connect to HA as it sends readings of the ADC inputs and the MiJia device. I also added my 2nd MiFlora and its readings are sent to HA. No problem here. It's just this one MiFlora that is not being pushed to HA. The initial warnings in logs are probably related to HA restart I made to get rid of the old entities coming from MQTT. Before I switched from MQTT to the API I observed the MQTT debug messages from the ESP and I observed no status updates from this device despite the fact that the ESP does receive the messages from MiFlora. I can see that in the logs (attched in the original post). So all I can think of is not a problem in HA <-> ESP communication, but with the ESP software.

dgtal1 commented 5 years ago

Update: I removed all sensors from the config leaving only the failing MiFlora and got it working again. Also noticed in the integrations screen that the entity name was changed. Now I'm not sure any longer if this is esphome or HA bug. Perhaps something screwed up in the entity registry in HA. But this does not explain no messages observed in the MQTT client. I'm sure I didn't make any OTA yesterday nor changed something in HA. Sort of a "X-Files" case ;) Well, let me observe it for a couple of days perhaps and if it'll be running find - I'll close this issue. Thanks for the immediate reply.

zbuh commented 5 years ago

I'm facing the same situation, it keep running for about 24h, then it stops updating Mifloras. I placed a restart switch on ESP32 yaml, and remotely restart it... it then starts updating again...

dgtal1 commented 5 years ago

Yesterday I was about to close this issue, but it happened to me again. Something's wrong with Esphome. This time the entities did not appear as 'Unavailable', so HA was ok. It must have been something wrong with esphome. The weird thing is that I setup automatic restart every 24 hours, which happens at noon (12:00) and the time when the tracker stopped working was 2 hours later. Only 2 hours after the automatic restart. The rest of the entities (ADC inputs) were tracked fine all the time, no interruptions, so ESP32 as a whole was working fine. Only BLE devices were not updated - neither Mi Flora, nor MiJia temp sensor. So there is something wrong with the BLE tracker. Restarting the ESP32 programatically ( a switch wuth latform: restart) solved it.

zbuh commented 5 years ago

Thats exactly what I'm facing. I also setup a restart at 00:00 to minimize this issue.

OttoWinter commented 5 years ago

In that case I'm marking this as a duplicate of https://github.com/esphome/issues/issues/317 and merging the discussions there. - unavailable would mean HA cannot connect to the ESP, unknown is the thing described in #317