Probleme mit HomeMatic nach Update auf FHEM 5.6

Begonnen von KFK-mpg, 18 Dezember 2014, 20:16:20

Vorheriges Thema - Nächstes Thema

KFK-mpg

Hi,
ich hoffe ich bin bei euch richtig. Ich habe jetzt seit einem halben Jahr meine Heimautomation am Laufen. Diese läuft auf einem Raspberry Pi Model B.
Am Wochenende hatte ich den Pi mal komplett Aktualisiert und auch FHEM 5.6 installiert (über das deb file). Danach lief garnix mehr was Homematic betraf.
Ich konnte weder Daten empfangen noch senden. Das kuriose ist, das mir kein Fehler gezeigt wird, bis auf max. Missing Acknowledge. Also habe ich das System
komplett neu aufgesetzt. EInfach das neuste Wheezy Image installiert und entsprechende wichtige Dinge für FHEM (Perl usw.) Nachdem die Installation fertig war,
habe ich einen Unterputzaktor neu angelernt. Dies Funktionierte tadellos, jedoch das schalten Funktioniert nicht. Alles was mit dem 433 MHz läuft (über RFXTRX)
funktioniert einwandfrei.
Habt Ihr vll eine Idee?

Technische Daten:
Raspberry + neuste Software
FHEM 5.6

COC mit Firmware 1.58

fhem.cfg:

attr global autoload_undefined_devices 1
attr global logfile ./log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./log/%NAME-%Y.log

define eventTypes eventTypes ./log/eventTypes.txt

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create

#################COC definition#####################
define COC CUL /dev/ttyAMA0@38400 1234
attr COC dummy 1
attr COC hmId 123ABC
attr COC rfmode HomeMatic
define CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 CUL_HM 1AEF08
attr CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 room CUL_HM
define FileLog_CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 FileLog ./log/CUL_HM_HM_LC_Sw1PBU_FM_1AEF08-%Y.log CUL_HM_HM_LC_Sw1PBU_FM_1AEF08
attr FileLog_CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 logtype text
attr FileLog_CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 room CUL_HM


fhem:


#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert

### BEGIN INIT INFO
# Provides:             fhem.pl
# Required-Start:       $local_fs $remote_fs
# Required-Stop:        $local_fs $remote_fs
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    FHEM server
### END INIT INFO

set -e
cd /opt/fhem
port=7072

if test "$2" != "noaptmark"; then
  apt-mark hold fhem > /dev/null
fi

case "$1" in
'start')

        echo "Starting fhem..."
        echo "resetting 868MHz extension..."
        if test ! -d /sys/class/gpio/gpio17; then echo 17 > /sys/class/gpio/export; fi
        if test ! -d /sys/class/gpio/gpio18; then echo 18 > /sys/class/gpio/export; fi
        echo out > /sys/class/gpio/gpio17/direction
        echo out > /sys/class/gpio/gpio18/direction
        echo 1 > /sys/class/gpio/gpio18/value
        echo 0 > /sys/class/gpio/gpio17/value
        sleep 1
        echo 1 > /sys/class/gpio/gpio17/value
        sleep 1
# if you need to start hmland for use with
# Homematic, please start the hmland daemon
# like this (please use correct path and port,
# depending on your installation!)
#
#       /opt/hmcfgusb/hmland -d -p 1234 -r 0
#

        perl fhem.pl fhem.cfg

# if you want to use configDB for configuration,
# use this command to start fhem:
#
#       perl fhem.pl configDB
#
# and remove/comment the above line including fhem.cfg

        RETVAL=$?
        ;;
'stop')
        echo "Stopping fhem..."

# if you want to stop hmland during fhem stop:
#       pkill hmland

        pkill -U fhem perl
        RETVAL=$?
  GNU nano 2.2.6                                                                File: /etc/init.d/fhem                                                                                                                                       

# use this command to start fhem:
#
#       perl fhem.pl configDB
#
# and remove/comment the above line including fhem.cfg

        RETVAL=$?
        ;;
'stop')
        echo "Stopping fhem..."

# if you want to stop hmland during fhem stop:
#       pkill hmland

        pkill -U fhem perl
        RETVAL=$?
        ;;
'status')
        cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
        if [ "$cnt" -eq "0" ] ; then
                echo "fhem is not running"
        else
                echo "fhem is running"
        fi
        ;;
*)
        echo "Usage: $0 { start | stop | status }"
        RETVAL=1
        ;;
esac
exit $RETVAL


Logfile:


