esphome / issues

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

ESP32 WiFi Signal and Uptime broken #459

Closed Xeroxxx closed 5 years ago

Xeroxxx commented 5 years ago

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

Hass.io

ESP (ESP32/ESP8266, Board/Sonoff):

ESP32: esp-wrover-kit

Affected component:

Uptime and WiFi Signal

Description of problem:

Uptime and WiFi Signal is broken. They do not report to Hass.io via Hass.io API.

image

Problem-relevant YAML-configuration entries:

PASTE YAML FILE HERE

Traceback (if applicable):


  - platform: uptime
    name: ESPFlora Uptime

  - platform: wifi_signal
    name: ESPFlora WiFi Signal
    update_interval: 120s

switch:
  - platform: restart
    name: ESPFlora Restart

binary_sensor:
  - platform: status
    name: ESPFlora Status

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: !secret esp_ota

ota:
  password: !secret esp_ota

Additional information and things you've tried:

OttoWinter commented 5 years ago

Works fine here - please attach Home Assistant logs and logs from the device.

Xeroxxx commented 5 years ago

Any other logs to check?

Nothing is listed in homeassistant log /config/home-assistant.log

[16:02:41][I][app:101]: esphome version 1.14.0-dev compiled on Jun 18 2019, 09:53:22
[16:02:42][C][wifi:392]: WiFi:
[16:02:42][C][wifi:274]:   SSID: [redacted]
[16:02:42][C][wifi:275]:   IP Address: 
[16:02:42][C][wifi:277]:   BSSID: [redacted]
[16:02:42][C][wifi:278]:   Hostname: 'espflora'
[16:02:42][C][wifi:282]:   Signal strength: -64 dB ▂▄▆█
[16:02:42][C][wifi:283]:   Channel: 6
[16:02:42][C][wifi:284]:   Subnet: 255.255.255.0
[16:02:42][C][wifi:285]:   Gateway: 
[16:02:42][C][wifi:286]:   DNS1: 
[16:02:42][C][wifi:287]:   DNS2: 0.0.0.0
[16:02:42][C][logger:175]: Logger:
[16:02:42][C][logger:176]:   Level: DEBUG
[16:02:42][C][logger:177]:   Log Baud Rate: 115200
[16:02:42][C][logger:178]:   Hardware UART: UART0
[16:02:42][C][esp32_ble_tracker:459]: BLE Tracker:
[16:02:42][C][esp32_ble_tracker:460]:   Scan Interval: 300 s
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Paprika 1 Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Paprika 1 Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Paprika 1 Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Paprika 1 Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Paprika 2 Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Paprika 2 Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Paprika 2 Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Paprika 2 Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Zuckererbse 1 Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Zuckererbse 1 Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Zuckererbse 1 Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Zuckererbse 1 Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Zuckererbse 2 Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Zuckererbse 2 Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Zuckererbse 2 Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Zuckererbse 2 Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Stachelbeere Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Stachelbeere Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Stachelbeere Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Stachelbeere Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Apfelbaum Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Apfelbaum Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Apfelbaum Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Apfelbaum Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_miflora:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_miflora:013]:   Temperature 'Birnenbaum Temperature'
[16:02:42][C][xiaomi_miflora:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_miflora:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_miflora:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_miflora:014]:   Moisture 'Birnenbaum Moisture'
[16:02:42][C][xiaomi_miflora:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_miflora:014]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_miflora:015]:   Conductivity 'Birnenbaum Soil Conductivity'
[16:02:42][C][xiaomi_miflora:015]:     Unit of Measurement: 'µS/cm'
[16:02:42][C][xiaomi_miflora:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:015]:     Icon: 'mdi:flower'
[16:02:42][C][xiaomi_miflora:016]:   Illuminance 'Birnenbaum Illuminance'
[16:02:42][C][xiaomi_miflora:016]:     Unit of Measurement: 'lx'
[16:02:42][C][xiaomi_miflora:016]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_miflora:016]:     Icon: 'mdi:brightness-5'
[16:02:42][C][xiaomi_mijia:012]: Xiaomi Mijia
[16:02:42][C][xiaomi_mijia:013]:   Temperature 'Xiaomi MiJia Temperature'
[16:02:42][C][xiaomi_mijia:013]:     Unit of Measurement: '°C'
[16:02:42][C][xiaomi_mijia:013]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_mijia:013]:     Icon: 'mdi:thermometer'
[16:02:42][C][xiaomi_mijia:014]:   Humidity 'Xiaomi MiJia Humidity'
[16:02:42][C][xiaomi_mijia:014]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_mijia:014]:     Accuracy Decimals: 1
[16:02:42][C][xiaomi_mijia:014]:     Icon: 'mdi:water-percent'
[16:02:42][C][xiaomi_mijia:015]:   Battery Level 'Xiaomi MiJia Battery Level'
[16:02:42][C][xiaomi_mijia:015]:     Unit of Measurement: '%'
[16:02:42][C][xiaomi_mijia:015]:     Accuracy Decimals: 0
[16:02:42][C][xiaomi_mijia:015]:     Icon: 'mdi:battery'
[16:02:42][C][restart:021]: Restart Switch 'ESPFlora Restart'
[16:02:42][C][restart:021]:   Icon: 'mdi:restart'
[16:02:42][C][status:034]: Status Binary Sensor 'ESPFlora Status'
[16:02:42][C][status:034]:   Device Class: 'connectivity'
[16:02:42][C][ota:029]: Over-The-Air Updates:
[16:02:42][C][ota:030]:   Address: XX:3232
[16:02:42][C][ota:032]:   Using Password.
[16:02:42][C][api:103]: API Server:
[16:02:42][C][api:104]:   Address: XX:6053
[16:02:42][C][wifi_signal.sensor:009]: WiFi Signal 'ESPFlora WiFi Signal'
[16:02:42][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dB'
[16:02:42][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[16:02:42][C][wifi_signal.sensor:009]:   Icon: 'mdi:wifi'
        "sensor": [
            {
                "accuracy_decimals": 0,
                "icon": "mdi:timer",
                "key": 34555166,
                "name": "ESPFlora Uptime",
                "object_id": "espflora_uptime",
                "unique_id": "3c71bf1d1c38-uptime",
                "unit_of_measurement": "s"
            },
            {
                "accuracy_decimals": 0,
                "icon": "mdi:wifi",
                "key": 2880365672,
                "name": "ESPFlora WiFi Signal",
                "object_id": "espflora_wifi_signal",
                "unique_id": "3c71bf1d1c38-wifisignal",
                "unit_of_measurement": "dB"
            },
OttoWinter commented 5 years ago

@Xeroxxx If you recently switch the ESP32, the uptime/wifi signal entities will have a new unique_id. Please check if you have entities with a _2 appended to it in the entity registry.

Xeroxxx commented 5 years ago

I didn't. I can't see any unlisted entities with any number. Can I manually call the ESP API to check for any measurements?

Xeroxxx commented 5 years ago

Tried with three different ESP32 and setup a clean one. No change.

OttoWinter commented 5 years ago

@Xeroxxx It appears you're using the dev branch - please check with the latest release version (1.13.6) instead and the latest dev branch (also: dev branch is not intended for production use!)

Xeroxxx commented 5 years ago

Yes I'm using dev-branch. I know its not for production use.

OttoWinter commented 5 years ago

Closing because it's probably fixed in latest dev