Tasmota ESP32 BLE

After watching

found on of these in the draw
image

put tasmota on it

did a so115 1

and bugger I can see my BLE Xiaomi Mijia LCD Digital Thermometer

image

on the main tasmota main screen I see

so I jump into the Console I see

looking at the

tele/tasmota_32/SENSOR 

i see

{"Time":"2021-04-15T06:42:32","MJ_HT_V1359039":{"mac":"582d34359039","Temperature":19.3,"Humidity":69.4,"DewPoint":13.5,"Battery":100,"RSSI":-81},"MJ_HT_V1ded5fd":{"mac":"4c65a8ded5fd","Temperature":19.9,"Humidity":69.6,"DewPoint":14.2,"Battery":100,"RSSI":-92}}

with MQTT I can read this

#=======================================================================
#
#=======================================================================
- platform: mqtt
  name: "BLE temperature"
  state_topic: "tele/tasmota_32/SENSOR"
  value_template: "{{value_json['MJ_HT_V1359039'].Temperature }}"
  unit_of_measurement: "°C"

after a restart

if I want the DewPoint I just change it to DewPoint

#=======================================================================
#
#=======================================================================
- platform: mqtt
  name: "BLE DewPoint"
  state_topic: "tele/tasmota_32/SENSOR"
  value_template: "{{value_json['MJ_HT_V1359039'].DewPoint }}"
  unit_of_measurement: "°C"

Done

3 Likes

Thank you for posting.

Hey,
könntest du das einmal etwas genauer erklären, wie ich das im HA einrichten muss?
Vielen Dank.

Gruß Stefan

English please

but what part do you want little more about

MQTT YAML has change

- platform: mqtt
  name: "BLE DewPoint"
  state_topic: "tele/tasmota_32/SENSOR"
  value_template: "{{value_json['MJ_HT_V1359039'].DewPoint }}"
  unit_of_measurement: "°C"

comes

      name: "BLE DewPoint"
      state_topic: "tele/tasmota_32/SENSOR"
      value_template: "{{value_json['MJ_HT_V1359039'].DewPoint }}"
      unit_of_measurement: "°C"

in you config file. Well like mine in there own files

so I have

mqtt:
  sensor: !include_dir_merge_list mqtt/sensor/
  climate: !include_dir_merge_list mqtt/climate/
  binary_sensor: !include_dir_merge_list mqtt/binary_sensor/
  switch: !include_dir_merge_list mqtt/switch/
  light: !include_dir_merge_list mqtt/light/

then inside each folder you can add the yaml file

but after typing all of above

there a other way

by adding a Bluetooth dongle and HA will find them for you and add them for you

Please excuse.

Unfortunately, the PC is in the basement, so I did it with an ESP32. So I have to read out the values ​​via the mqtt yaml, do I understand that correctly? I am using Home Assistant on Ubuntu.

Best regards
Stefan