Skip to content

FreeboxOS Binding ​

Free is a French telecom operator providing advanced equipments to manage your broadband access.

This binding integrates the Freebox Revolution and Freebox Delta to your openHAB installation.

The server can be connected to Free infrastructures either by xDSL or fiber optic.

This binding provides metrics about your network bridge/router and attached devices (wifi repeaters, TV boxes ...). It also provides home automation capabilities when appropriate dongle has been inserted in the server.

IliadBox, italian version of the Freebox Pop are also compatible.

Supported Things ​

This binding supports the following thing types:

ThingThing TypeDescription
apiBridgeBridge to access freebox OS API hosted by the server
deltaThingA Freebox Delta server
revolutionThingA Freebox Revolution server
playerThingA TV player equipment
active-playerThingA TV player equipment with API capabilities (e.g. Devialet)
fxsThingThe phone wired to the Freebox Server
dectThingA DECT phone
callThingPhone calls
hostThingA network device on the local network
wifihostThingA wifi networked device on the local network
freeplugThingAn Ethernet / CPL gateway
repeaterThingA Free wifi repeater
vm (*)ThingA virtual machine hosted on the server
basic-shutter (*)ThingA basic shutter configured in your Freebox Server
shutter (*)ThingAn IO Home Control shutter configured in your Freebox Server
kfb (*)ThingA keyfob configured in your Freebox Server
alarm (*)ThingThe Alarm system configured in your Freebox Server

(*) Restricted to servers >= Delta

Discovery ​

The API bridge is discovered automatically through mDNS in the local network. After the bridge is discovered and available to openHAB, the binding will automatically discover phone, network devices available on the local network. Note that the discovered thing will be setup to use only HTTP API (and not HTTPS) because only an IP can be automatically determined while a domain name is required to use HTTPS with a valid certificate.

Binding Configuration ​

FreeboxOS binding has the following configuration parameters:

Parameter LabelParameter IDDescriptionDefault
TimeouttimeoutThe timeout for reading from the API in seconds.10
Callback URLcallbackUrlURL to use for playing notification sounds, e.g. http://192.168.0.2:8080

Thing Configuration ​

Api Bridge ​

The api bridge thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
Freebox Server AddressapiDomainThe domain to use in place of hardcoded Freebox ipNomafreebox.freebox.fr
Application TokenappTokenToken generated by the Freebox Server.Yes
Network Device DiscoverydiscoverNetDeviceEnable the discovery of network device things.Nofalse
Background Discovery IntervaldiscoveryIntervalInterval in minutes - 0 disables background discoveryNo10
HTTPS AvailablehttpsAvailableTells if HTTPS has been configured on the FreeboxNofalse
HTTPS porthttpsPortPort to use for HTTPS access to the Freebox ApiNo443
Websocket Reconnect IntervalwsReconnectIntervalDisconnection interval, in minutes- 0 disables websocket usageNo60

If the parameter apiDomain is not set, the binding will use the default address used by Free to access your Freebox Server (mafreebox.freebox.fr). The bridge thing will initialize only if a valid application token (parameter appToken) is filled.

Server Things ​

The revolution or delta thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the Freebox ServerNo30

Player Things ​

The player or active-player thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
IDidId of the player within Freebox ApiYes1
PasswordpasswordAirPlay passwordNo
Remote CoderemoteCodeCode associated to remote controlNo
Accept all MP3acceptAllMp3Accept any bitrate for MP3 audio or only bitrates greater than 64 kbpsNotrue
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the Freebox playerNo30

Phone Things ​

The fxs or dect thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
IDidId of the phone lineYes1
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll for phone state.No30

The call thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll for phone calls.No30

Network Device Things ​

The host thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
MAC AddressmacAddressThe MAC address of the network device.Yes
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the device.No30

The wifihost thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
MAC AddressmacAddressThe MAC address of the network device.Yes
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the device.No30
mDNS NamemDNSThe mDNS name of the network device. Useful in case of virtual MAC.No

When used, mDNS will search the host based on its mDNS name and eventually update the MAC address accordingly. This is useful with devices, especially Apple equipment, that uses randomly generated MAC addresses.

Freeplug Thing ​

The freeplug thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
MAC AddressmacAddressThe MAC address of the network device.Yes
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the device.No30

