Need help with smarthome?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mknx
124 Stars 75 Forks GNU General Public License v3.0 1.1K Commits 34 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 370,841
C
HTML
Shell
549 commits
# 721,630
C
HTML
Shell
11 commits
# 656,318
C
Shell
C++
home-au...
10 commits
# 744,306
C
HTML
Shell
7 commits
# 750,546
C
HTML
Shell
6 commits
# 681,114
C
HTML
Shell
4 commits
# 29,211
mpd
Perl
reusabl...
prometh...
3 commits
# 790,394
C
HTML
Shell
1 commit
# 647,869
Shell
C++
C
1 commit
# 790,395
C
HTML
Shell
1 commit
# 790,396
C
HTML
Shell
1 commit

See http://mknx.github.io/smarthome/ for more information and documentation.

Directory and File Overview

This should give you an overview of the most important files and directories.

etc/smarthome.conf

This is a global configuration file where you could specify the location and timezone of your smart home.

etc/plugin.conf

In this configuration file you configure the plugins and their attributes.

etc/logic.conf

In the logic.conf you specify your logics and when they will be run.

etc/logic.conf

[AtSunset] filename = sunset.py crontab = sunset

items/

This directory contains one or more item configuration files. The filename does not matter, except it has to end with '.conf'.

items/global.conf

[global] [[sun]] type = bool attribute = foo

logics/

This directory contains your logic files. Simple or sophisitcated python scripts. You could address your smarthome item by

sh.item.path
. If you want to read an item call
sh.item.path()
or to set an item
sh.item.path(Value)
.
# logics/sunset.py
if sh.global.sun():  # if sh.global.sun() == True:
    sh.gloabl.sun(False)  # set it to False

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.