kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
369 stars 100 forks source link

State not updating #106

Closed dbdmdbdmdbdm closed 4 years ago

dbdmdbdmdbdm commented 4 years ago

I've installed the add on and identified the sensors, but the sensor states are not updating at all. What am i missing? I also dont see anything in the logs?

RoldyBuffalo commented 4 years ago

The first thing I should have asked, is how are you connecting your hub to your home assistant? And what version of ha are you running? Is the integration installed up to 0.0.7? What are the states of the devices stuck in? If they are stuck in the on open/motion position, you may need to set their initial state in your config (seen below.) You find the sensor code in the developer options for each sensor. If they are stuck closed, what are the rssi's of the sensors? Lower is better. I'd also suggest doing a clean hassio.host_reboot and seeing if the problem persists. I'm not the repo owner, I just have a lot of sensors, and I'd love to help this integration developer any way I can. His repo is fantastic, I love my wyze sensors. ALSO Recently there was an update that required retriggering each sensor, it could also potentially be that. Essentially, after this latest update you had to retrigger the sensors to get them to sync with the hub. Hope this helps. Didn't have much to go on.


- platform: wyzesense
    device: auto
    initial_state:
      779B1E20: "off"
      7789BC5B: "off"
      779B14AE: "off"
      779B1DCE: "off"
      779B1E23: "off"
      779B151F: "off"
      779B1577: "off"
      779B192C: "off"
      779B1629: "off"
      .......
      ......
drinsmith1 commented 4 years ago

I'm having the same issue. Can you define "retrigger" please? Is this as simple as physically opening and closing each switch, or do I need to re-add each sensor to HA?

Thanks!

Edit: Never mind., Solved it. :) Had to change the device: to "auto" in configuration,yaml then open and close each switch. Thanks!