nuimo-fhem

command module
v0.0.0-...-3602896 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2016 License: MIT Imports: 6 Imported by: 0

README

Nuimo <-> FHEM connector

This translates the commands from a Nuimo smart controll into commands for the popular FHEM house automation system.

The mapping is done within the scenes.yml. This way Nuimo can basically control everything FHEM controls. For me that's some "smart" lights and some media equipment.

Disclaimer

At the moment this is a evenings project to play with house automation and #golang. Feel free to suggest changes which change code and interaction to be more #Golang style.

Command line options

When the programm runs it can send commands to an FHEM server which can be configured with these parameters:

  • -host the hostname or address of the fhem telnet server - defaults to localhost
  • -port the port number of the fhem telnet server - defaults to 7072

Once running, it will try to connect to any nearby Nuimo device. In order to keep the connection open, the programm will read the battery state after some keepalive time which can be configured with:

  • -keepalive the default value is 300 seconds

Example usage*

Please refer to the currantlabs/ble documentation for the basic platform setup. Once the platform is ready run:

go get github.com/tolleiv/nuimo-fhem

# Copy and adjust the settings:
cp $GOPATH/src/github.com/tolleiv/nuimo-fhem/scenes.yaml .

# build it
go build main.go

# run it
sudo ./main -host fhem-system.local

# run it with some log messages
sudo LOGXI=*=INF ./main -host fhem-system.local
 
# run it with debugging messages
sudo LOGXI=nuimo*=DBG,fhem*=DBG,viper*=DBG,*=INF ./main -host fhem-system.local

*this has been tested successfully on Linux (RPi) only

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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