Coder Social home page Coder Social logo

Comments (10)

EverythingSmartHome avatar EverythingSmartHome commented on August 21, 2024

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?

from everything-presence-one.

poulti avatar poulti commented on August 21, 2024

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

from everything-presence-one.

helicopterrun avatar helicopterrun commented on August 21, 2024

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.

from everything-presence-one.

poulti avatar poulti commented on August 21, 2024

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

from everything-presence-one.

helicopterrun avatar helicopterrun commented on August 21, 2024

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.

from everything-presence-one.

poulti avatar poulti commented on August 21, 2024

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.

from everything-presence-one.

pshempel avatar pshempel commented on August 21, 2024

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

from everything-presence-one.

poulti avatar poulti commented on August 21, 2024

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

from everything-presence-one.

EverythingSmartHome avatar EverythingSmartHome commented on August 21, 2024

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.

from everything-presence-one.

BlipRanger avatar BlipRanger commented on August 21, 2024

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.

from everything-presence-one.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.