I have set up network binding in order to check whether a device goes offline. It runs ok.
My problem is that I am not able to listen for changes and fire a rule based on them.
The ‘Thing’ ‘Channel’ ‘triggered’ keywords are not syntax colored. (Don’t know if it matters)
What I have tried:
rule "AC network status" when Thing "network:device:ac" changed then logInfo("Test", "Triggered successfully") end
when Thing "network:device:ac" received update
when Channel "network:device:ac" triggered
(I know I should use pingdevice instead, but it doesn’t effect here)
Using the getThingStatusInfo(“network:device:ac”) function works.
If I link the channel to an Item, then it works too, but I don’t like this way because it updates the Item’s state all the time which can’t fit my use case.
Updating Item’s state only on network changes would be also a half solution.