Leviton Decora Wifi

Relatively new user here.
I’ve made the simple changes to configuration.yaml as per…

…and restarted HA (in my case, I’m trying in Docker).
Nothing ever shows up.
What else do I need to do?

Are .py files supposed to auto download from git at…

…?

I’m sure I’m missing some obvious step for custom configs, but have no clue what…

What does your yaml code look like? Nothing needs to be downloaded as it’s already contained in your running system in this case. You might also look at the logs found in Configuration>Settings>Logs to see if there are any errors listed.

1 Like

Thank you for replying.

No errors in the log, and I copied/pasted from the sample for the Leviton Decora Wifi (with my credentials, of course).
From: Leviton Decora Wi-Fi - Home Assistant
Added to configuration.yaml:

light:
  - platform: decora_wifi
    username: (my username)
    password: (my password)

I did the config check.
I restarted Home Assistant.

This is my first time adding any custom integration. I didn’t find a page that (simply) laid out steps for these (supposedly simple) custom integrations - maybe I missed something (fairly) obvious?

DId you edit the yaml directly or via the interface? If you added it directly then spacing can be important. Please preserve the spacing by using the </> icon in the menu of the response window and pasting your code between the resulting ‘’’ and ‘’’. The formatted text will appear to the right of the response window.

Fixed the above.
Retried with double-quote:

light:
  - platform: decora_wifi
    username: "[email protected]"
    password: "Passwor!d"

Same thing.

Under “Configuration > Server Controls”, “Check Configuration” reports “Configuration valid”.
When I restart, all works fine except the Leviton integration never appears.

My expectation is that Leviton will show up in “Configuration > Integrations” , is this correct?

Should username and password have no quotes (even though username has “@” and password has a non-alphanumeric character), single-quote, double-quote, back-quote, ?? I’ve tried only no quotes and double-quotes and single-quote, not back-quote (`).

When I check “home-assistant.log”, there’s lis little in there overall, and nothing about leviton:

No it won’t necessarily show up in integrations but I would expect it to be listed in “devices” somewhere. Integrations only shows those that are configured via the UI and this one seems to be setup via yaml. Quotes are typically not critical unless it’s a special name or it’s a string that starts with a number or there’s some other special character. Single or double quotes are equally fine. I think it’s likely either something else in your yaml prior to this declaration or the device is not on the network and so not found. Can you see the device in your router table?

No devices listed.
The password may contain one of: ! # $ + . - _

Definitely in the router table (also found by both Fing and Recon Sentinel and a regular arp query), I can ping the 13 devices as well.

I assume you can get to your devices via the native app which I guess is where your username and password came from. Also that you have rebooted your ha recently. Git indicates there was a request from Leviton to stop retrying to connect if the username/password fails to connect to their servers for whatever reason. In others words I’m guessing if ha fails to connect it won’t try again until you reboot ha. Also is it possible your account is blocked at Leviton for some reason? Beyond that I really don’t know. If none of that works try creating a new request as this one may not attract any more attention from folks online.

Yeah, rebooted the HA. (Trying it as HA native on Pi, HA on Pi, and HA in a docker container on Pi, but not at the same time.)
I’ll try the Git route, but am more of a novice at that than HA.
Question: Shouldn’t “something” show up in the logs, either way?

Yes, one would think. That’s one reason I was thinking something else in your configuration.yaml was causing the processing to stop before it got to your decora_wifi declaration.

You mentioned several different ha installations. How is ha installed? Simplest way on a rpi is via Home Assistant OS route.

I am trying all three HA methods: Home Assistant OS, installed on top of Raspian, and in a container on Raspian. Different RPis.

In one of the cases (I forget which), there was nothing else of significance in the configuration.yaml other than the leviton config.

In the docker container, my other custom isn’t being recognized either, I realize:

# CandyHouse / Sesame
lock:
  - platform: sesame
    api_key: (my private key)

So my entire file consists of:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# CandyHouse / Sesame
lock:
  - platform: sesame
    api_key: long_key

# Leviton
light:
  - platform: decora_wifi
    username: '[email protected]'
    password: 'Passwor.d'

I guess I need to find a simple test/dummy integration I can put in here to ensure the configuration.yaml is being properly read? Do you have one I can try?

I would add a logger: line to the configuration.yaml then reboot ha and examine the logs again. Also as I said before the Home Assistant OS route would be the installation I would use.