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?
-
Hello, friend!
May be you need addition send in loop for HA, look at Presentaion
-
Thanks cabat, will try it out this weekend.
-
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!