duhow / wibox

Fermax Wi-Box managed locally
GNU General Public License v3.0
33 stars 5 forks source link

any way to use wibox locally without reflashing? #13

Closed josecarre closed 1 year ago

josecarre commented 1 year ago

Hi,

I'm thinking about buying a wi-box for my VDS monitor, I checked with Fermax tech department and they said that my monitor is compatible. i'd like to use it from my Home Assitant, where I usually try to integrate all, the only way I see is your reflashing method... is there any other way to use it locally? like any API or service opened? I'd like to get the wibox but Im a bit scared of loosing service in some years when Fermax closes its cloud or wherever they host their stuff to manage this service :(

Thanks, Jose

duhow commented 1 year ago

Hi! Unfortunately that's up to Fermax to provide.

I asked them same thing on January 2020 and they "were working in Skills for Alexa and Google Home"... and you see I'm closer to deliver that before they'll do. 😂

By using this repository patch, you can still have the "remote open" feature fully local / offline, so you don't have to be afraid for that. 😄

josecarre commented 1 year ago

Hi! Unfortunately that's up to Fermax to provide.

I asked them same thing on January 2020 and they "were working in Skills for Alexa and Google Home"... and you see I'm closer to deliver that before they'll do. 😂

Hola David,

Hmmm, I've seen in their website a video where the "head or whatever..." explains stuff coming to "Blue", this Blue service seems different than Wibox, right? at least in play store they seem to be different apps :(. My main concern is that they may be adding new features in Blue but not in wibox... They say to add integration with assistants

It seems that they are still investing efforts in that Blue thing (https://www.fermax.com/spain/sobre-fermax/actualidad/nueva-version-blue-desvio-llamada-movil) but I suspect is a different service than wibox... because at least the Apps are not the same.

By using this repository patch, you can still have the "remote open" feature fully local / offline, so you don't have to be afraid for that. 😄

Si, mi único miedo es meter la pata y quedarme sin wibox, el proceso no parece apto para torpes como yo xD

duhow commented 1 year ago

Por lo que veo, los aparatos Blue son un interfono que lleva WiFi incorporado. La gracia de Wibox es que si ya tienes un interfono básico, puedes ponerle WiFi sin tener que cambiar el interfono entero. Y lo del "desvío de llamadas" ya existe en Wibox desde que se lanzó...

No sé si los nuevos aparatos de Wibox tendrán alguna actualización nueva incorporada que pueda dificultar el proceso o no, pero aparte de eso, el proceso de por sí no supone demasiado riesgo. Pero definitivamente tienes que tener conocimientos de Linux para poder apañarte si sale algo.

josecarre commented 1 year ago

Dejé escrito inglés y español para ver como seguíamos jeje

Si, conocimientos tengo, y he flasheado (con el adaptador usb-to-serial) tasmota muchos dispositivos de casa...etc Pero he leído (en lo que creo son las instrucciones) la palabra "soldar" y se me han quitado las ganas, soy un poco manazas cuando me sacan del teclado, voy aprendiendo! pero me da pena reventar el wibox según me llegue a casa jeje

Era por si había algo mas simple para integrarlo con home assistant, por empezar con algo menos engorroso mas que nada 😆

duhow commented 1 year ago

La otra alternativa que se me ocurre es Nuki Opener, pero es algo más caro. Up to you :)

josecarre commented 1 year ago

La otra alternativa que se me ocurre es Nuki Opener, pero es algo más caro. Up to you :)

Lo vi, pero además de mas caro no te redirecciona la señal de video... solo recibe notificacion de llamada y abre que yo sepa, nada mas. El wibox hace mas cosas, asi que en breve me hago con uno :) Gracias por la ayuda! ya hablaremos cuando me de de leches con el :)

josecarre commented 1 year ago

Hi again, i've received my wibox :), I installed it yesterday and its working fine via official app and fermax cloud...

Before breaking it... because thats all I can do with it if I try to follow the installation instructions xD... I prefer to try to play a bit, I've been checking that is only has this ports opened:

PORT    STATE SERVICE
23/tcp  open  telnet
80/tcp  open  http
443/tcp open  https

I've checked that i have telnet access with your credentials. And I see that webserver running in 80&443 is not giving much info... and I tried to investigate inside the wibox in several www directories without luck to find anything useful (as the onvif server in the polish post). Also I've been investigating the services running... I understand that the Sofia mentioned in several parts is just the official app from Fermax...etc The I found the /usr/run.sh.. where a lot of stuff is shown... used and unused hehehe

So... as I said, i want to try to do some stuff before reflashing, I've seen that the process will make official Fermax app not working, is this right? I'd llike to keep using both systems, local and Fermax app, is this possible?

I've seen that the commands to control the door are here: https://github.com/duhow/wibox/blob/main/include/web/run.cgi Is similar to what the polish threads had but towards differend device, in wibox the good one is /dev/ttySGK1 I see that maybe it would be possible to unlock the door with echo -e '\xFB\x12\x01\x1E' > /dev/ttySGK1... But I also see in your file this: func_unlock(){ func_dspy; sleep 2; func_open; sleep 1; func_dspn; }, is this because just triggering the open function/code is not enough to open it? Because maybe i can start by having at least a button in homeassistant to open it... doing this function via ssh in wibox somehow with a script I guess, but i'll think about it once I see this is working or not manually

Thanks!

duhow commented 1 year ago

I'd llike to keep using both systems, local and Fermax app, is this possible?

Yes, you can modify the (custom) run.sh script to do so before (or after) flashing.

The web scripts I have are slightly improved, hence the syntax is not as in the original post. In order to open the door, you have to:

Those are the same steps I'm running.

Once you apply the patch, if you configure the device via MQTT, you can have Wibox into Home Assistant ready to open the door from there.