Sharing value of device 1 into device 2

to get started have a look at this awesome tutorial by @adam on node-red with cayenne. Using Node-RED as a Local Fallback Server