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
75 lines
1.7 KiB
package main
|
|
|
|
const helpString = `
|
|
lucy – lucifer CLI
|
|
|
|
EXAMPLES
|
|
lucy set tag:Hexagon color=hs:35,1 intensity=0.3
|
|
lucy run SetProfile name=evening
|
|
|
|
DEVICE COMMANDS
|
|
list <search>
|
|
set <search> <power=B> <color=C> <intensity=F> <temperature=N>
|
|
tag <search> <[+/-]tag-name>
|
|
update <search> <name=S> <icon=S> <prop.*=S/NULL>
|
|
|
|
EVENT HANDLER COMMANDS
|
|
handler list
|
|
handler add <event> <search> \
|
|
<one-shot=B> \
|
|
<priority=N> \
|
|
<from=TOD to=TOD> \
|
|
<conditions.[any.*|all.*|*][<|<=|=|=>|>]*> \
|
|
<set-power=B> <set-color=C> <set-intensity=F> <set-temperature=N> \
|
|
<add-intensity=F> \
|
|
<fire.name=S> <fire.payload.*=S>
|
|
handler edit <id> \
|
|
(...all arguments from 'add', appending conditions and fire payload matchers...) \
|
|
<event=S> <search=S>
|
|
<-from> <-to> \
|
|
<-set-power> <-set-color> <-set-intensity> <-set-temperature> \
|
|
<-conditions.*> \
|
|
<-fire> <-fire.payload.*>
|
|
handler delete <id>
|
|
|
|
EVENT HANDLER FACTORY COMMANDS
|
|
|
|
factory run <file.yaml>
|
|
|
|
MISC COMMANDS
|
|
|
|
color <color>
|
|
|
|
File example (use '---' to delimit multiple configs in one file):
|
|
mode: SceneDimmer
|
|
target: tag:Soverom
|
|
scenes:
|
|
- kveldslys
|
|
- landskap
|
|
- vasking
|
|
trigger_device_id: 14
|
|
---
|
|
mode: MotionSensor
|
|
target: tag:Bod
|
|
trigger_device_id: 36
|
|
after:
|
|
- minutes: 0
|
|
new_state:
|
|
power: true
|
|
color: hs:240,0.6
|
|
intensity: 0.8
|
|
- minutes: 1
|
|
new_state:
|
|
power: false
|
|
from: 08:00
|
|
to: 15:59:59
|
|
---
|
|
(more modes coming soon)
|
|
|
|
WARNING: Similar event handlers will be removed!
|
|
|
|
EVENT COMMANDS
|
|
run <event name> <*=S>
|
|
|
|
NOTE: You may have to surround arguments including < or > with quotation marks!
|
|
`
|