Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nathanielc/dan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

42 Commits

Repository files navigation

Dan

Dan is a home automation programming language. The langauge has native support for working with MQTT.

Dan Example

Lock all the doors at 10PM each night.

scene night {
print "starting night scene"

set zwave/Front/DoorLock/98/0/targetMode/set {value: 255}
set zwave/Garage/DoorLock/98/0/targetMode/set {value: 255}

set zwave/Kitchen/DoorLock/98/0/targetMode/set {value: 255}
}


at 10:00PM start night

Installing

Install the dan binary using cargo:

$ cargo install dan

Running

Place the above example in a directory ./dan.d and invoke dan:

$ dan --mqtt-url mqtt://localhost --dir ./dan.d

About

Dan is a home automation assistant

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Packages

Contributors

Languages