Sonoff component (without flashing)?

Is it available or possible to do?

Check this

This is a nice find.
To get it working with HA you’d need to:

  • implement somewhere the (node.js) server that they describe (its not python so would need to be rewritten to be part of HA)
  • Hook the server into HA - e.g. calling curl to send commands, extending the server to support mqtt etc
  • Configure route rules on your router to redirect the sonoff calls to your server.

Apart from the last item there is no reason why someone cannot create a docker image/hassio addon to do this.
Configuring router is obviously dependent on model and not everyone would be able to do it.

In the short term keep flashing, but I think this is a great idea for hass.io addon.
I will cross post in the hassio addons thread.

1 Like

Anyone who can do it?

There another thread on the subject here New custom component: Sonoff LAN Mode (local, with stock firmware)