Getting Sonoff LAN to recognise switches as Devices not Entities

I’ve installed Sonoff LAN (GitHub - AlexxIT/SonoffLAN: Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant) via HACS. The installation worked and I am now able to see all of my Sonoff devices, both on the Overview screen as well as in the list of entities in the configuration screen.

I’m now trying to set up an automation, but the list of devices does not include any of my Sonoff switches.

Am I missing any steps? Is there anything I can do to “convert” an entity to a device?

In @DrZzs video at Sonoffs can work with Home Assistant without changing the Firmware! - YouTube he mentioned that some users are experiencing device discovery issues, but I’m not certain if that is the same issue that I am experiencing (as I can see the devices listed under entities).

Apologies if this information is already available; complete HA beginner; I did attempt to read documentation and search the forums first.

Use an entity in automation. Call the switch on (off) service.

2 Likes

Thanks so much! I didn’t realise that was an option. Much appreciated!

i use them like this:

alias: Sonoff keuken 1 aan
description: ''
trigger:
  - platform: state
    entity_id: switch.sonoff_10008c655c_1
    from: 'off'
    to: 'on'
condition: []
action:
  - service: light.turn_on
    data: {}
    entity_id: light.keuken_tafel
  - delay: '1'
  - scene: scene.lamp_keuken_tafel_normaal
mode: single
1 Like

Thanks @BebeMischa. Much appreciated.

1 Like