2014.12.16 19:24:09 1: Including fhem.cfg
2014.12.16 19:24:09 3: telnetPort: port 7072 opened
2014.12.16 19:24:11 3: WEB: port 8083 opened
2014.12.16 19:24:11 3: WEBphone: port 8084 opened
2014.12.16 19:24:11 3: WEBtablet: port 8085 opened
2014.12.16 19:24:12 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.16 19:24:12 1: usb create starting
2014.12.16 19:24:19 3: Probing CUL device /dev/ttyAMA0
2014.12.16 19:24:21 3: Can't open /dev/ttyAMA0: Permission denied
2014.12.16 19:24:21 1: usb create end
2014.12.16 19:24:21 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.16 19:24:21 0: Server started with 9 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 4359)
2014.12.16 19:28:35 0: Server shutdown
2014.12.16 19:29:10 1: Including fhem.cfg
2014.12.16 19:29:11 3: telnetPort: port 7072 opened
2014.12.16 19:29:15 3: WEB: port 8083 opened
2014.12.16 19:29:15 3: WEBphone: port 8084 opened
2014.12.16 19:29:15 3: WEBtablet: port 8085 opened
2014.12.16 19:29:16 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.16 19:29:16 1: Including ./log/fhem.save
2014.12.16 19:29:17 1: usb create starting
2014.12.16 19:30:04 3: Probing CUL device /dev/ttyAMA0
2014.12.16 19:30:06 3: Probing TCM_ESP3 device /dev/ttyAMA0
2014.12.16 19:30:06 3: Probing FRM device /dev/ttyAMA0
2014.12.16 19:30:11 1: usb create end
2014.12.16 19:30:11 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.16 19:30:11 0: Server started with 9 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2122)
2014.12.16 19:33:18 0: Server shutdown
2014.12.16 19:33:43 1: Including fhem.cfg
2014.12.16 19:33:43 3: telnetPort: port 7072 opened
2014.12.16 19:33:48 3: WEB: port 8083 opened
2014.12.16 19:33:48 3: WEBphone: port 8084 opened
2014.12.16 19:33:48 3: WEBtablet: port 8085 opened
2014.12.16 19:33:49 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.16 19:34:34 1: Including ./log/fhem.save
2014.12.16 19:34:37 1: usb create starting
2014.12.16 19:34:41 3: Probing CUL device /dev/ttyAMA0
2014.12.16 19:34:42 1: define CUL_0 CUL /dev/ttyAMA0@38400 1034
2014.12.16 19:34:42 3: Opening CUL_0 device /dev/ttyAMA0
2014.12.16 19:34:42 3: Setting CUL_0 baudrate to 38400
2014.12.16 19:34:42 3: CUL_0 device opened
2014.12.16 19:34:42 3: CUL_0: Possible commands: mCFiAZGMKRTVWXefltux
2014.12.16 19:34:42 2: Setting CUL fhtid from 1234 to 1034
2014.12.16 19:34:42 1: usb create end
2014.12.16 19:34:42 2: SecurityCheck:  WEB,WEBphone,WEBtablet has no basicAuth attribute. telnetPort has no password/globalpassword attribute.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2014.12.16 19:34:42 0: Server started with 10 defined entities (version $Id: fhem.pl 6913 2014-11-08 10:32:44Z rudolfkoenig $, os linux, user fhem, pid 2238)
2014.12.16 20:38:31 1: Including fhem.cfg
2014.12.16 20:38:31 3: telnetPort: port 7072 opened
2014.12.16 20:38:31 3: WEB: port 8083 opened
2014.12.16 20:38:31 3: WEBphone: port 8084 opened
2014.12.16 20:38:31 3: WEBtablet: port 8085 opened
2014.12.16 20:38:32 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2014.12.16 20:38:32 3: Opening COC device /dev/ttyAMA0
2014.12.16 20:38:32 3: Setting COC baudrate to 38400
2014.12.16 20:38:32 3: COC device opened
2014.12.16 20:38:32 3: COC: Possible commands: mCFiAZGMKRTVWXefltux
2014.12.16 20:38:32 2: Setting CUL fhtid from 1034 to 1234
2014.12.16 20:38:32 2: Switched COC rfmode to HomeMatic
2014.12.16 20:38:32 1: Including ./log/fhem.save
2014.12.16 20:44:59 2: CUL_HM Unknown device CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 is now defined
2014.12.16 20:44:59 2: autocreate: define CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 CUL_HM 1AEF08
2014.12.16 20:44:59 2: autocreate: define FileLog_CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 FileLog ./log/CUL_HM_HM_LC_Sw1PBU_FM_1AEF08-%Y.log CUL_HM_HM_LC_Sw1PBU_FM_1AEF08
2014.12.16 20:44:59 3: CUL_HM pair: CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 switch, model HM-LC-Sw1PBU-FM serialNr
2014.12.16 20:44:59 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 getConfig
2014.12.16 20:46:00 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:04 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:06 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:08 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 toggle
2014.12.16 20:46:10 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 toggle
2014.12.16 20:46:13 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 toggle
2014.12.16 20:46:21 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:40 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:41 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:43 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:44 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 statusRequest
2014.12.16 20:46:45 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 toggle
2014.12.16 20:46:47 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:51 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:46:51 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 off
2014.12.16 20:46:58 3: CUL_HM set CUL_HM_HM_LC_Sw1PBU_FM_1AEF08 on
2014.12.16 20:48:46 0: Server shutdown


Ich hoffe Ihr könnt mir helfen, denn so langsam bin ich mit meinem Latein am Ende, warum es nicht funktioniert.

Viele Grüße
Daniel

LuckyDay

#1
Zitatattr COC dummy 1

entfernen

Fhem aktualisiert man mit update im Commandfeld


KFK-mpg

Hi,

danke für die Tipps. Habe den update-Befehl nochmal ausgeführt, und schon funktionierte das Schalten der Geräte wieder.

Viele Grüße
Daniel