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.

75 lines
1.7 KiB

3 years ago
3 years ago
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. MISC COMMANDS
  33. color <color>
  34. File example (use '---' to delimit multiple configs in one file):
  35. mode: SceneDimmer
  36. target: tag:Soverom
  37. scenes:
  38. - kveldslys
  39. - landskap
  40. - vasking
  41. trigger_device_id: 14
  42. ---
  43. mode: MotionSensor
  44. target: tag:Bod
  45. trigger_device_id: 36
  46. after:
  47. - minutes: 0
  48. new_state:
  49. power: true
  50. color: hs:240,0.6
  51. intensity: 0.8
  52. - minutes: 1
  53. new_state:
  54. power: false
  55. from: 08:00
  56. to: 15:59:59
  57. ---
  58. (more modes coming soon)
  59. WARNING: Similar event handlers will be removed!
  60. EVENT COMMANDS
  61. run <event name> <*=S>
  62. NOTE: You may have to surround arguments including < or > with quotation marks!
  63. `