Freebox Delta integration

Hello everyone,
Similar to the Xiaomi integration, an integration with the Freebox Delta allowing retrieval of its devices, such as the security pack and even Somfy devices like shutters in my case.

Thank you.

I’m adding the doc https://dev.freebox.fr/sdk/os/

If a dev with a Freebox happens to pass by

1 Like

Hello everyone.

I also run Gladys on a Freebox Delta and I control my Somfy blinds via the Freebox Home app.

I’d like to make it so that everything goes only through Gladys — I found several Node-RED libraries for Freebox but nothing for home automation, and I can’t find anything either in the API documentation.

Do you think it’s possible to « capture » the request from the app and then simulate it with Gladys or Node-RED?

Thanks in advance for your answers.

Maybe by sniffing the frames with software such as Wireshark you might be able to find the request, but I’m not certain.

Hi,
Do you have the TaHoma box to control your Somfy devices from your phone Comment connecter mon volet roulant : la marche à suivre | Somfy ?
If so, there appears to be a local API feature to connect third-party software and manage your Somfy devices
https://developer.somfy.com/developer-mode

For now there’s no Gladys integration, but what follows is a proposal to potentially make the service work without integration. To be sure, the Somfy local API would need to be studied in more detail to see what’s possible, but I think it can work.
You’ll have to roll up your sleeves and get hands-on with the tech (medium level)
1- activate developer mode from your Somfy account
2 - retrieve a token to authenticate your requests; you can use Postman or Insomnia to help send the requests:

3 - With the token generated by the second request you can add the header Authorization: Bearer \u003ctoken\u003e to the local API requests to communicate with your Somfy box
The list of available routes
We can imagine that you create a virtual MQTT device with 2 buttons associated to 2 scenes, one for the execution route /exec/apply that triggers the raise, and one that triggers the lower.
Maybe discuss with an expert in scenes/virtual devices to refine. It’s quite a bit of tinkering but it would allow you to control your blinds while waiting for a real integration to appear.

If you have questions about the technical jargon of the requests, don’t hesitate — I’ll try to help as best I can.

Not being a Node-RED user I can’t help you with that and maybe there’s a way to simplify what I told you by using Node-RED or even to directly use Gladys’s real « blind » features; someone else would need to look into that side.

I had some free time so I did a first rough outline; if someone is up for taking over, don’t hesitate.

Thank you for your quick reply.

I don’t have

Sorry, I didn’t understand that, I’ll let someone else reply to you then. On the other hand, it allowed me to see how it worked on Somfy’s side and potentially a Gladys integration could be done easily… we’ll see what happens next.

Hello,
I also have a Freebox Delta and Somfy roller shutters (RTS protocol) that work together as well as the cameras from the security pack. I would be very interested in being able to manage everything with Gladys.
The voting proposal did not convince many members, so I’d prefer to wait before voting.

If this may interest Freebox owners (especially those with the security pack) I’ve started the integration into Gladys.
Well, I’m a beginner with this technology but in a few days, using existing integrations as a guide, I made the connection with the Freebox and retrieved the list of the different devices of the security pack (sensor, remote control, shutters (Somfy IO) and camera)

Then I have to add all the features available for each device and fix the few bugs.

I hope to be able to complete this development. As soon as I manage to make something functional I’ll publish a test Docker image.

4 Likes

Hi @bertrandda

The link is dead
I have a myfox HC2 box with which I’d like to communicate via Gladys to control it, your explanations help me a bit
I managed to communicate via node-red (via the APIs Myfox API) but it’s true that being able to do it via a Gladys integration would be great… :slight_smile:
I’ll take a look at it when I have some time and with the examples of integrations already done, I must say :slight_smile:

Hi @_Will_71 great news — count me in as soon as an image is available.
Thanks for this development.

So, I’ve made some progress with reading the sensors and shutters (Somfy IO) of the security pack.

image

2 Likes

After reading I can now control my shutters (Somfy IO) from Gladys.

@pierre-gilles, I also have a camera linked to the security pack of my Freebox, I can detect it and retrieve the address to access the video stream, I would like to be able to integrate it into the camera integration list

1 Like

Excellent :+1:

It all depends on the feed that’s exposed — what kind of feed do you receive? :slight_smile:

The Freebox provides me with an HTTP stream

http://freeboxcam:*********@192.168.***.***/img/stream.m3u8

I tried inserting it manually and it works fine in Gladys.

Ok perfect, in that case it would just require the Freebox Delta integration to create devices of type « camera », then we need to see how to make the « camera » integration properly handle these devices, but normally that shouldn’t pose any problems :slight_smile:

I’ll see if I can do that and, if necessary, I’ll ask you for help.

1 Like

FYI

2 Likes

Hello @_Will_71,
Great,

Which Somfy tech do you have? IO or RTS.
For now I really focused on the shutters because that’s the reason I took the Free security pack. €50 for the pack with sensors, camera and Somfy control is much cheaper than Somfy’s Tahoma box.

So right now I have state feedback and control of Somfy IO shutters. For RTS there is only control but it’s the same principle so it should work.

Then I have state feedback from the contact (open/close) sensor and the motion sensor. However, for these sensors, since I have to poll the API (set by default to 30s), there will be a delay between when your sensor changes state and when it is reflected in Gladys. The problem is that I have the impression the API stops returning these states if you make too many requests.

I dug through the forums and on Home Assistant and Jeedom they encounter the same issue.

There are also some pieces of information that are not reported correctly by Free’s API. For example, the motion sensor returns a null battery value while the contact sensor correctly returns a value between 0 and 100.

I can retrieve the camera’s HTTP address but I’ll see how to integrate it.

For the alarm I haven’t done anything yet because there is not yet a component to manage it. So I’ll look into that later.

In any case, as soon as possible I’ll make an image available so you can try it.

1 Like