For anybody who is interested for the configuration of the TR064 Binding.
I did like this and it is working for me.
Bridge tr064:fritzbox:fritzboxtr "FritzboxTR" @ "Netzwerk" [ host="xxx.xxx.xxx.xxx", refresh=60, user="xxxx", password="xxxxxx"] {
subdevice subdevicewan "SubdeviceTR064 WAN" @ "Netzwerk" [ uuid="uuid:xxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx", refresh=60 ]
subdevice subdevicewanconnect "SubdeviceTR064 WANConnect" @ "Netzwerk" [ uuid="uuid:xxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx", refresh=60 ]
subdeviceLan subdevicelan "SubdeviceTR064 LAN" @ "Netzwerk" [ uuid="uuid:xxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx", refresh=60,
macOnline= "xx:xx:xx:xx:xx:xx",
"xx:xx:xx:xx:xx:xx",
"xx:xx:xx:xx:xx:xx",
"xx:xx:xx:xx:xx:xx" ]
}
The Items then were created like this:
String fritzboxWanIP "FBox WAN IP: [%s]" <keyring> (gFritzbox) {channel="tr064:subdevice:fritzboxtr:subdevicewan:wanIpAddress"}
Number:DataAmount fritzboxWanBytesSend "Bytes gesendet: " (gFritzbox) {channel="tr064:subdevice:fritzboxtr:subdevicewan:wanTotalBytesSent"}
Number:DataAmount fritzboxWanBytesReceived "Bytes empfangen: " (gFritzbox) {channel="tr064:subdevice:fritzboxtr:subdevicewan:wanTotalBytesReceived"}
// get wan ip if FritzBox uses internet connection of external router
Switch fboxWifi24 "2.4 GHz Wi-Fi" <network> (gFritzbox) {channel="tr064:subdeviceLan:fritzboxtr:subdevicelan:wifi24GHzEnable"}
Group gOnline
Switch iPadWlanPresence "iPad (Wifi) [MAP(presencefritzbox.map):%s]" <home2> {channel="tr064:subdeviceLan:fritzboxtr:subdevicelan:macOnline_XX_XXXX_XXXX_XXXX_XXXX_XXXX"}
{channel="tr064:subdeviceLan:fritzboxtr:subdevicelan:macOnline_XX_XXXX_XXXX_XXXX_XXXX_XXXX"}
For this I found that at the second part of the Mac adress OH puts an additional 3A in front of the adress, with this it is possible to add the channles without the GUI.
MAC Adress: XX:XX:XX:XX:XX:XX
{channel="tr064:subdeviceLan:fritzboxtr:subdevicelan:macOnline_XX_3AXX_3AXX_3AXX_3AXX_3AXX"}
With the MAC adresses at the bridge, the bridge creating new channels what you can see at the thing configuration of the configureated subdeviceLan thing and there you can see the new channels with the linked MAC Adresses.
I’m using it for presence detection.
My Map transformation for the state of the presence switch for macOnline, which is called presencefritzbox.map in the items:
ON=zu Hause
OFF=abwesend
NULL=unbekannter Status
-=unbekannter Status
Hoping that I can help somebody with that. If anybody has some better and cleaner way please let me know.
Best,
Max