Just ‘upgraded’ from OH 4.1.0 to latest 5.1.1 by way of a fresh micro-SD image of latest openhabian (x64). Took a backup of config via openhabian menu beforehand, imported it into the new system via same method. I do not believe my problem is related to that process.
However, WOL with the Network binding was working for me previously and is definitely not any longer.
I have a virtual switch item defined and a rule that is set to watch for the ON command. When ON is received, the rule runs a script to send a WOL packet.
In the binding documentation, I see the old method
sendWakeOnLanPacket()
has been deprecated. I have updated my rule with the updated methods. I have tried singling out the new/old methods in my rule (as to only use 1). Currently, I have all 3 methods in the rule. I can see in the new Log Viewer (which is really nice, thank you devs!) that the WOL packets are being sent - regardless of the new or old or multiple methods in use (with all 3 in the rule, I see 3 OK entries).
So, I am kind of lost at this point, if anyone could help guide me..
Additional notes: openhab is in a different subnet than target WOL device. This was never a problem in the past. Unifi network equipment in place, rulesets have not changed, permits seen in syslogs. Added addtional, more permissive rules for argument’s sake, no change.
Thing definition:
version: 1
things:
network:pingdevice:602e77db80:
label: SMITH
location: Office
config:
hostname: 192.168.1.121
macAddress: 94:e7:0b:8a:d6:8f
refreshInterval: 60000
retry: 1
timeout: 5000
useIOSWakeUp: false
useArpPing: false
useIcmpPing: true
channels:
online:
type: online
latency:
type: latency
lastseen:
type: lastseen
virtual item definition:
version: 1
items:
wol_SMITH:
type: Switch
label: Smith
icon: switch
groups:
- Office
tags:
- WallSwitch
rule:
configuration: {}
triggers:
- id: "1"
configuration:
itemName: wol_SMITH
command: ON
type: core.ItemCommandTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
type: application/vnd.openhab.dsl.rule
script: |-
val actions = getActions("network", "network:pingdevice:602e77db80")
if (actions === null) {
logInfo("actions", "Actions not found, check thing ID")
return
} else {
// Send via IP address
actions.sendWakeOnLanPacketViaIp()
// Send via MAC address
actions.sendWakeOnLanPacketViaMac()
// OG but deprecated
actions.sendWakeOnLanPacket()
}
type: script.ScriptAction
log viewer:
