|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<thing:thing-descriptions bindingId="freebox" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0" |
| 5 | + xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> |
| 6 | + |
| 7 | + <thing-type id="server"> |
| 8 | + <label>Freebox Revolution Server</label> |
| 9 | + <description>Provides various informations regarding the status of the Freebox Server</description> |
| 10 | + |
| 11 | + <channels> |
| 12 | + <channel id="fwversion" typeId="fwversion"/> |
| 13 | + <channel id="uptime" typeId="uptime"/> |
| 14 | + <channel id="restarted" typeId="restarted"/> |
| 15 | + <channel id="tempcpum" typeId="tempcpum" /> |
| 16 | + <channel id="tempcpub" typeId="tempcpub" /> |
| 17 | + <channel id="tempswitch" typeId="tempswitch" /> |
| 18 | + <channel id="fanspeed" typeId="fanspeed" /> |
| 19 | + <channel id="reboot" typeId="reboot" /> |
| 20 | + <channel id="lcd_brightness" typeId="lcd_brightness" /> |
| 21 | + <channel id="lcd_orientation" typeId="lcd_orientation" /> |
| 22 | + <channel id="lcd_forced" typeId="lcd_forced" /> |
| 23 | + <channel id="wifi_status" typeId="wifi_status" /> |
| 24 | + <channel id="xdsl_status" typeId="xdsl_status" /> |
| 25 | + <channel id="line_status" typeId="line_status" /> |
| 26 | + <channel id="ipv4" typeId="ipv4" /> |
| 27 | + <channel id="rate_up" typeId="rate_up" /> |
| 28 | + <channel id="rate_down" typeId="rate_down" /> |
| 29 | + <channel id="bytes_up" typeId="bytes_up" /> |
| 30 | + <channel id="bytes_down" typeId="bytes_down" /> |
| 31 | + <channel id="onhook" typeId="onhook" /> |
| 32 | + <channel id="ringing" typeId="ringing" /> |
| 33 | + <channel id="call_number" typeId="call_number" /> |
| 34 | + <channel id="call_duration" typeId="call_duration" /> |
| 35 | + <channel id="call_timestamp" typeId="call_timestamp" /> |
| 36 | + <channel id="call_status" typeId="call_status" /> |
| 37 | + <channel id="call_name" typeId="call_name" /> |
| 38 | + </channels> |
| 39 | + |
| 40 | + <config-description> |
| 41 | + <parameter name="ipAddress" type="text"> |
| 42 | + <label>Freebox Network Address</label> |
| 43 | + <context>network_address</context> |
| 44 | + <description>The IP address / FQDN of the Freebox Server (can include port number)</description> |
| 45 | + <default>mafreebox.freebox.fr</default> |
| 46 | + <required>false</required> |
| 47 | + </parameter> |
| 48 | + |
| 49 | + <parameter name="appToken" type="text"> |
| 50 | + <label>Application token</label> |
| 51 | + <description>Token generated by the Freebox server</description> |
| 52 | + <required>true</required> |
| 53 | + </parameter> |
| 54 | + |
| 55 | + <parameter name="refreshInterval" type="integer"> |
| 56 | + <label>Refresh Interval</label> |
| 57 | + <description>The refresh interval in seconds which is used to poll given Freebox Server.</description> |
| 58 | + <default>30</default> |
| 59 | + <required>false</required> |
| 60 | + </parameter> |
| 61 | + |
| 62 | + <parameter name="refreshPhoneInterval" type="integer"> |
| 63 | + <label>Phone Refresh Interval</label> |
| 64 | + <description>The refresh interval in seconds which is used to poll given Freebox Server for phone informations.</description> |
| 65 | + <default>2</default> |
| 66 | + <required>false</required> |
| 67 | + </parameter> |
| 68 | + |
| 69 | + </config-description> |
| 70 | + </thing-type> |
| 71 | + |
| 72 | + <channel-type id="fwversion" advanced="true"> |
| 73 | + <item-type>String</item-type> |
| 74 | + <label>Firmware Version</label> |
| 75 | + <description>Version of the Freebox Server Firmware</description> |
| 76 | + <state readOnly="true" /> |
| 77 | + </channel-type> |
| 78 | + |
| 79 | + <channel-type id="uptime" advanced="true"> |
| 80 | + <item-type>Number</item-type> |
| 81 | + <label>Server uptime</label> |
| 82 | + <description>Time since last reboot of the Freebox Server</description> |
| 83 | + <state readOnly="true" pattern="%d s"/> |
| 84 | + </channel-type> |
| 85 | + |
| 86 | + <channel-type id="restarted" advanced="true"> |
| 87 | + <item-type>Switch</item-type> |
| 88 | + <label>Just restarted</label> |
| 89 | + <description>Has the Freebox server have restarted during the last poll period</description> |
| 90 | + <category>Alarm</category> |
| 91 | + <state readOnly="true" /> |
| 92 | + </channel-type> |
| 93 | + |
| 94 | + <channel-type id="reboot"> |
| 95 | + <item-type>Switch</item-type> |
| 96 | + <label>Reboot Freebox</label> |
| 97 | + <description>Reboots the Freebox server</description> |
| 98 | + <category>Switch</category> |
| 99 | + </channel-type> |
| 100 | + |
| 101 | + <channel-type id="tempcpum" advanced="true"> |
| 102 | + <item-type>Number</item-type> |
| 103 | + <label>CPUm Temperature</label> |
| 104 | + <description>Actual measured CPU Marvell temperature of the Freebox Server</description> |
| 105 | + <category>Temperature</category> |
| 106 | + <state readOnly="true" pattern="%d °C"/> |
| 107 | + </channel-type> |
| 108 | + |
| 109 | + <channel-type id="tempcpub" advanced="true"> |
| 110 | + <item-type>Number</item-type> |
| 111 | + <label>CPUb Temperature</label> |
| 112 | + <description>Actual measured CPU Broadcom (xDSL) temperature of the Freebox Server</description> |
| 113 | + <category>Temperature</category> |
| 114 | + <state readOnly="true" pattern="%d °C"/> |
| 115 | + </channel-type> |
| 116 | + |
| 117 | + <channel-type id="tempswitch" advanced="true"> |
| 118 | + <item-type>Number</item-type> |
| 119 | + <label>Switch Temperature</label> |
| 120 | + <description>Actual measured switch temperature of the Freebox Server</description> |
| 121 | + <category>Temperature</category> |
| 122 | + <state readOnly="true" pattern="%d °C"/> |
| 123 | + </channel-type> |
| 124 | + |
| 125 | + <channel-type id="fanspeed" advanced="true"> |
| 126 | + <item-type>Number</item-type> |
| 127 | + <label>Fan Speed</label> |
| 128 | + <description>Actual measured fan speed (rpm) of the Freebox Server</description> |
| 129 | + <state readOnly="true" pattern="%d rpm"/> |
| 130 | + </channel-type> |
| 131 | + |
| 132 | + <channel-type id="lcd_brightness" advanced="true"> |
| 133 | + <item-type>Number</item-type> |
| 134 | + <label>Screen Brightness</label> |
| 135 | + <description>Brightness level of the screen in percent</description> |
| 136 | + <category>DimmableLight</category> |
| 137 | + <state pattern="%d %%"/> |
| 138 | + </channel-type> |
| 139 | + |
| 140 | + <channel-type id="lcd_orientation"> |
| 141 | + <item-type>Number</item-type> |
| 142 | + <label>Screen Orientation</label> |
| 143 | + <description>Screen Orientation in degrees</description> |
| 144 | + <state pattern="%d °"> |
| 145 | + <options> |
| 146 | + <option value="0">Horizontal</option> |
| 147 | + <option value="90">Turned left</option> |
| 148 | + <option value="180">Turned right</option> |
| 149 | + <option value="270">Reversed</option> |
| 150 | + </options> |
| 151 | + </state> |
| 152 | + </channel-type> |
| 153 | + |
| 154 | + <channel-type id="lcd_forced" advanced="true"> |
| 155 | + <item-type>Switch</item-type> |
| 156 | + <label>Forced Orientation</label> |
| 157 | + <description>Indicates whether the screen orientation forced</description> |
| 158 | + <category>Switch</category> |
| 159 | + </channel-type> |
| 160 | + |
| 161 | + <channel-type id="wifi_status"> |
| 162 | + <item-type>Switch</item-type> |
| 163 | + <label>Wifi Enabled</label> |
| 164 | + <description>Indicates whether the wifi network is enabled</description> |
| 165 | + <category>Switch</category> |
| 166 | + </channel-type> |
| 167 | + |
| 168 | + <channel-type id="xdsl_status"> |
| 169 | + <item-type>String</item-type> |
| 170 | + <label>xDSL Status</label> |
| 171 | + <description>Status of the xDSL line</description> |
| 172 | + <state readOnly="true" /> |
| 173 | + </channel-type> |
| 174 | + |
| 175 | + <channel-type id="line_status"> |
| 176 | + <item-type>String</item-type> |
| 177 | + <label>Line Status</label> |
| 178 | + <description>Status of network line connexion</description> |
| 179 | + <state readOnly="true" /> |
| 180 | + </channel-type> |
| 181 | + |
| 182 | + <channel-type id="ipv4" advanced="true"> |
| 183 | + <item-type>String</item-type> |
| 184 | + <label>IP Address</label> |
| 185 | + <description>Public IP Address of the Freebox Server</description> |
| 186 | + <state readOnly="true" /> |
| 187 | + </channel-type> |
| 188 | + |
| 189 | + <channel-type id="rate_up" advanced="true"> |
| 190 | + <item-type>Number</item-type> |
| 191 | + <label>Upload Rate</label> |
| 192 | + <description>Current upload rate in byte/s</description> |
| 193 | + <state readOnly="true" pattern="%d b/s"/> |
| 194 | + </channel-type> |
| 195 | + |
| 196 | + <channel-type id="rate_down" advanced="true"> |
| 197 | + <item-type>Number</item-type> |
| 198 | + <label>Download Rate</label> |
| 199 | + <description>Current download rate in byte/s</description> |
| 200 | + <state readOnly="true" pattern="%d b/s"/> |
| 201 | + </channel-type> |
| 202 | + |
| 203 | + <channel-type id="bytes_up" advanced="true"> |
| 204 | + <item-type>Number</item-type> |
| 205 | + <label>Uploaded</label> |
| 206 | + <description>Total uploaded bytes since last connection</description> |
| 207 | + <state readOnly="true" pattern="%d bytes"/> |
| 208 | + </channel-type> |
| 209 | + |
| 210 | + <channel-type id="bytes_down" advanced="true"> |
| 211 | + <item-type>Number</item-type> |
| 212 | + <label>Downloaded</label> |
| 213 | + <description>Total downloaded bytes since last connection</description> |
| 214 | + <state readOnly="true" pattern="%d bytes"/> |
| 215 | + </channel-type> |
| 216 | + |
| 217 | + <channel-type id="onhook"> |
| 218 | + <item-type>Switch</item-type> |
| 219 | + <label>On-hook</label> |
| 220 | + <description>Indicates whether the phone is on hook</description> |
| 221 | + <category>Switch</category> |
| 222 | + <state readOnly="true" /> |
| 223 | + </channel-type> |
| 224 | + |
| 225 | + <channel-type id="ringing"> |
| 226 | + <item-type>Switch</item-type> |
| 227 | + <label>Ringing</label> |
| 228 | + <description>Is the phone ringing</description> |
| 229 | + <category>Alarm</category> |
| 230 | + <state readOnly="true" /> |
| 231 | + </channel-type> |
| 232 | + |
| 233 | + <channel-type id="call_number"> |
| 234 | + <item-type>String</item-type> |
| 235 | + <label>Phone Number</label> |
| 236 | + <description>Callee number for outgoing calls. Caller number for incoming calls</description> |
| 237 | + <state readOnly="true" /> |
| 238 | + </channel-type> |
| 239 | + |
| 240 | + <channel-type id="call_duration"> |
| 241 | + <item-type>Number</item-type> |
| 242 | + <label>Duration</label> |
| 243 | + <description>Call duration in seconds</description> |
| 244 | + <state readOnly="true" pattern="%d s"/> |
| 245 | + </channel-type> |
| 246 | + |
| 247 | + <channel-type id="call_timestamp"> |
| 248 | + <item-type>String</item-type> |
| 249 | + <label>Timestamp</label> |
| 250 | + <description>Call creation timestamp</description> |
| 251 | + <state readOnly="true" /> |
| 252 | + </channel-type> |
| 253 | + |
| 254 | + <channel-type id="call_status"> |
| 255 | + <item-type>String</item-type> |
| 256 | + <label>Call Type</label> |
| 257 | + <description>Call Type (ingoing, outgoing, missed)</description> |
| 258 | + <state readOnly="true"> |
| 259 | + <options> |
| 260 | + <option value="ingoing">Ingoing call</option> |
| 261 | + <option value="outgoing">Outgoing call</option> |
| 262 | + <option value="missing">Missed call</option> |
| 263 | + </options> |
| 264 | + </state> |
| 265 | + </channel-type> |
| 266 | + |
| 267 | + <channel-type id="call_name"> |
| 268 | + <item-type>String</item-type> |
| 269 | + <label>Caller name</label> |
| 270 | + <description>Callee name for outgoing calls. Caller name for incoming calls</description> |
| 271 | + <state readOnly="true" /> |
| 272 | + </channel-type> |
| 273 | +</thing:thing-descriptions> |
0 commit comments