Script get status of other device

  • I would like to one gen2 device to detect the status of another gen2 device in same network (fixed ip) and react on that status. I think this is a job for scripting but can it be done?

    No mqtt available and both devices connected through LAN with fixed ip.

  • I solved it. With this script: