Hi,
I was wondering if it is possible to (officially) add WoL functionality to the tr-064 binding. Like using the switch of a “MAC Online” channel to issue a wake-on-lan command to that very MAC address. I managed to do so by editing channels.xml and adding “X_AVM-DE_WakeOnLANByMACAddress” as setAction, like follows:
<channel name="macOnline" label="MAC Online" description="Online status of the device with the given MAC">
<item type="Switch"/>
<service deviceType="urn:dslforum-org:device:LANDevice:1" serviceId="urn:LanDeviceHosts-com:serviceId:Hosts1"/>
<getAction name="GetSpecificHostEntry" argument="NewActive">
<parameter name="NewMACAddress" thingParameter="macOnline"
pattern="([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}(\s*#.*)*"/>
</getAction>
<setAction name="X_AVM-DE_WakeOnLANByMACAddress">
<parameter name="NewMACAddress" thingParameter="macOnline"
pattern="([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}(\s*#.*)*"/>
</setAction>
</channel>
Works fine for me, so far.
Eric