gaggle331 / home-assistant-kevo

Kevo Custom Component for Home Assistant
12 stars 14 forks source link

Adding the sample config just causes HA check config to spin and spin #13

Open dcmeglio opened 2 years ago

dcmeglio commented 2 years ago

After installing the integration via HACS I added:

lock:
  - platform: kevo_plus
    email: USER
    password: PWD
    locks:
      - lock_id: ID
        max_retries: 3
        retry_delay: 2

As soon as I add this the Check Configuration button just spins and spins and never says my config is valid nor reports an error. I'm new to HA, is this sample config still valid in 2022.6.4?

RXM307 commented 2 years ago

Works for me, cant lock or unlock it but atleast I have a status....

lock:

Although the status does error out now and then...

2022-06-11 16:15:39 ERROR (MainThread) [homeassistant.helpers.entity] Update for lock.front_door fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 743, in async_device_update raise exc File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) File "/config/custom_components/kevo_plus/lock.py", line 98, in update self._state = self._kevo.GetBoltState().lower() File "/config/pykevoplus/init.py", line 108, in _wrapped return method(self, *args, *kwargs) File "/config/pykevoplus/init.py", line 272, in GetBoltState self.Refresh() File "/config/pykevoplus/init.py", line 108, in _wrapped return method(self, args, kwargs) File "/config/pykevoplus/init.py", line 223, in Refresh raise KevoError("Error getting lock info: {}".format(info_result.text)) pykevoplus.KevoError: Error getting lock info: {"status":"500","error":"Internal Server Error"}

dcmeglio commented 2 years ago

Hmm got further and I'm getting the same issue. I'm still learning Home Assistant (just switched over), but I wrote the Kevo integration for Hubitat which is working just fine. I'm confident if I can learn how I override the pykevoplus package of Home Assistant that I can fix it, but I'm still learning how Home Assistant loads stuff.