Repeater Thing ​

The repeater thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault

| ID | id | Id of the repeater within Freebox Api | Yes | 1 | | Refresh Interval | refreshInterval | The refresh interval in seconds which is used to poll the repeater. | No | 30 |

Virtual Machine Thing ​

The vm thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault

| ID | id | Id of the Virtual Machine | Yes | 1 | | Refresh Interval | refreshInterval | The refresh interval in seconds which is used to poll the virtual machine. | No | 30 |

Home Node Things ​

The basic-shutter, shutter, kfb or alarm thing requires the following configuration parameters:

Parameter LabelParameter IDDescriptionRequiredDefault
IDidId of the Home NodeYes1
Refresh IntervalrefreshIntervalThe refresh interval in seconds which is used to poll the NodeNo30

Authentication ​

You will have to authorize openHAB to connect to your Freebox. Here is the process described:

Step 1 At binding startup, if no token is recorded in the Freebox Server (bridge) configuration, the binding will run a pairing request

Step 2 Run to your Freebox and approve the pairing request for openHAB FreeboxOS Binding that is displayed on the Freebox screen

Step 3 the application token is automatically recorded in the Freebox Server (bridge) configuration

Step 4 you can use the console command freeboxos apptoken to display the application token and use it later to set up your thing in a configuration file

Step 5 log in your Freebox admin console to allocate needed rights to FreeboxOS Binding

Once initialized, the thing will generate all available channels.

Channels ​

The following channels are supported:

