igiannakas / mmWave-Presense-Sensor-D1-Mini-DFRobot-

Room presence detection using mmWave radar (DFRobot SEN0395), D1 Mini ESP-8266 and ESPHome for HomeAssistant
116 stars 9 forks source link

Settings wont be saved #5

Closed fwartner closed 1 year ago

fwartner commented 1 year ago

I have a problem with saving the settings. Once I reload the page, the settings I made are gone. Either in HA or the webinterface.

Running on the latest esphome version: 2022.12.7

igiannakas commented 1 year ago

Try waiting a few seconds between changing one setting and then changing another. The radar needs time to save each one individually.

fwartner commented 1 year ago

Doesn't have any effect.. :-/

igiannakas commented 1 year ago

It may be a wiring issue - can you post a screenshot from the complete HA device page? Are you seeing the sensor reporting back the preset distance and sensitivity values in home assistant?On 27 Jan 2023, at 08:53, Florian Wartner @.***> wrote: Doesn't have any effect.. :-/

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

fwartner commented 1 year ago

CleanShot 2023-01-27 at 10 02 20

Nothing really changed when I try to update anything. Like I said yesterday.. Once I reload the page, any setting is resettet.

fwartner commented 1 year ago

CleanShot 2023-01-27 at 10 04 59

igiannakas commented 1 year ago

As you are not seeing the default values in the home assistant dashboard it is a connection error. Check that the wiring is done correctly - tx to rx and vice versa and that the motion detection pin is connected correctly.On 27 Jan 2023, at 09:06, Florian Wartner @.***> wrote:

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

igiannakas commented 1 year ago

This happens because serial communication is not established. This is usually due to a wiring issue or your pin out in the config is wrong.

Once the serial connection is done correctly the sensor should self report its default distance and sensitivity parameters to home assistant. As you see them as empty it means the sensor is not communicating with the d1 mini device.

fwartner commented 1 year ago

I was indeed the wiring ^^'

Thank you for the help you provided!