FHEM

FHEM (TM) is a GPL'd perl server for house automation. It is used to automate some common tasks in the household like switching lamps / shutters / heating / etc. and to log events like temperature / humidity / power consumption.

Installation

Install the fhemAUR package.

Configuration

Since version 5.7, the FHEM package uses a different directory layout for its files:

  • /usr/share/fhem Perl modules and static content
  • /var/lib/fhem logs and state files, changing content
  • /etc/fhem.cfg main configuration file

If you have a legacy configuration, please adjust your paths by putting these lines into /etc/fhem.cfg

If you like to edit the configuration from the web frontend, make sure the user fhem has write access to /etc/fhem.cfg.

/etc/fhem.cfg
attr global logfile /var/lib/fhem/fhem-%Y-%m.log
attr global modpath /usr/share/fhem
attr global statefile /var/lib/fhem/fhem.save

[...]

define Logfile FileLog /var/lib/fhem/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog /var/lib/fhem/%NAME-%Y.log

define eventTypes eventTypes /var/lib/fhem/eventTypes.txt

Please visit the FHEM reference documentation for further information.

Startup

Just start/enable fhem.service.

gollark: > warmBad.> look goodFalse.> lo+ngIrrelevant and also inconvenient.> something something colorAnd yet you refuse to make Macron.
gollark: Yeees?
gollark: Socks are terrible. Simply be barefooted or wear plastic shoes.
gollark: It appears that the apiohypnoforms have only been partially functional.
gollark: Your time is up. Switching to a more cooperative simulated instance.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.