Thing TypeChannel Group IDChannel IDItem TypeAccess ModeDescription
revolutiondisplaylcd-brightnessNumber:DimensionlessRWBrightness level of the screen in percent
revolutiondisplaylcd-orientationNumberRWScreen Orientation in degrees (0 or 90 or 180 or 270)
revolutiondisplaylcd-forcedSwitchRWIndicates whether the screen orientation is forced
revolution, deltafile-sharingftp-statusSwitchRWIndicates whether the FTP server is enabled
revolution, deltafile-sharingsamba-file-statusSwitchRWIndicates whether Windows File Sharing is enabled
revolution, deltafile-sharingsamba-printer-statusSwitchRWIndicates whether Windows Printer Sharing is enabled
revolution, deltafile-sharingafp-file-statusSwitchRWIndicates whether Mac OS File Sharing is enabled
revolution, deltasysinfouptimeNumber:TimeRTime since last reboot of the equipment
revolution, deltasysinfoip-addressStringRInternal IPv4 Address of the Freebox Server
revolution, deltasysinfobox-eventTrigger-Triggers when an event related to the Freebox Server has been detected (**).
revolution, deltaactionswifi-statusSwitchRWIndicates whether the WiFi network is enabled
revolution, deltaactionsupnpav-statusSwitchRWIndicates whether UPnP AV is enabled
revolution, deltaactionsairmedia-statusSwitchRWIndicates whether Air Media is enabled
revolution, deltaconnection-statusline-statusStringRStatus of network line connection
revolution, deltaconnection-statusline-typeStringRType of network line connection
revolution, deltaconnection-statusline-mediaStringRMedia of network line connection
revolution, deltaconnection-statusip-addressStringRPublic IPv4 Address of the Freebox Server
revolution, deltaconnection-statusipv6-addressStringRPublic IPv6 Address of the Freebox Server
revolution, deltaconnection-statusbandwidth-upNumber:DataTransferRateRRaw value of the upload bandwidth
revolution, deltaconnection-statusbandwidth-downNumber:DataTransferRateRRaw value of the download bandwidth
revolution, deltaconnection-statusbandwidth-usage-upNumber:DimensionlessRPortion of the upload bandwidth currently used
revolution, deltaconnection-statusbandwidth-usage-downNumber:DimensionlessRPortion of the download bandwidth currently used
revolution, deltaconnection-statusrate-upNumber:DataTransferRateRCurrent upload rate
revolution, deltaconnection-statusrate-downNumber:DataTransferRateRCurrent download rate
revolution, deltaconnection-statusbytes-upNumber:DataAmountRTotal data uploaded since last restart
revolution, deltaconnection-statusbytes-downNumber:DataAmountRTotal data downloaded since last restart
revolution, deltawireguardstateStringRCurrent state of the WireGuard VPN Server
revolution, deltawireguardconnectionsNumberRNumber of clients connected to the server
revolution, deltawireguardauth-connectionsNumberRNumber of authenticated clients connected to the server
revolution, deltapptpstateStringRCurrent state of the PPTP VPN Server
revolution, deltapptpconnectionsNumberRNumber of clients connected to the server
revolution, deltapptpauth-connectionsNumberRNumber of authenticated clients connected to the server
revolution, deltaopenvpn-routedstateStringRCurrent state of the OpenVPN Routed Server
revolution, deltaopenvpn-routedconnectionsNumberRNumber of clients connected to the server
revolution, deltaopenvpn-routedauth-connectionsNumberRNumber of authenticated clients connected to the server
revolution, deltaopenvpn-bridgestateStringRCurrent state of the OpenVPN Bridged Server
revolution, deltaopenvpn-bridgeconnectionsNumberRNumber of clients connected to the server
revolution, deltaopenvpn-bridgeauth-connectionsNumberRNumber of authenticated clients connected to the server
revolution, deltaipsecstateStringRCurrent state of the IPsec VPN Server
revolution, deltaipsecconnectionsNumberRNumber of clients connected to the server
revolution, deltaipsecauth-connectionsNumberRNumber of authenticated clients connected to the server
active-player, playerplayer-actionskey-codeStringWSimulates pushing a remote control button
active-playerplayer-statusplayer-statusStringRStatus of the Freebox TV player
active-playerplayer-statuspackageStringRName of the package currently active on the player
active-playersysinfouptimeNumber:TimeRTime since last reboot of the equipment
active-playersysinfobox-eventTrigger-Triggers when an event related to the Freebox Player has been detected (**).
vmvmstatusstatusSwitchRWStatus of the virtual machine
(*)connectivityreachableSwitchRIndicates if the network device is reachable or not
(*)connectivitylast-seenDateTimeRDate and time of last activity for the network device
(*)connectivityip-addressStringRIPv4 Address of the network device
fxs, decttelephony-serviceStringRStatus of the telephony service
fxs, dectringingSwitchRWIs the phone ringing
fxs, decthardware-statusStringRHardware status of the phone line
fxsonhookSwitchRIndicates whether the phone is on hook
dectdect-activeSwitchRWActivates / stops the integrated DECT base
dectalternate-ringSwitchRWAlternating Ring
dectgain-rxDimmerRWGain RX
dectgain-txDimmerRWGain TX
callincomingnumberCallRCurrent incoming call number
callincomingtimestampDateTimeRCurrent incoming call creation timestamp
callincomingnameStringRCurrent incoming caller name
callacceptednumberCallRLast accepted call number
callaccepteddurationNumber:TimeRLast accepted call duration in seconds
callacceptedtimestampDateTimeRLast accepted call creation timestamp
callacceptednameStringRLast accepted caller name
callmissednumberCallRLast missed call number
callmissedtimestampDateTimeRLast missed call creation timestamp
callmissednameStringRLast missed caller name
calloutgoingnumberCallRLast outgoing call number
calloutgoingdurationNumber:TimeRLast outgoing call duration in seconds
calloutgoingtimestampDateTimeRLast outgoing call creation timestamp
calloutgoingnameStringRLast outgoing called name
basic-shutterbasic-shutterRollershutterWUp, stop and down commands for a RTS shutter

(*): any thing type amongst active-player, player, host, wifihost, repeater and vm. (**): Possible event: "restarted", "firmware_updated" and "reboot_requested"

Actions for rules ​

The following actions are available in rules/scripting:

Thing TypeAction NameParametersDescription
host, wifihostwolNoneSends a wake on lan packet to the lan connected host
active-playerrebootPlayerNoneReboots the Freebox Player
active-player, playersendKeykey: StringSends a key (remote emulation) to the player
active-player, playersendLongKeykey: StringSends a key emulating a longpress on the button
active-player, playersendMultipleKeyskeys: StringSends multiple keys to the player, comma separated
active-player, playersendKeyRepeatkey: String, count: intSends a key multiple times
delta, revolutionrebootServerNoneReboots the Freebox Server
freeplugresetPlugNoneResets the Freeplug
callresetCallsNoneDeletes all calls logged in the queue
repeaterrebootRepeaterNoneReboots the Free Repeater