home-easy

Crates.iohome-easy
lib.rshome-easy
version0.2.1
sourcesrc
created_at2017-08-26 17:17:09.126038
updated_at2020-10-03 10:37:55.462073
descriptionSimple Rust home-easy protocol implementation
homepage
repositoryhttps://github.com/NSenaud/home-easy-rs
max_upload_size
id29290
size47,248
nsd (NSenaud)

documentation

README

home-easy-rs

Travis CI

Description

home-easy-rs aims to implement the home-easy protocol, used by some home automation devices. Currently, it have been tested with Chacon DIO remote plugs (Ref. 54760), a Seeds Studio 433MHz emetter and a Raspberry Pi 3 on ArchLinux. The current code is mostly a translation of the C++ code of Vincent Demay and Idleman.

This code produce both a libray to use with your own projects, and a CLI utility called dios to test it easily.

Cross-Compile

You can use cross to compile for ARM architecture (tested on Raspberry Pi):

cross build --target=armv7-unknown-linux-musleabihf --release

Use in a Container

You can use the Makefile directly to build a release version and create a Docker image to deploy easily.

make release

On your Raspberry Pi, you can then run the dios command from Docker:

docker run --device /dev/gpiomem dios:v0.2.0 ./dios 0 12341234 1 off

CLI Utility Usage

You must first authentify the emetter with the receipter (the way to do it depends on your device, please refer to its manual).

sudo dios 0 12321234 3 on -v
Commit count: 24

cargo fmt