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!
Posts made by HJ_SK
-
RE: Help needed with connecting MySensors node to Home Assistant
-
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! -
be aware of previous used arduino as serial gateway
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! -
RE: Hard-coding Node IDs vs. Using Controller-Assigned
@sundberg84 I'm looking to hard coded as well. To much problems with automatic created nodes. Especially when testing with the same Arduino Nano. Full of fail when reconnect an node with other sketch and eeprom_clear does not solve that problem. 'Still using after all these years'? Thanks anyway for the hint!!
-
RE: Sensor advice
@noclue Put your concrete idea here, what do you want to control?
-
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
-
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!