FreeboxOS Binding for 3.4.x [3.4.0;3.5.0)

logo

This is now present in distribution addons

This binding is a replacement proposal for the current Freebox binding. It adds UoM usage accross all channels and the management of more Free devices (Delta, Repeater Pop, Pop player…).

Resources

org.openhab.binding.freeboxos-3.4.0-SNAPSHOT.jar

Source Code PR #12342

README

2 Likes

Hi,
If you don’t mind you could also add support for the Italian version of the Freebox Pop (Iliadbox, no “Pop” branding, it’s the only one).

I think all you need to do is use http://myiliadbox.iliad.it in place of http://mafreebox.freebox.fr and add the Italian root certificates.

You should be able to find the certificates under “developer” > “HTTPS access”:

If you want your app to work in Italy, in addition to changing the default domain, you should trust this ECC Root CA

If you can’t find them I can send them (though it’s probably best if you get them yourself for obvious trust and security reasons).

FYI the mafreebox domain with an Iliadbox responds like this:

curl -vv http://mafreebox.freebox.fr/api_version
*   Trying 212.27.38.253:80...
* Connected to mafreebox.freebox.fr (212.27.38.253) port 80 (#0)
> GET /api_version HTTP/1.1
> Host: mafreebox.freebox.fr
> User-Agent: curl/7.87.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Server: nginx
< Date: Sun, 05 Feb 2023 17:54:54 GMT
< Content-Type: text/plain
< Content-Length: 51
< Connection: keep-alive
< 
* Connection #0 to host mafreebox.freebox.fr left intact
unknown host, use ip address or myiliadbox.iliad.it

and the myiliadbox domain responds as follows:

{
  "box_model_name": "iliadbox (r1)",
  "api_base_url": "/api/",
  "https_port": 28072,
  "device_name": "Iliadbox",
  "https_available": true,
  "box_model": "ibxgw8-r1",
  "api_domain": "[redacted].ibxos.it",
  "uid": "[redacted]",
  "api_version": "9.1",
  "device_type": "FreeboxServer8,1"
}

Ok to try that. I would be glad if you could send me the certificate.

Sure

If you want your app to work in Italy, in addition to changing the default domain, you should trust this ECC Root CA:

-----BEGIN CERTIFICATE-----
MIICOjCCAcCgAwIBAgIUI0Tu7zsrBJACQIZgLMJobtbdNn4wCgYIKoZIzj0EAwIw
TDELMAkGA1UEBhMCSVQ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/L8PqM0/pMYnMyG1hBwUc2M2qg3qTJ
zeiYT9zBHxS/JXA40yH4g9NzcFisVuYrfmINb11GmeqClm2OWehSdgdv9tEph3NW
ntJTENRrDvuj/pGZsnbofzgHNN6/nanymmrEPxG+xUGLIAW7zFndTKityhJ9FRqF
ultoZR2D19hh+n1277TSCPRJzUpq9rrfiqukjua3UjBzEvevnmSbLs1bXcNAxFYN
oZZ2euHoBv+E3BHjGik4RUkEJYtf5Xh+iffk4zTMfKBERn40fB7yF1xzxyoziltL
VxfueF9V6N7qjo5Ia7kiShXXsB+QdQdweuxWm1pPYmMbfTxNEqFUs3GhwEjzLaJc
cJOedwCT4ntbyCcTQaRlDL8QFjdE4gNm2ZaoG+gqGTLPS55H+ZvLsgUCiR5YY44N
G2Gkv4w/V/eB3eAvd5lgm6oOe8ehdr5JdpD6wnW2GOHs4SBdBo6yR+4RgEimNmgF
Yu11tlZsB2Iw/TT1EyPVb5z6tK4wUgWLNFAvjXU=
-----END CERTIFICATE-----

I have just pushed an update on the PR integrating Iliadbox certificate.

Sorry for not getting back to you sooner. I installed the new official add-on for openHAB 4.1 and I confirm it works! I just had to change the URL to myiliadbox.iliad.it

One thing I’d suggest is to state that you need to accept the pairing request on the physical device screen. It took me 10 minutes to figure it out :slight_smile:

1 Like