Skip to content

Instantly share code, notes, and snippets.

@molda
Created December 31, 2017 12:13
Show Gist options
  • Save molda/f6d2dd2c6d857d210472fd05be404ae7 to your computer and use it in GitHub Desktop.
Save molda/f6d2dd2c6d857d210472fd05be404ae7 to your computer and use it in GitHub Desktop.
Rules for ESPEasy to report ip every 60s using mqtt

Rules for ESPEasy to report ip every 60s using mqtt

On System#Boot do
 Publish /%sysname%/online,{"ip":"%ip%"}
  timerSet,1,60
endon

On Rules#Timer=1 do
 Publish /%sysname%/online,{"ip":"%ip%"}
  timerSet,1,60
endon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment