Adding Ledvance Smart+ Wifi Nightlight Plug to Home Assistant

This guide shows the complete way to add a Ledvance Smart+ Wifi Nightlight Plug to Home Assistant. It includes controlling the power, light & brightness of the nightlight plug and reads the voltage, current and consumption into sensors.

I use LocalTuya in the version that is directly available in HACS (you don’t need to add the repo first): GitHub - rospogrigio/localtuya: local handling for Tuya devices

After adding the integration I chose NOT to configure the Cloud API:


I did so because I already had the local communication credentials (device id and local key) determined through a special Python script. I simply did not know that the HACS integration would also do that for me (I think) if you configure the Cloud API. So you may want to go the way to configure the Cloud API, which is probably simpler.

After that the Nightlight Plug should be found by LocalTuya and you can add the following 5 switch, light and sensor entities:

Here are the detailed settings for each of the 5 entities:

As you can see, I added the sensors for Voltage, Current, and Consumption twice: Once as attributes of the main power switch and once as separate entities. You may wish to use only one of these two versions, but it does not hurt to have both.

This is the result of my setup:

1 Like