Leviton Decora Switch Debugging

I’m installing some Decora wall dimmer switches and having trouble with getting any of them to work with HA. I’ve turned on debug logging in HA and receive only these unhelpful messages in the logs:

Running HA Core 0.109.6 on Raspberry Pi

INFO (SyncWorker_10) [homeassistant.loader] Loaded decora_wifi from homeassistant.components.decora_wifi

ERROR (MainThread) [homeassistant.components.light] Setup of platform decora_wifi is taking longer than 60 seconds. Startup will proceed without waiting any longer.

Here’s the entry from my config.yaml:

light:
  - platform: decora_wifi
    username: [email protected]
    password: xxxxxxxxx

Here’s what I’ve done so far to troubleshoot this problem:

  1. Verified Leviton credentials by logging in the Leviton app and by successfully testing the decora_leviton python code from my local dev environment.

  2. I have successfully run the python code manually from the server CLI to control light. So it seems this issue is limited to my HA configuration, not any network or system level communication issue.

  3. Updated Decora switch firmware with latest updates

Am I missing anything obvious?
Are there any more logs in HA that will help me troubleshoot the API communications?
Has anyone been successful making these switches work with HA?

You have the correct coding. Mine has been working fine…

…except for lastnight and today. Something is going on when i toggle the light to on, it doesnt turn on and the switch changes back to its previous state in HA.

Did you ever get yours working, and are you having the same issues now?

I have not got these switches working after a couple months of trying. They work with the Decor app and my direct code just fine, although I’ve seen some weird anomalies like you mention. Once in a while they just don’t respond. Cloud issues, I think. I’m ready to give up on the HA integration with these switches and go either z-wave or just make some Tasmoda switches and be done with it.

1 Like

in light.yaml:

- platform: decora_wifi
  username: !secret myemail
  password: !secret decorapass

thats all thats needed.

I only had that one issue the day i posted this,. and it turned out it was cloud problem… all has worked fine since.

I’ve got about a half dozen of these switches in my house and they work great via the app, but the integration does not seem to work in HA at all.



Logger: homeassistant.components.light
Source: /usr/local/lib/python3.8/asyncio/events.py:81
Integration: Light (documentation, issues)
First occurred: 10:35:58 PM (1 occurrences)
Last logged: 10:35:58 PM
Setup of light platform decora_wifi is taking over 10 seconds. 


Logger: homeassistant.components.decora_wifi.light
Source: components/decora_wifi/light.py:69
Integration: decora_wifi (documentation, issues)
First occurred: 10:37:30 PM (1 occurrences)
Last logged: 10:37:30 PM
Failed to communicate with myLeviton Service