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.

71 lines
1.7 KiB

3 years ago
3 years ago
2 years ago
2 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. mode: MotionSensor
  42. target: tag:Bod
  43. trigger_device_id: 36
  44. after:
  45. - minutes: 0
  46. new_state:
  47. power: true
  48. color: hs:240,0.6
  49. intensity: 0.8
  50. - minutes: 1
  51. new_state:
  52. power: false
  53. from: 08:00
  54. to: 15:59:59
  55. ---
  56. (more modes coming soon)
  57. WARNING: Similar event handlers will be removed!
  58. EVENT COMMANDS
  59. run <event name> <*=S>
  60. NOTE: You may have to surround arguments including < or > with quotation marks!
  61. `