TawfikDaim / home_automation

home automation user stories
0 stars 0 forks source link

4. Sonoff Alex integration #43

Open TawfikDaim opened 4 months ago

TawfikDaim commented 4 months ago

install Sonoff (Alex integration with Sonoff devices using EWLINK) (Without using HACS)

manually copy sonoff folder from latest release to custom_components folder in your config folder. restart home assistant and clear cache add integration - > search for Sonoff - login using EWlink credentials Warning; login from one account will logout teh other account so I can't have 2 home assistant using same EWink account at the same time. Configuration > Integrations > Add Integration > Sonoff If the integration is not in the list, you need to clear the browser cache.

You can setup multiple integrations with different ewelink accounts.

Important. If you use the same account in different smart home systems, you will be constantly unlogged from everywhere. In this case, you need to create a second ewelink account and share your devices or home with it.

5.Preventing DB size growth Pow devices may send a lot of data every second. You can reduce the amount of processed data.

For multi-channel devices use power_1, current_2, etc.
sonoff:
  devices:
    10006f807c:
      reporting:
        power: [30, 3600, 1]  # min seconds, max seconds, min delta value
        current: [5, 3600, 0.1]
        voltage: [60, 3600, 5]
  1. Be very careful with naming devices
  2. Create groups of devices/entities in home assistant to prepare for automation and scenes