You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  1. package main
  2. const helpString = `
  3. lucy lucifer CLI
  4. EXAMPLES
  5. lucy set tag:Hexagon color=hs:35,1 intensity=0.3
  6. lucy run SetProfile name=evening
  7. DEVICE COMMANDS
  8. list <search>
  9. set <search> <power=B> <color=C> <intensity=F> <temperature=N>
  10. tag <search> <[+/-]tag-name>
  11. update <search> <name=S> <icon=S> <prop.*=S/NULL>
  12. EVENT HANDLER COMMANDS
  13. handler list
  14. handler add <event> <search> \
  15. <one-shot=B> \
  16. <priority=N> \
  17. <from=TOD to=TOD> \
  18. <conditions.[any.*|all.*|*][<|<=|=|=>|>]*> \
  19. <set-power=B> <set-color=C> <set-intensity=F> <set-temperature=N> \
  20. <add-intensity=F> \
  21. <fire.name=S> <fire.payload.*=S>
  22. handler edit <id> \
  23. (...all arguments from 'add', appending conditions and fire payload matchers...) \
  24. <event=S> <search=S>
  25. <-from> <-to> \
  26. <-set-power> <-set-color> <-set-intensity> <-set-temperature> \
  27. <-conditions.*> \
  28. <-fire> <-fire.payload.*>
  29. handler delete <id>
  30. EVENT HANDLER FACTORY COMMANDS
  31. factory run <file.yaml>
  32. File example (use '---' to delimit multiple configs in one file):
  33. mode: SceneDimmer
  34. target: tag:Soverom
  35. scenes:
  36. - kveldslys
  37. - landskap
  38. - vasking
  39. trigger_device_id: 14
  40. ---
  41. (more modes coming soon)
  42. WARNING: Similar event handlers will be removed!
  43. EVENT COMMANDS
  44. run <event name> <*=S>
  45. NOTE: You may have to surround arguments including < or > with quotation marks!
  46. `