control a sonoff switch using eWelink and Home Assistant – without IFTTT or firmware flashing

2 Responses

  1. Grzegorz says:

    Hi! I have a problem with this point: “At this time the sonoff custom component doesn’t add new sonoff devices when you add them to ewelink. Read the component instructions for a workaround.”
    Where the heck can I find this workaround?? Can you help please?

    • roger says:

      Firstly, I believe that my configuration (below) deals with updating. It will include changes you made to your ewelink app setup. My Home Assistant configuration.yaml now reads as follows:


      username: !secret some@email
      password: !secret sonoffpassword
      mode: local
      reload: always

      # sonoff: should be at the left margin. the lines below it should be indented 2 spaces

      Secondly, the answer to your question is under Cloud and Local mode in the github documentation at

Leave a Reply

Your email address will not be published. Required fields are marked *