UPDATE 26-Nov-2019: The EseraOneWire modules are now part of the standard FHEM installation, see https://fhem.de/commandref.html#EseraOneWire . If you are using FHEM "update" to get the modules from here you should stop doing this: "update delete https://raw.githubusercontent.com/pizmus/EseraOneWire/master/controls_EseraOneWire.txt". From now on the module is not maintained in github, and after some time it will not be possible anymore to install it from here.
Family of FHEM modules to support the Esera 1-wire controller and various sensors and actors.
FHEM commands:
- update add https://raw.githubusercontent.com/pizmus/EseraOneWire/master/controls_EseraOneWire.txt
- update list
- update check
- update 66_EseraOneWire.pm
- update 66_EseraAnalogInOut.pm
- update 66_EseraDigitalInOut.pm
- update 66_EseraIButton.pm
- update 66_EseraMulti.pm
- update 66_EseraTemp.pm
- shutdown restart
- Complete the installation as described above.
- Recommended: Connect at least one 1-wire sensor or actor to the controller.
- Power your Esera 1-wire controller and connect it to LAN. Remember the IP address.
- On FHEM command line: "define yourDeviceName EseraOneWire yourIpAddress"
- Give FHEM a couple of seconds to initialize the controller.
- Refresh the FHEM web UI to see devices auto-created for your 1-wire actors/sensors.
- Your EseraOneWire devices are ready to be used: Check the readings, try the queries provided by the controller, switch digital outputs, ...
- Read the Commandref of the Esera modules via the FHEM web UI.
- If your 1-wire sensor/actor is not auto-created: Check the log file for corresponding error messages. If your device is not supported yet please provide the log file.
Optional: To give feedback regarding the use of EseraOneWire please call "fheminfo send" in FHEM and set global attribute "sendStatistics". See the FHEM commandref for details about "fheminfo" and the statistics generated from it. You are also welcome to give feedback and ask questions regarding EseraOneWire in the FHEM forum.
The following notes might be helpful to you when starting with a new EseraStation. However, there is no guarantee that these notes are complete or correct. The information will get out of date over time and I do not intend to update it on a regular basis.
- power up EseraStation 200, connect it to LAN, get the IP address from your router
- ssh -X yourStationIpAddress -l pi -> initial password is "esera"
- change the password
- sudo apt-get update
- sudo apt-get dist-upgrade -> got a question about IP Symcon, answer it and continue
- sudo apt-get -f install && sudo apt-get -y install perl-base libdevice-serialport-perl libwww-perl libio-socket-ssl-perl libcgi-pm-perl libjson-perl sqlite3 libdbd-sqlite3-perl libtext-diff-perl libtimedate-perl libmail-imapclient-perl libgd-graph-perl libtext-csv-perl libxml-simple-perl liblist-moreutils-perl ttf-liberation libimage-librsvg-perl libgd-text-perl libsocket6-perl libio-socket-inet6-perl libmime-base64-perl libimage-info-perl libusb-1.0-0-dev libnet-server-perl
- sudo wget http://fhem.de/fhem-5.9.deb && sudo dpkg -i fhem-5.9.deb
- sudo passwd fhem (optional)
- sudo vi /etc/passwd -> change the shell "/bin/false" to "/bin/bash" (optional)
- sudo reboot
- connect to fhem webUI http://yourStationIpAddress:8083/fhem
- install the EseraOneWire FHEM module as described aboved
- shutdown restart
- define EseraStation200 EseraOneWire /dev/serial0
- Wait for the module/controller to complete initialization (observe reading "state" going from "initializing" to "initialized" to "ready") and autocreate devices. The initial communication between the RaspberryPi and the 1-wire controller is somehow corrupted. It takes some time until the first correct messages are received by the EseraOneWire FHEM module. Therefore, the module needs a 2nd attempt when initializing the controller. This takes some time, and there is a corresponding message in the FHEM log file.
- The lower of 2 bits of the digital inputs and outputs SYS1 and SYS2 represent the DIN and DOUT ports of EseraStation.