ESP32 - ZgatewayBT


#1

Hello coders

I uploaded OpenMQTTGateway with ZgatewayBT.

When I open serial monitor I saw only this:

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:808
load:0x40078000,len:6084
load:0x40080000,len:6696
entry 0x400802e4
Fatal exception (0): IllegalInstruction
epc1=0x400b2cf8, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Can you help me ?


#2

You need to give us more details, version of omg, revision of esp32 env, board…
Did you followed exactly the ble wiki ?


#3

I was try your manual ( https://github.com/1technophile/OpenMQTTGateway/wiki/Module-Overview-ESP32 ) step by step and my uploaded sketch works good :slight_smile:

But I have problem with HASSIO dashboard…

In my serial monitor I have :

home/OpenMQTTGateway/BTtoMQTT/4C65A8D9709B
{“id”:“4c:65:a8:d9:70:9b”,“name”:“MJ_HT_V1”,“rssi”:-65,“distance”:2.009448,“servicedata”:“5020aa01c09b70d9a8654c0d1004f700bd01”,“servicedatauuid”:“0000fe95-0000-1000-8000-00805f9b34fb”}
Processing BLE device data
mi jia data reading
Creating BLE buffer
rest_data
5020aa01c09b70d9a8654c0d1004f700bd01
data_length
9
29163767.00
rest_data
5020aa01c09b70d9a8654c0d1004f700bd01
Pub json into:
home/OpenMQTTGateway/BTtoMQTT/4C65A8D9709B
{“hum”:“44.5”,“tem”:“24.7”}
Connected to broker
MQTT connection…
Connected to broker
Subscription OK to the subjects

but in my dashboard I have uknown value …

my configuration code:

  • platform: mqtt
    name: “Mijia Teplomer”
    state_topic: “home/OpenMQTTGateway/BTtoMQTT/4C65A8D9709B”
    unit_of_measurement: “°C”
    value_template: ‘{{ value | round(2) }}’

  • platform: mqtt
    name: “Mijia Teplomer”
    state_topic: “home/OpenMQTTGateway/BTtoMQTT/4C65A8D9709B/tem”
    unit_of_measurement: “°C”
    value_template: ‘{{ value | round(2) }}’

Where I can find correct config.code pls ? Thanks


#4

The issue is that you are using a beta version with the documentation related to v0.8.
You should use the v0.8 while the v0.9 is not released and the doc updated.


#5

You have right :slight_smile:

I was upload v08 sketch and then change HA config to this:

  • platform: mqtt
    name: “Mijia Teplomer”
    state_topic: “home/OpenMQTTGateway/BTtoMQTT/4C65A8D9709B/tem”
    unit_of_measurement: “°C”
    value_template: ‘{{ value | round(2) }}’

and wait few minutes and vuala :slight_smile: value change from uknown to correct value from mijia sensor :slight_smile:

It was a fight :slight_smile: thanks a lot for your help