Skip to content

Sensor data sometimes not showing in 2nd browser #2659

Description

@davebuk

Device

Wemos D1 mini

Version

1.22.0-git46719eec

Question

I have setup two wemos d1 mini devices running the same firmware using the below definitions.

The first device was just for BME280 data and doesn't have anything else connected. This works as expected.

The second device was originally just a relay control with schedule and sun times running. The schedules didn't work reliably so I deleted them and use openHAB to control the relay. I re-flashed the second device adding BME280 support to read outdoor data. For some reason this second device doesn't show the BME280 data on the webUI but shows the mqtt data for temp/px/hum fine. I removed the sch keys in case that was causing the issue but doesn't effect SENSORS in the webUI menu list or data being shown on the status page.

I have got a longer wire on the the BME280 sensor on the device not showing data but I would have thought that if there is mqtt data, sensor data should be shown on the webUI.

What makes the firmware show the sensor link on the left of the webUI?

i2c.scan shows:

i2c.scan
0x76
found 1 device(s)
+OK
sensors
 0 * temperature @ BME280 @ I2C (0x76) => .013.118.001.001
 1 * humidity @ BME280 @ I2C (0x76) => .013.118.002.002
 2 * pressure @ BME280 @ I2C (0x76) => .013.118.003.003
+OK
   #define MANUFACTURER        "WEMOS"
   #define DEVICE              "WEMOS_BMX280"

   //My config

   #define DEBUG_SERIAL_SUPPORT    0
   #define ALEXA_SUPPORT           0
   #define DOMOTICZ_SUPPORT        0
   #define HOMEASSISTANT_SUPPORT   0
   #define THINGSPEAK_SUPPORT      0
   #define RPN_RULES_SUPPORT       0
   #define NTP_TIMEZONE            TZ_Europe_London
   
   
   // Buttons
   #define BUTTON_MQTT_SEND_ALL_EVENTS     1
   #define BUTTON1_PIN         14    // D5
   #define BUTTON1_CONFIG      BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH | BUTTON_SET_PULLUP
   #define BUTTON1_RELAY       1


   // Relays
   #define RELAY1_PIN          5    // D1
   #define RELAY1_TYPE         RELAY_TYPE_NORMAL


   // LEDs
   #define LED1_PIN            2    // D4
   #define LED1_PIN_INVERSE    1
   
  // Extras    
   #define BMX280_SUPPORT 1
   #define I2C_SDA_PIN 12    // D6
   #define I2C_SCL_PIN 13    // D7

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions