Esphome & Hassio - Unkown errors

Tags: #<Tag:0x00007f7c5d550790>

Hi,

Wondering if someone can help me.

I have Hassio installed on a Raspberry Pi. I have recently installed Esphome with the aim to use the Xiaomi BT sensors. (https://esphome.io/components/sensor/xiaomi_lywsdcgq.html)

This is working and I can see within the logs that the sensor is recieveing temperature, humidity & battery levels. I have done the integration within Hassio. However when I view the sensor states in developer tools the data is not there and all I see is “unkown”. This is also reflected into an display cards I create on the overview page. Am I suppose to do anything in the configuration.yaml?

This is my sensor .yaml file.

esphome:
  name: esp321
  platform: ESP32
  board: mhetesp32devkit

wifi:
  ssid: "SSID"
  password: "SSID p/w"

#Optional manual IP
  manual_ip:
    static_ip: xxx.xxx.xxx.xxx
    gateway: xxx.xxx.xxx.xxx
    subnet: xxx.xxx.xxx.xxx
        
mqtt:
  broker: 'hassio IP'
  username: 'hassio user name'
  password: 'password'

#Enable logging
logger:

#Enable Home Assistant API
api:

ota:
  password: "ato password"

#Enable Bluetooth scanning for this ESP32
esp32_ble_tracker:

sensor:
  - platform: xiaomi_lywsdcgq
    mac_address: 'xx:xx:xx:xx:xx:xx'
    temperature:
      name: "Lounge Temperature"
    humidity:
      name: "Lounge Humidity"
    battery_level:
      name: "Lounge Battery Level"

Any ideas?

Please edit your post and format it correctly. See point 11 here for how to: How to help us help you - or How to ask a good question

There is no need to obfuscate your static ip details. Local addresses are not routable over the internet.

Any reason you are using mqtt rather than the api?

Go to the home assistant integration mqtt page and check the entities there. Is there a duplicate integration? Are the readings showing up there? What are the entity id’s (click on the entity then the cog wheel in the pop-up)?