Re: [Getting !TSF:ASID:FAIL]
As Tekka (thanks so much for this hint!!!) refers before the clear EEprom from Arduino.cc is not properly working in all situations. As you try your Arduino in an serial gateway and after that try to use it as an other sensor or whatever in MySensors it will fail.
This because Arduino clear sketch write 0's instead of 0xff. And that's the case why you can after the original sketch still cannot use it normally as 'new'.
So use for clearing the EEProm always the MySensors clearEEprom!
You can find it here : https://www.mysensors.org/build/debug#clearing-eeprom
It has cost me very long long times to just find out why my other sensors would not properly work with MySensors, SerialGateway and Domoticz.
So good luck with this info. as it helps you as good as it helped me youre a very happy person. Thanks a lot to Tekka. He's the one to get the honers of this solution!
HJ_SK
@HJ_SK
Best posts made by HJ_SK
-
be aware of previous used arduino as serial gateway
-
RE: Advise - Building air quality sensors/network
@sebex :
I'm using MQ2 for Co2, LPG and Smoke. On MySensors is with radio good example.
More complex (including calibrating is to find here : sandboxelectronics.com)
I always start with testing new items without radio to better understand it's working.
The I switch (with more knowledge) to MySensors including Radio.If your new (as I am) I should suggest to first try only 1 gateway. There is enough to learn by doing so.
About battery : I use 1 or 2 x 18650 in housing with USB connection to Nano or Uno or whatever else Arduino. That powers a 'set of 3' weeks to months of enough power. You can also use or choose for example LiPo. Much smaller, less in capacity but in my opinion better then AA or AAA.
And they're all rechargeable of course, what's far better for the environment! -
RE: Advise - Building air quality sensors/network
@sebex No not stay away from HA. First only 1 gateway with HA. When you got that 'in your fingers' it's time to look at more kinds of gateways. Just my opinion
Latest posts made by HJ_SK
-
RE: 2x BME 280 on 2x arduino nano hangs in HomeAssistant
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=stableHA:
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 -
RE: 2x BME 280 on 2x arduino nano hangs in HomeAssistant
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:INITBut last time upload after several hours it suddenly came up in HA
-
RE: 2x BME 280 on 2x arduino nano hangs in HomeAssistant
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 boardCompilation error: text section exceeds available space in board
I understand because of using NodeManager the file is bigger.
Can I remove all // xxxsensors? -
RE: 2x BME 280 on 2x arduino nano hangs in HomeAssistant
thx Eiten,
Thx so much for your reaction.
With 1 BME 280 it is stable within HomeAssistant.
My_Debug later today is the planBelow ino file
Regards,
Harm[0_1722262405764_BME280_Hof67.ino](Uploading 100%)
-
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_NRF24It 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 - Add your sensors
-
RE: Help needed with connecting MySensors node to Home Assistant
Hi2All!
Surprising is here. After about 24hours I refresh HA and suddenly my motion sensor was integrated.
There is also second entity > battery : 0 , have to look deeper into that for understanding.
Need to change little in the sketch, because don't want every short time 'no movement' so only when there is motion and maybe once a hour indication sensor is alive.
Meantime I found 3 other good threats:
https://forum.mysensors.org/topic/11200/finally-progress-evidence-based-radio-testing-method-and-capacitors
https://forum.mysensors.org/topic/1664/which-are-the-best-nrf24l01-modules/27
https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain
Very usefull for me also finally progress because of lacking time in the past.
Great jobs are done here!
Thanks for this all of you guys or girls! -
RE: Help needed with connecting MySensors node to Home Assistant
Thanks cabat, will try it out this weekend.
-
RE: What's a good power bank for use with IoT?
@OldSurferDude Thanks a very valued to know. I was wondering today why my (big) powerbanks fall down after short time. I have small 1 & 2-pieces powerbanks, they work very well. I use also BSM hw-168 or hw-107 for charging single 18650. Will try to use them outside also with small solarpanels.
-
Help needed with connecting MySensors node to Home Assistant
Re: Help needed with connecting MySensors node to Home Assistant
I got a lookalike problem. I see the serial GW (on UNO) in HA (homeassistant) on an RPi4.
I needed to connect it to ttyUSB0, not ttyMCA what seems to be standard?
Also 1 entity a battery comes up in HA.
I have 1 motion sensor connected to a NANO and loaded with standard MySensors example.
This gives on serial monitor output :
1:56:16.173 -> 56224 MCO:SLP:WUP=-1
11:56:16.173 -> 56226 TSF:TRI:TSB
11:56:16.173 -> 0
11:56:16.211 -> 56268 !TSF:MSG:SEND,5-5-0-0,s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=NACK:0
11:56:16.248 -> 56274 MCO:SLP:MS=120000,SMS=0,I1=1,M1=1,I2=255,M2=255
11:56:16.248 -> 56280 TSF:TDI:TSL
So seems to be okay to me.
When I connect both to my win 10 pc every motion is picked up by the GW.
But in HA it does not come up as entity.Anyone can give me some help please?
-
MySensors external examples (Zip file contains No valid library)
This example uses a modified version of the external DHT library, which is included in the MySensors external examples. Please install it and restart the Arduino IDE before trying to compile.
I did the download from the github link. After add ZIP library I get the "Zip file contains No valid library" message. Has there been some changes?
Thanks in advantage for your reply!