Hauptmenü

Already Defined

Begonnen von gloob, 20 Januar 2017, 08:18:21

Vorheriges Thema - Nächstes Thema

gloob

Hallo,

Ich habe ein Problem mit einer neuen FHEM Instanz.

Ich habe folgende fhem.cfg

attr global userattr cmdIcon devStateIcon devStateStyle icon sortby webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global latitude 50.11092
attr global logfile ./log/fhem-%Y-%m.log
attr global longitude 8.68212
attr global modpath .
attr global motd none
attr global statefile ./log/fhem.save
attr global updateInBackground 1
attr global verbose 3

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB editConfig 1
attr WEB longpoll 1
attr WEB menuEntries rereadcfg,cmd=rereadcfg,restart,cmd=shutdown+restart,update,cmd=update,updatecheck,cmd=update+check,backup,cmd=backup,
attr WEB stylesheetPrefix darktouchpad

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




#########################################################################
# Wetter
#########################################################################
define AgroWeather PROPLANTA Griesheim+(Hessen)
attr AgroWeather room Wetter

#########################################################################
# Tablet UI
#########################################################################
define TABLETUI HTTPSRV ftui/ ./www/tablet Tablet-UI
define ftuitest dummy

#########################################################################
# Homematic
#########################################################################
##############
# HM UART
##############
define myHmUART HMUARTLGW /dev/ttyAMA0
attr myHmUART hmId 470795
attr myHmUART room Homematic

##############
# VCCU
##############
define vccu CUL_HM 470795
attr vccu IODev myHmUART
attr vccu IOList myHmUART
attr vccu model CCU-FHEM
attr vccu room Homematic
attr vccu subType virtual
attr vccu webCmd virtual:update

##############
# Steckdose
##############
define HM_3ACB5A CUL_HM 3ACB5A
attr HM_3ACB5A IODev myHmUART
attr HM_3ACB5A IOgrp vccu
attr HM_3ACB5A actCycle 000:10
attr HM_3ACB5A actStatus alive
attr HM_3ACB5A autoReadReg 4_reqStatus
attr HM_3ACB5A expert 2_raw
attr HM_3ACB5A firmware 1.6
attr HM_3ACB5A model HM-ES-PMSw1-Pl
attr HM_3ACB5A room Homematic
attr HM_3ACB5A serialNr MEQ0488295
attr HM_3ACB5A subType powerMeter
attr HM_3ACB5A webCmd getConfig:clear msgEvents

define FileLog_HM_3ACB5A FileLog ./log/HM_3ACB5A-%Y.log HM_3ACB5A
attr FileLog_HM_3ACB5A logtype text
attr FileLog_HM_3ACB5A room Homematic

define HM_3ACB5A_Sw CUL_HM 3ACB5A01
attr HM_3ACB5A_Sw model HM-ES-PMSw1-Pl
attr HM_3ACB5A_Sw peerIDs 00000000,
attr HM_3ACB5A_Sw room Homematic

define FileLog_HM_3ACB5A_Sw FileLog ./log/CUL_HM_HM_3ACB5A_Sw-%Y.log HM_3ACB5A_Sw
attr FileLog_HM_3ACB5A_Sw logtype text
attr FileLog_HM_3ACB5A_Sw room Homematic

define HM_3ACB5A_Pwr CUL_HM 3ACB5A02
attr HM_3ACB5A_Pwr model HM-ES-PMSw1-Pl
attr HM_3ACB5A_Pwr room Homematic
attr HM_3ACB5A_Pwr stateFormat eState

define FileLog_HM_3ACB5A_Pwr FileLog ./log/HM_3ACB5A_Pwr-%Y.log HM_3ACB5A_Pwr
attr FileLog_HM_3ACB5A_Pwr logtype text
attr FileLog_HM_3ACB5A_Pwr room Homematic

#########################################################################
# New
#########################################################################
define ActionDetector CUL_HM 000000
attr ActionDetector event-on-change-reading .*
attr ActionDetector model ActionDetector
define SVG_FileLog_HM_3ACB5A_Pwr_1 SVG FileLog_HM_3ACB5A_Pwr:SVG_FileLog_HM_3ACB5A_Pwr_1:CURRENT
attr SVG_FileLog_HM_3ACB5A_Pwr_1 group Verlauf,
attr SVG_FileLog_HM_3ACB5A_Pwr_1 room Homematic

define SteckdoseOn at 02:02:00 set lamp on
define SteckdoseOff at 02:02:00 set lamp on


Wenn ich die Config speichere sagt er mir das SteckdoseOn und SteckdoseOff "already defined" sind. Ich finde aber absolut nicht wo.

Hat jemand eine Idee wo das Problem herkommt?
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

marvin78

Es hängt vermutlich damit zusammen, dass temporäre ats nichts in der Config verloren haben.

Bitte nicht die config direkt editieren, dann passieren solche Sachen erst gar nicht.

CoolTux

Marvin war schneller. Hätte ich auch so gesagt.
Config direkt editieren ist Mist.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

gloob

Mal abgesehen davon dass es Mist ist, aber wo sind die ATs dann gespeichert? Auch nach einem shutdown restart sind sie noch da.
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway

marvin78

Temporäre ats werden im statefile gespeichert. Das ist auch logisch, da sie nur bis zum ersten Ausführungszeitpunkt vorhanden sein müssen und im Grunde in 99,9% der Fälle automatisiert angelegt werden.

gloob

#5
Okay jetzt habe ich es verstanden. Ich muss das AT mit Sternchen anlegen. Das war mein Fehler.


define MeineAktion at *02:02:00 set lamp on


Nächstes mal nehme ich einfach ein DOIF  ;D
Raspberry Pi 3 | miniCUL 433MHz | nanoCUL 868 MHz | nanoCUL 433 MHz | MySensors WLAN Gateway | LaCrosse WLAN Gateway | SignalESP 433 MHz | SignalESP 868 MHz | HM-MOD-UART WLAN Gateway | IR - 360 Grad WLAN Gateway