joshuar-go-hass-agent/internal/commands/testdata/valid/go-hass-agent/commands.toml

28 lines
430 B
TOML

[[button]]
name = "notify-send"
exec = 'notify-send "hello"'
icon = "mdi:chat"
[[switch]]
name = "a switch"
exec = 'echo ${1:-ON}'
[[number]]
name = "d6 roll"
exec = 'bash -c echo $((1 + $RANDOM % 6))'
icon = "mdi:random"
display = "slider"
min = 1
max = 6
step = 1
[[number]]
name = "random float"
exec = "bash -c 'printf \"%d04.%d04\\n\" $RANDOM $RANDOM'"
icon = "mdi:random"
type = "float"
min = 0.1
max = 99.99
step = 0.1