everything-presence-one icon indicating copy to clipboard operation
everything-presence-one copied to clipboard

mmWave led turning back on (randomly?)

Open poulti opened this issue 2 years ago • 10 comments

Hello,

Great product, love the combined sensors in one box. I have 3x EP1s in different rooms. I've turned all leds off (including mmWave) for all of them. For some reasons, the mmWave led turns back on again randomly (didn't find the pattern/trigger yet). It doesn't happen to all 3 at the same time - but it happened to all 3 over time (hope it makes sense). Any idea what it could come from? Any other idea to force it off? Thanks

poulti avatar Feb 02 '23 19:02 poulti

Hello!

Thanks! Have you got a screenshot of the history of the LED coming back on? Perhaps there is some sort of pattern to it?

Could it be an automation you have that turns on all lights in an area or something?

EverythingSmartHome avatar Feb 03 '23 10:02 EverythingSmartHome

Hello, Thanks for replying. I noticed when the led is back on (on the device) the mmWave led switch is still in "off" state. I have to tap the "on" lightning bolt and "off" again to turn it off. The history seems consistency as there is no visible "on" timeslots. mmwave_leds I'll take note of the next event date/time to pin point it in the history, if that shows something.

2 out of 3 EP1s don't have any automation attached (yet), I just use them for the temp/hum/light sensors for now. But all 3 are affected (at different times)

EDIT: Just happened again! Before fixing it, here is what I see in the dashboard (notice the mmWave Led is supposed to be "off"): EP1_living_dashboard And History - only displays "off", even though the far right should be on (see picture below): EP1_living_mmWaveHistory And what the EP1 looks like, IRL: EP1_living_picture

poulti avatar Feb 03 '23 12:02 poulti

I also experienced this issue, but unsure of the root cause. Since I don't need the lights for anything I just disabled them in the .yaml file.

helicopterrun avatar Feb 04 '23 19:02 helicopterrun

Could you please detail what you changed in the config file? Thanks

poulti avatar Feb 04 '23 20:02 poulti

Assuming you have the ESP Home add-on installed. You should be able to edit the "everything-presence-one.yaml" remove the "light:" code block as well as remove the led section from the "switch:" code block as shown:

##### remove this block #####
#############################
#light:
#  - platform: status_led
#    name: "ESP32 Status LED"
#    pin: GPIO32
#    entity_category: config
#############################
## leave this block including "switch:" ##
switch:
  - platform: template
    name: "mmWave Sensor"
    id: "mmwave_sensor"
    entity_category: config
    optimistic: true
    restore_state: true
    turn_on_action:
      - uart.write: "sensorStart"
      - delay: 1s
    turn_off_action:
      - uart.write: "sensorStop"
      - delay: 1s

##### remove this block ##############
######################################
#  - platform: template
#    name: "mmWave LED"
#    id: "mmwave_led"
#    entity_category: config
#    optimistic: true
#    restore_state: true
#    turn_on_action:
#      - switch.turn_off: mmwave_sensor
#      - delay: 1s
#      - uart.write: "setLedMode 1 0"
#      - delay: 1s
#      - uart.write: "saveConfig"
#      - delay: 3s
#      - switch.turn_on: mmwave_sensor
#    turn_off_action:
#      - switch.turn_off: mmwave_sensor
#      - delay: 1s
#      - uart.write: "setLedMode 1 1"
#      - delay: 1s
#      - uart.write: "saveConfig"
#      - delay: 3s
#      - switch.turn_on: mmwave_sensor
######################################
end

Leave the rest of the code unchanged, validate and install the code.

helicopterrun avatar Feb 05 '23 00:02 helicopterrun

Thanks. I'm interested to understand what triggered this strange behaviour, but in the meantime, I'll deactivate the mmWave LED. Edit: commenting the code above does not deactivate the LED, just removes the switch to turn it on/off.

poulti avatar Feb 05 '23 14:02 poulti

I have the same issue. I have 5 of these and any one of them will randomly turn on. Also, the OP seems to not be running the most recent version of the firmware, just FYI

pshempel avatar Feb 08 '23 13:02 pshempel

Updated to latest config + commented the mmWave switch part - still lights up from time to time. It just lit up now, and in the dashboard/log I see "mmWave sensor turned on". Could that turn on the LED on start? EP1_living_dashboard_11-02-23

poulti avatar Feb 11 '23 09:02 poulti

Ah yes, if you toggle the mmWave Sensor on and off using an automation or the button on the dashboard, then it will toggle the LED back on - I looked into this in the past and couldn't see an easy way of retaining the state unfortunately.

EverythingSmartHome avatar Feb 24 '23 09:02 EverythingSmartHome

Weirdly, I think I had this same issue occur, but not wit the led state, but the value of the "mmwave_on_latency". Despite it not changing in the HA settings, it clearly had reset to 0 as it was suddenly getting a bunch of false positives. I changed it to 0 in the settings and then back to 2s and it was perfectly fine again.

BlipRanger avatar Mar 09 '23 20:03 BlipRanger