Advertisement
drabont

Empyrion - Growing Plant Monitor v.1

Jul 2nd, 2022
1,791
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.86 KB | None | 0 0
  1. {{! Growing Plant Monitor v.1 by swg  }}
  2. {{! man: https://youtu.be/49uW_VEo_Q4 }}
  3. {{! all Growing Light must be named   }}
  4. {{! change the wildcard if necessary  }}
  5. {{devices  E.S '*'}}
  6. {{#each .}}
  7. {{test .Id eq 564}}
  8. {{CustomName}}:<indent=5>
  9. {{set 'GrowLightOn' false}}
  10. {{math Position.Y '-' 1}}
  11. {{#each '+*-'}}
  12. {{math ../../Position.X . 1}}
  13. {{#each '+*-'}}
  14. {{math ../../../../Position.Z . 1}}
  15. {{block @root.E.S ../../ ../../../../ .}}
  16. {{test .id 'in' '593,599,602,707,643,611,467,
  17. 1169,709,1173,1177,1181,1369,1529,1533,
  18. 1599,1603,2163,2167,2171,1329,0'}}
  19. <color=orange>{{else}}
  20. {{set 'GrowLightOn' true}}
  21. <color=green>{{/test}}
  22. {{~test .id 'in' '0'}}◌
  23. {{~else}}◉ {{i18n .id}}
  24. {{~/test}}</color>
  25. {{~/block}}
  26. {{/math}}
  27. {{/each}}
  28. {{/math}}
  29. {{/each}}
  30. {{/math}}</indent>
  31. {{setactive . @root.Data.GrowLightOn}}
  32. {{/test}}
  33. {{/each}}
  34. {{/devices}}
  35. ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement