Ewelink Automation Not Working

GoodDay

I have added the eWeLink Smart Home (v1.2.3) built-in integration.

I am trying to create an automation that will turn on a light bulb when a switch is turned on but it does not work.

Here is my code:

- id: '1647507277116'

  alias: Ewe testing

  description: Testing

  trigger:

  - platform: state

    entity_id: switch.10011a5adc

    from: 'off'

    to: 'on'

  condition: []

  action:

  - service: light.turn_on

    data:

      rgb_color: blue

    target:

      entity_id: light.10012bcdaa

  - delay:

      hours: 0

      minutes: 0

      seconds: 5

      milliseconds: 0

  - service: light.turn_off

    data: {}

  mode: single

What am I doing wrong?

I also noticed that when I click on any of the entities for sonof devices I get this message:

Entity

How does one correct this? Is this related to why my automation will not work?

1 Like

Although this might not answer your question directly I would get rid of the eWeLink Smart Home integration and use SonoffLAN instead. Check whether your switch/bulb is supported.

If you decide to give it a try make sure to remove the eWeLink Smart Home integration and restart HA once before installing SonoffLAN.

Why would you recommend that particular integration?

I’m new to HA so this setup is just a test bed for me to see what works and what does not. If I don’t come right with built in one I will give that one a try.

Thanks for pointing out an alternative

Look here.

SonoffLAN works usually well without hiccups and depending on your devices local access only (without eWeLink cloud).

Do you have to put your devices in DIY mode or will that integration (SonoffLAN) pick it up that the device supports LAN mode when it pulls the devices from the cloud?

Nope, just install SonoffLAN through HACS, restart HA and follow some basic configuration steps according to the GitHub page of this custom integration.

Thanks Tamsy… Going to try that integration and let you know how it goes

Hi Tamsy,

Got the SonoffLAN setup and my automation is working for the scenario that I wanted to do.

Thank you so much for answer my post and pointing in the direction off the SonoffLAN configuration

Excellent! Thank you for letting us know :+1:t3:

Guys, I restart HA every day using automation, however after restart buttons to control ewelink switches in lovelace stop responding and only working after pushing manually on “sync lovelace card” on ewel8nk page.
Can that synk be automated too? Couldn’t find that button in automation page…

1 Like

Thanks, I had problems with eWeLink for months and this seems to solve it

I still have that issue. Would be nice to know how you got this solved.

Sonoff integration will sort out issue

Sorry what do you mean? Ewelink add-on is the Sonoff integration. Or am I missing something here?

Sorted, first I was using eweelink integration that dıd not worked well, so I moved to sonoff integration and it works flowless. Thanks

I cant add Sonoff to the repository. Says GitHub - AlexxIT/SonoffLAN: Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant is not a valid add-on repository
GitHub - AlexxIT/SonoffLAN: Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant

Welcome to the forum, @zenmartian :wave:t3:

SonoffLAN is not a official Home Assistant add-on but a custom add-on.

Install SonoffLAN through HACS:
HACS → Integrations → Plus (+) → SonoffLAN

For how to install HACS to your Home Assistant look HERE.

hey thanks. Noob here lol

I can’t find Sonoff when starting to type in the textbox. I guess HACS is another thing I need to install