2x BME 280 on 2x arduino nano hangs in HomeAssistant



  • Just restarting to use my arduino's with MySensors (+ NodeManager) .....

    I'm using NodeManager for this :

    I added a BME280 on a Arduino Nano with
    // General settings
    #define SKETCH_NAME "BME280_Test"
    #define SKETCH_VERSION "1.0"
    //#define MY_DEBUG
    #define MY_NODE_ID 98
    // NRF24 radio settings
    #define MY_RADIO_NRF24

    • Add your sensors
      // BME_Specific
      #include <Adafruit_BME280.h>
      // End BME_Specific
      It was picked up by homeassistant perfectly

    Then I added second BME280 on another Nano
    // General settings
    #define SKETCH_NAME "BME280_Hof67"
    #define SKETCH_VERSION "1.0"
    //#define MY_DEBUG
    #define MY_NODE_ID 67
    // NRF24 radio settings
    #define MY_RADIO_NRF24

    It first hangs but after hours HomeAssistant did pick it up, but ......
    Both are now 'dead' (Not refereshing data) but still visiable in HomeAssistant.

    Any one an idea what is going wrong here?
    Help much preciated!

    Thx in advantage!
    Harm Jeurink



  • Hello @HJ_SK

    Could you please post the whole sketch in code tags or as an attachement?
    Does it work stable with just one sensor node?
    Could you #define MY_DEBUG, attach at least one sensor to a PC and post the log after they hang?

    Regards, Edi



  • thx Eiten,
    Thx so much for your reaction.
    With 1 BME 280 it is stable within HomeAssistant.
    My_Debug later today is the plan

    Below ino file

    Regards,
    Harm

    [0_1722262405764_BME280_Hof67.ino](Uploading 100%)



  • After activate MY-DEBUG I got this error :
    Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
    text section exceeds available space in board

    Compilation error: text section exceeds available space in board

    I understand because of using NodeManager the file is bigger.
    Can I remove all // xxxsensors?



  • without debug is now hangs on here :
    17:16:19.825 -> 0 NM:INIT:INO=BME280_Hof67 v1.0
    17:16:19.871 -> 0 NM:INIT:LIB VER=2.3.2 CP=RNNNA---
    17:16:19.908 ->
    17:16:19.908 -> __ __ ____
    17:16:19.908 -> | / |_ / | ___ _ __ ___ ___ _ __ ___
    17:16:19.941 -> | |/| | | | _
    \ / _ \ _ \/ __|/ _ \|
    _/ __|
    17:16:20.008 -> | | | | |
    | || | / | | _ \ _ | | _
    17:16:20.074 -> |
    | |
    |_
    , |/ ___|| ||/_/|| |/
    17:16:20.108 -> |
    __/ 2.3.2
    17:16:20.174 ->
    17:16:20.174 -> 209 NM:INIT:RBT p=255
    17:16:20.174 -> 300 NM:BFR:INIT

    But last time upload after several hours it suddenly came up in HA



  • And now again on USB port of PC sending its info, but no response in HA

    10:51:58.958 -> 149738851 NM:LOOP:BME280(1):SET t=0 v=23.70
    10:51:58.993 -> 149738898 NM:LOOP:BME280(2):SET t=1 v=43.47
    10:51:59.062 -> 149738947 NM:LOOP:BME280(3):SET t=4 v=972.44
    10:51:59.098 -> 149738996 NM:LOOP:BME280(4):SET t=5 v=stable
    10:51:59.133 -> 149739044 NM:LOOP:BME280(1):SET t=0 v=23.70
    10:51:59.202 -> 149739092 NM:LOOP:BME280(2):SET t=1 v=43.46
    10:51:59.238 -> 149739141 NM:LOOP:BME280(3):SET t=4 v=972.45
    10:51:59.273 -> 149739190 NM:LOOP:BME280(4):SET t=5 v=stable

    HA:
    entity_id,state,last_changed
    sensor.none_67_battery,0,2024-07-31T07:00:00.000Z
    sensor.none_67_battery,0,2024-07-31T07:00:19.035Z
    sensor.bme280_5,23.41,2024-07-31T07:00:00.000Z
    sensor.bme280_6,44.89,2024-07-31T07:00:00.000Z
    sensor.bme280_7,975.22,2024-07-31T07:00:00.000Z
    sensor.bme280_8,stable,2024-07-31T07:00:00.000Z



  • Well, I can only imagine that they try to send at the same time. Did you try with slightly different interval times?



  • @HJ_SK said in 2x BME 280 on 2x arduino nano hangs in HomeAssistant:

    BME280

    I had a similar situation. First you have to delete all the MySensors devices in HA. This is aggravated by HA wanting the devices to be on line before you delete them. You may have to delete the MySensors data in the HA config directory. You may even have to uninstall MySensors from HA. Then shutdown HA. Next, turn off your gateway. Are you using MQTT for messaging? You'll have delete the MySensors data from there, too. (MQTT Explorer is good for doing this)

    Then start HA. Did your MySensors devices come back as zombies? That's the problem. Try deleting them again. Are they data still in MQTT?

    OK, now start again.

    I had documented how to do all this deleting in HA Forum, HA/Discord and here, but I can't find that documentation now. grrrr

    OSD


Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.6k
Posts