rbaron / b-parasite

🌱💧 An open source DIY soil moisture sensor
1.85k stars 143 forks source link

Connect to home assistant #99

Closed sam632 closed 1 year ago

sam632 commented 1 year ago

Hi, I downloaded this repo and flashed it to a b-parasite using the ESP32 method with the BLE sample with CONFIG_PRST_BLE_ENCODING_BTHOME_V2=y added to the prj.conf file and all went well. I get the flashing red light when I put the battery in and after some time (overnight) it appeared in home assistant. Then later the entity appeared and it is sending data to home assistant but its constantly displayed as "Unavailable" due to the device sleeping.

Is there a way to make home assistant display the last available data and the update accordingly (every 10 mins I believe is the default but it seems to be random at the moment?)?

Thanks in advance.

jhbruhn commented 1 year ago

I believe this is related to #98

rbaron commented 1 year ago

@sam632 are you using a proxy or talking to HA directly? How far away is it?

sam632 commented 1 year ago

@sam632 are you using a proxy or talking to HA directly? How far away is it?

talking directly to HA. It is currently next to the RPI4 but I will buy a bluetooth antenna for the RPI as the range is terrible.

RobertLukan commented 1 year ago

Which nRF chip are you using ? I have replaced ceramic antenna with 1mm thick wire and there is a tremendous improvement. There is an open issue about this topic. You might want to consider the same if you are facing signal issues.

sam632 commented 1 year ago

I'm using the E732G4M08S1C. It has a ceramic antenna so I will look into that, thanks!

rbaron commented 1 year ago

Closing due to inactivity. Note that #98 may have fixed the issue. Please feel free to report back.