In event handler we get deviceId, but instead I would like to receive a deviceNetworkId. Is there a function which returns a Device object by deviceId? In that case I could get deviceNetworkId from Device object.
According the docs, the Event already includes a device of type Device in the Event object:
http://docs.smartthings.com/en/latest/ref-docs/event-ref.html#device
Can you know use that?