[avmfritz] Improved documentation and logging (#8745)

* Improved documentation and logging
* Add details about activating the Call Monitor

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
pull/8727/head
Christoph Weitkamp 2020-10-13 22:29:39 +02:00 committed by GitHub
parent a12e5f60ce
commit 42267eaf4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 11 deletions

View File

@ -10,7 +10,25 @@ The binding integrates AVM FRITZ!Boxes with a special focus on the AHA ([AVM Hom
FRITZ!Boxes (thing type `fritzbox`) are supported as bridges and they offer channels for call monitoring. FRITZ!Boxes (thing type `fritzbox`) are supported as bridges and they offer channels for call monitoring.
To activate the call monitor interface on a FRITZ!Box, you need to dial once `#96*5*` on a connected telephone. To activate the call monitor interface on a FRITZ!Box, you need to dial once `#96*5*` on a connected telephone.
You should hear a short audio signal as confirmation.
This procedure opens TCP/IP port 1012 on your FRITZ!Box.
(It can be deactivated again by dialing `#96*4*`.) (It can be deactivated again by dialing `#96*4*`.)
You can test if everything is working with the Telnet program from your openHAB server:
```
telnet fritz.box 1012
```
If you see an output like this:
```
Trying 192.168.178.1...
Connected to fritz.box.
Escape character is '^]'.
```
then it successfully connected to the call monitor.
If not, please make sure that the target openHAB system does not block the port on its firewall.
Additionally, they serve as a bridge for accessing other AHA devices. Additionally, they serve as a bridge for accessing other AHA devices.
For AHA functionality, the router has to run at least on firmware FRITZ!OS 6.00 and it has to support the "Smart Home" service. For AHA functionality, the router has to run at least on firmware FRITZ!OS 6.00 and it has to support the "Smart Home" service.
@ -61,11 +79,11 @@ Beside four customizable buttons the FRITZ!DECT 440 supports temperature reading
The following sensors have been successfully tested using FRITZ!OS 7 for FRITZ!Box 7490 / 7590: The following sensors have been successfully tested using FRITZ!OS 7 for FRITZ!Box 7490 / 7590:
- [SmartHome Tür-/Fensterkontakt (optisch)](https://www.smarthome.de/geraete/eurotronic-smarthome-tuer-fensterkontakt-optisch) - an optical door/window contact - [SmartHome Tür-/Fensterkontakt (optisch)](https://www.smarthome.de/geraete/eurotronic-smarthome-tuer-fensterkontakt-optisch) - an optical door/window contact (thing type `HAN_FUN_CONTACT`)
- [SmartHome Tür-/Fensterkontakt (magnetisch)](https://www.smarthome.de/geraete/smarthome-tuer-fensterkontakt-magnetisch-weiss) - a magnetic door/window contact - [SmartHome Tür-/Fensterkontakt (magnetisch)](https://www.smarthome.de/geraete/smarthome-tuer-fensterkontakt-magnetisch-weiss) - a magnetic door/window contact (thing type `HAN_FUN_CONTACT`)
- [SmartHome Bewegungsmelder](https://www.smarthome.de/geraete/telekom-smarthome-bewegungsmelder-innen) - a motion sensor - [SmartHome Bewegungsmelder](https://www.smarthome.de/geraete/telekom-smarthome-bewegungsmelder-innen) - a motion sensor (thing type `HAN_FUN_CONTACT`)
- [SmartHome Rauchmelder](https://www.smarthome.de/geraete/smarthome-rauchmelder-weiss) - a smoke detector - [SmartHome Rauchmelder](https://www.smarthome.de/geraete/smarthome-rauchmelder-weiss) - a smoke detector (thing type `HAN_FUN_CONTACT`)
- [SmartHome Wandtaster](https://www.smarthome.de/geraete/telekom-smarthome-wandtaster) - a switch with two buttons - [SmartHome Wandtaster](https://www.smarthome.de/geraete/telekom-smarthome-wandtaster) - a switch with two buttons (thing type `HAN_FUN_SWITCH`)
The use of other Sensors should be possible, if these are compatible with DECT-ULE / HAN-FUN standards. The use of other Sensors should be possible, if these are compatible with DECT-ULE / HAN-FUN standards.

View File

@ -206,15 +206,15 @@ public abstract class AVMFritzBaseModel implements BatteryModel {
public String toString() { public String toString() {
return new StringBuilder().append("[ain=").append(ident).append(",bitmask=").append(bitmask) return new StringBuilder().append("[ain=").append(ident).append(",bitmask=").append(bitmask)
.append(",isHANFUNDevice=").append(isHANFUNDevice()).append(",isHANFUNButton=").append(isHANFUNButton()) .append(",isHANFUNDevice=").append(isHANFUNDevice()).append(",isHANFUNButton=").append(isHANFUNButton())
.append(",isHANFUNAlarmSensor=").append(isHANFUNAlarmSensor()).append(",isButton").append(isButton()) .append(",isHANFUNAlarmSensor=").append(isHANFUNAlarmSensor()).append(",isButton=").append(isButton())
.append(",isSwitchableOutlet=").append(isSwitchableOutlet()).append(",isTempSensor=") .append(",isSwitchableOutlet=").append(isSwitchableOutlet()).append(",isTempSensor=")
.append(isTempSensor()).append(",isPowermeter=").append(isPowermeter()).append(",isDectRepeater=") .append(isTempSensor()).append(",isPowermeter=").append(isPowermeter()).append(",isDectRepeater=")
.append(isDectRepeater()).append(",isHeatingThermostat=").append(isHeatingThermostat()) .append(isDectRepeater()).append(",isHeatingThermostat=").append(isHeatingThermostat())
.append(",isMicrophone=").append(isMicrophone()).append(",isHANFUNUnit=").append(isHANFUNUnit()) .append(",isMicrophone=").append(isMicrophone()).append(",isHANFUNUnit=").append(isHANFUNUnit())
.append(",id=").append(deviceId).append(",manufacturer=").append(deviceManufacturer) .append(",id=").append(deviceId).append(",manufacturer=").append(deviceManufacturer)
.append(",productname=").append(productName).append(",fwversion=").append(firmwareVersion) .append(",productname=").append(productName).append(",fwversion=").append(firmwareVersion)
.append(",present=").append(present).append(",name=").append(name).append(",battery") .append(",present=").append(present).append(",name=").append(name).append(",battery=")
.append(getBattery()).append(",batterylow").append(getBatterylow()).append(getSwitch()) .append(getBattery()).append(",batterylow=").append(getBatterylow()).append(",").append(getSwitch())
.append(getPowermeter()).append(getHkr()).toString(); .append(",").append(getPowermeter()).append(",").append(getHkr()).append(",").toString();
} }
} }

View File

@ -75,8 +75,8 @@ public class DeviceModel extends AVMFritzBaseModel {
@Override @Override
public String toString() { public String toString() {
return new StringBuilder().append(super.toString()).append(temperature).append(alert).append(getButtons()) return new StringBuilder().append(super.toString()).append(temperature).append(",").append(alert).append(",")
.append(etsiunitinfo).append("]").toString(); .append(getButtons()).append(",").append(etsiunitinfo).append("]").toString();
} }
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)