AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.58k stars 407 forks source link

[Feature request] SONOFF iHost - SonoffLAN integration support? #1144

Open Hedda opened 1 year ago

Hedda commented 1 year ago

Suggest that you consider maybe looking to add support in SonoffLAN integration for the upcoming SONOFF iHost from ITead.

Note! This suggested feature request is a early since the product is still only available as pre-order or invited reviewers and devs.

The device is being sold as a local smart home hub and home server as is currently primarily being marketed as a local access and local control device that does not need cloud connection, though I understand that you currently need to sign up for an eWeLink cloud account and login with it in order to enable developer mode on the device using the officially supported procedure for it.

They will sell two models referred to as “4G version” (Quad-Core CPU + 4GB RAM) and “2G version” (Dual-Core CPU + 2GB RAM).

It features the same Silicon Labs EFR32MG21 chip as the original Sonoff ZBBridge (and their new Sonoff ZBDongle-E USB dongle):

For reference, ITead/Sonoff have official documentation here for their officially supported OS and firmware that it ships with:

More references:

AlexxIT commented 1 year ago

I don't think I have time to play with this device.

eerke2021 commented 1 year ago

Is this request to add support for this working Ona different device being able to communicate with the iHost remotely or on the iHost itself? I think you mean the former but was here trying to see about the former. The SD card of my Raspberry Pi 3B died and I'm wondering about installing Home assistant and this in the iHost docker bit. Would be cool if HA and this could be run from the iHost itself so only one thing needs to be on all the time. Zigbee devices attached directly to the iHost, even Sonoff's own, do not appear in eWeLink, which I think is a mistake. This would be a workaround.

Hedda commented 1 year ago

Is this request to add support for this working Ona different device being able to communicate with the iHost remotely or on the iHost itself? I think you mean the former but was here trying to see about the former. The SD card of my Raspberry Pi 3B died and I'm wondering about installing Home assistant and this in the iHost docker bit. Would be cool if HA and this could be run from the iHost itself so only one thing needs to be on all the time.

That subject about running Home Assistant in Docker on the Sononff iHost is really off-topic here as this is only a request that is specifically only about controlling Sonoff Devices with eWeLink (original) firmware over LAN using the "SonoffLAN" integration for Home Assistant, e.g. using the interaction from this repo as intended:

https://github.com/AlexxIT/SonoffLAN/blob/master/README.md

https://www.youtube.com/watch?v=DsTqOlrQQ1k&ab_channel=DrZzs

Suggest that you instead start a new topic in Home Assistant's community forum with a clear title so that the subject of that thread can be specified to be only about running Home Assistant container or Home Assistant core as an add-on in Docker on the Sonoff iHost with original firmware if that is what you want to discuss.

To at least help you a little in regards, recommend that you reference the official ITead/Sonoff documentation for the firmware it ships with as that might be interesting for you because it does actually officially have support for third-party applications running locally as "add-ons" via Docker Containers on the Micro SD-card:

Again, please respect that installing Home Assistant under Docker on this Sonoff iHost has nothing to do with my original request.

eerke2021 commented 1 year ago

Is English your first language?

Hedda commented 1 year ago

Is English your first language?

No, it's not, but I know what it means when they say that someone go off on a tangent, do you? Please, try not to hijack this issue.

image

eerke2021 commented 1 year ago

Thought so. On 31 Mar 2023, at 19:59, Hedda @.***> wrote:

Is English your first language?

No.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

zvrka commented 1 year ago

would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA.

eerke2021 commented 1 year ago

Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.***> wrote: would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

zvrka commented 1 year ago

Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.> wrote: would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

mine card works perfectly,you did not read that right...usb port on ihost for now is only for debuging purposses

eerke2021 commented 1 year ago

Nope. This page on the ITEAD says these exact words:SONOFF iHost Smart Home Hub - SONOFF Officialsonoff.tech“Storage Methods: USB and SD card (max. 256 GB)“It would be pretty hard to misread that. On 13 Apr 2023, at 01:44, zvrka @.***> wrote:

Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.> wrote: would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

mine card works perfectly,you did not read that right...usb port on ihost for now is only for debuging purposses

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

AlexxIT commented 1 year ago

The Coolkit team was kind enough to send me this device (all other Sonoff devices I've always bought myself). I'll see what I can do when I get it.

eerke2021 commented 1 year ago

Mine keeps forgetting it has an SD card, but assuming yours works there's expandable storage, it's Linux based and can run dockers. I believe there is also an open local API, but from memory that's being released in June on their schedule, although I imagine they'd let you know before then. I've not read anywhere what information is communicated to docker containers from the main body or what antennas are available directly, although there are already instructions on installing node-red and homebridge on their website.

sipimokus commented 1 year ago

Hello,

I have started developing a pip package for the eWelink CUBE API, which is used by iHost (and NSPanel Pro as well). It's created about from the existing Node-RED package, code is available at here: https://github.com/sm4rth0m3/python-pip.sonoff-ewelink-cube-client-api

This is just a REST API library and does not include integration with HASS, but I can try keep into consideration (using asyncio and aiohttp).

I hope it will be useful.