Skip to content

nathanielc/dan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dan

mqtt-smarthome

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:https://localhost --dir ./dan.d

About

Dan is a home automation assistant

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages