jim

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2018 License: MIT

README

Jim

mqtt-smarthome

Jim is a home automation assistant.

Jim comes with a simple DSL for connecting to devices via the mqtt-smarthome architecture.

DSL Example

scene nightime {
    set almond/door/DoorLock/front locked

    when
        almond/door/DoorLock/front is unlocked
    wait 5m
        set almond/door/DoorLock/front locked
}

scene daytime {
    when
        almond/door/DoorLock/front is unlocked
    wait 15m
        set almond/door/DoorLock/front locked
}

at 8:00AM {
    stop  nightime
    start daytime
}

at 9:00AM {
    stop daytime
    start nightime
}

Binaries

This project contains two commands that can be run:

  • jim - An interactive REPL command for running DSL commands interactively.
  • jimd - A server daemon that will run scripts from a configured directory.

Directories

Path Synopsis
cmd
jim
dsl
fmt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL