Probleme bei Temperaturprofile umstellen

Begonnen von dancatt, 26 März 2018, 20:24:10

Vorheriges Thema - Nächstes Thema

CoolTux

Ja habe ich. Und meine Konfig ist so wie ich es Dir vorhin gezeigt habe. Habe mich da eigentlich strickt ans Wiki gehalten da ich die Lösung gut fand.
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

dancatt

Habe jetzt alle Files in der DB und im Filesystem gelöscht und neu gestartet.
In hminfo habe ich die beiden Parameter
configDir: FHEM
configTempFile: SommerArbeit.cfg,SommerAnwesend.cfg,SommerAbwesend.cfg,SommerKonstant.cfg,WinterArbeit.cfg,WinterAnwesend.cfg,WinterAbwesend.cfg,WinterKonstant.cfg
gesetzt

In alles Clima-Devices steht das Attribut
tempListTmpl: FHEM/SommerAnwesend.cfg:1_06_KU
Da bei vielen Devices ein anderer Eintrag steht muss ich das so machen.

Ein status liefert immer noch:

default templatefile: ./FHEM/SommerArbeit.cfg
   
files referenced but not found:
   FHEM/SommerAnwesend.cfg - Error on reading FHEM/SommerAnwesend.cfg from database!
      =>  FHEM/SommerArbeit.cfg - Error on reading FHEM/SommerArbeit.cfg from database!
      =>  FHEM/SommerKonstant.cfg - Error on reading FHEM/SommerKonstant.cfg from database!

---------components-----------
  template : device : state

     FHEM/SommerAnwesend.cfg:1_01_EZ : 1_01_EZ_2_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_01_EZ : 1_01_EZ_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_04_GT : 1_04_GT_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_06_KU : 1_06_KU_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_07_FL : 1_07_FL_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_01_KM : 2_01_KM_2_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_01_KM : 2_01_KM_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_05_BZ : 2_05_BZ_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerArbeit.cfg:2_02_KL : 2_02_KL_2_Heizungsthermostat_Clima : file: FHEM/SommerArbeit.cfg error:Error on reading FHEM/SommerArbeit.cfg from database!
     FHEM/SommerArbeit.cfg:2_02_KL : 2_02_KL_Heizungsthermostat_Clima : file: FHEM/SommerArbeit.cfg error:Error on reading FHEM/SommerArbeit.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ : 1_02_WZ_Wandthermostat_Climate : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat : 1_02_WZ_2_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat : 1_02_WZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:2_03_SZ : 2_03_SZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:2_04_AZ : 2_04_AZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:3_02_M1 : 3_02_M1_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:3_03_M2 : 3_03_M2_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

CoolTux

Zitat von: dancatt am 08 April 2018, 12:09:32
In alles Clima-Devices steht das Attribut
tempListTmpl: FHEM/SommerAnwesend.cfg:1_06_KU
Da bei vielen Devices ein anderer Eintrag steht muss ich das so machen.
Bei mir wird pro Clima Device immer nur das passende entities angegeben.
Für Küche also nur 1_06_KU
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

dancatt

Zitat von: CoolTux am 08 April 2018, 12:30:51
Bei mir wird pro Clima Device immer nur das passende entities angegeben.
Für Küche also nur 1_06_KU
Dann muss ich alle Configfiles in eine machen. Muss ich die Tage mal probieren.
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

CoolTux

Nein musst du nicht. Du machst für Winter ein Konfigfile für Urlaub und so weiter und trägst in das jeweilige Konfigfile alle Thermostate ein. Genau wie im Wiki.
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

dancatt

Zitat von: CoolTux am 08 April 2018, 13:02:47
Nein musst du nicht. Du machst für Winter ein Konfigfile für Urlaub und so weiter und trägst in das jeweilige Konfigfile alle Thermostate ein. Genau wie im Wiki.
Dann muss ich aber in jedem file einen anderen Profil-Namen vergeben. Aktuell habe ich immer den gleichen Profil-Namen. Unterschieden wird anhand vom unterschiedlichen file.
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

dancatt

Woher soll sonst das device wissen welches Profil in welchem device.
Außer ich gebe in hminfo immer nur das relevante file an. Das würde gehen.
Verstanden
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

martinp876

ZitatDann muss ich aber in jedem file einen anderen Profil-Namen vergeben
nein.
Du kannst mit configTempFile eine Reihe von temperaturfiles definieren. Das erste ist das default file.
Wenn du einem RT ein Profile ohne Filenamen zu weist wird es aus dem Default File genommen. Tauscht du nun das Default gegen ein andere aus werden alle templates aus dem neuen Default genutzt. Somit kannst du große Mengen temperaturlisten auf einmal tauschen. Ein Restor ist schon  noch notwendig.

Gernott

Zitat von: martinp876 am 08 April 2018, 07:02:06
Probier mal heute einen update. Sollte klapoen, hoffe ich
Bei mir sind die Fehlermeldungen beim Einlesen der cfg-Dateien wieder weg. Auch das Formatierungsproblem im Pop-up des configCheck ist behoben. Vielen Dank.

dancatt

Zitat von: martinp876 am 08 April 2018, 15:08:08
nein.
Du kannst mit configTempFile eine Reihe von temperaturfiles definieren. Das erste ist das default file.
Wenn du einem RT ein Profile ohne Filenamen zu weist wird es aus dem Default File genommen. Tauscht du nun das Default gegen ein andere aus werden alle templates aus dem neuen Default genutzt. Somit kannst du große Mengen temperaturlisten auf einmal tauschen. Ein Restor ist schon  noch notwendig.
Dann sollte es ja aber so funktionieren wie ich es habe. Und das geht ja aktuell nicht mehr
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

CoolTux

Zitat von: dancatt am 08 April 2018, 15:22:00
Dann sollte es ja aber so funktionieren wie ich es habe. Und das geht ja aktuell nicht mehr

Noch mal. Im Climachannel gibst Du das entities an, für Deine Küche also 1_06_KU. Danach sagst du über das hminfo Device setTempListG Blabla und hminfo nimmt das erste tempfile aus den Attribut configTempFile. Du musst also jedesmal das Attribut ändern wenn Du eine neue List ausrollen willst.
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

martinp876

Ich muss es noch einmal zusammenfassen:
du nutzt also configDB und mehrere Templist files. Also TempFile1;TempFile2
Du änderst das erste File in configTempFile. also TempFile3;TempFile2
dem RT hast du ein Profil zugewiesen wie "meinTempProfil"
"meinTempProfil" kommt in TempFile1 und TempFile3 vor, hat aber unterscheidliche Einstellungen
Wenn du nun umschaltest  wird
a) der neue Wert nicht geschrieben
b) das Template  nicht erkannt
c) etwas andere

Bitte noch einmal zusammenfassen. Danke.

dancatt

Also, ich habe mehrere Templatesfiles. Zeitgleich greifen mehrere Devices auf unterschiedliche Files zu.

Beispiel:
Folgende Files gibt es: TempFile1, TempFile2,TemFile3
Folgende Devices gibt es: Device1, Device2, Device3
Für Device1 gibt es im TempFile1 das Profil1
Für Device2 gibt es im TempFile2 das Profil2 und auch in TempFile1 gibt es das, soll aber aus TempFile2 genommen werden.
Für Device3 gibt es im TempFile3 das Profil3

in hminfo steht in
configDir: FHEM
configTempFile: TempFile1.cfg,TempFile2.cfg,TemFile3.cfg

im Device 1 steht im Attribut tempListTmpl: FHEM/TempFile1.cfg:Device1
im Device 2 steht im Attribut tempListTmpl: FHEM/TempFile2.cfg:Device2
im Device 3 steht im Attribut tempListTmpl: FHEM/TempFile3.cfg:Device3
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

dancatt

So wie ich bei mir aktuell die Konfiguration habe, so habe ich sie schon lange und funktionierte auch.
Ist auch nach dem Wiki https://wiki.fhem.de/wiki/HomeMatic_HMInfo_TempList/Weekplan
Bis gestern waren alle Files im Dateisystem und jetzt sind sie in der DB. Beides bringt den gleichen Fehler.

Ich ändere im Attribut configTempFile die Reihenfolge nicht, da bei mir viele Devices auf verschiedene Files verweisen.

Ein restore meldet bei allen passed obwohl die Profile nicht überein stimmen:

passed : FHEM/SommerAnwesend.cfg:1_01_EZ for 1_01_EZ_2_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:1_01_EZ for 1_01_EZ_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:1_04_GT for 1_04_GT_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:1_06_KU for 1_06_KU_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:1_07_FL for 1_07_FL_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:2_01_KM for 2_01_KM_2_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:2_01_KM for 2_01_KM_Heizungsthermostat_Clima
passed : FHEM/SommerAnwesend.cfg:2_05_BZ for 2_05_BZ_Heizungsthermostat_Clima
passed : FHEM/SommerArbeit.cfg:2_02_KL for 2_02_KL_2_Heizungsthermostat_Clima
passed : FHEM/SommerArbeit.cfg:2_02_KL for 2_02_KL_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:1_02_WZ for 1_02_WZ_Wandthermostat_Climate
passed : FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat for 1_02_WZ_2_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat for 1_02_WZ_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:2_03_SZ for 2_03_SZ_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:2_04_AZ for 2_04_AZ_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:3_02_M1 for 3_02_M1_Heizungsthermostat_Clima
passed : FHEM/SommerKonstant.cfg:3_03_M2 for 3_03_M2_Heizungsthermostat_Clima


Beispiel 1_06_KU_Heizungsthermostat_Clima:

R_0_tempListSat  06:00 18.0 23:00 21.5 24:00 18.0
R_1_tempListSun 06:00 18.0 23:00 21.5 24:00 18.0
R_2_tempListMon 06:00 18.0 23:00 21.5 24:00 18.0
R_3_tempListTue  06:00 18.0 23:00 21.5 24:00 18.0
R_4_tempListWed 06:00 18.0 23:00 21.5 24:00 18.0
R_5_tempListThu  06:00 18.0 23:00 21.5 24:00 18.0
R_6_tempListFri   06:00 18.0 23:00 21.5 24:00 18.0


tempListTmpl FHEM/SommerAnwesend.cfg:1_06_KU

oder

tempListTmpl SommerAnwesend.cfg:1_06_KU

geht beides nicht.

Profil 1_06_KU:

entities:1_06_KU
R_0_tempListSat>06:00 17.0 23:00 21.5 24:00 17.0
R_1_tempListSun>06:00 17.0 23:00 21.5 24:00 17.0
R_2_tempListMon>06:00 17.0 23:00 21.5 24:00 17.0
R_3_tempListTue>06:00 17.0 23:00 21.5 24:00 17.0
R_4_tempListWed>06:00 17.0 23:00 21.5 24:00 17.0
R_5_tempListThu>06:00 17.0 23:00 21.5 24:00 17.0
R_6_tempListFri>06:00 17.0 23:00 21.5 24:00 17.0


Konfiguration hminfo:

configDir FHEM
configTempFile SommerArbeit.cfg,SommerAnwesend.cfg,SommerAbwesend.cfg,SommerKonstant.cfg,WinterArbeit.cfg,WinterAnwesend.cfg,WinterAbwesend.cfg,WinterKonstant.cfg


Und hier nochmal ein status:

default templatefile: ./FHEM/SommerArbeit.cfg
   
files referenced but not found:
   FHEM/SommerAnwesend.cfg - Error on reading FHEM/SommerAnwesend.cfg from database!
      =>  FHEM/SommerArbeit.cfg - Error on reading FHEM/SommerArbeit.cfg from database!
      =>  FHEM/SommerKonstant.cfg - Error on reading FHEM/SommerKonstant.cfg from database!

---------components-----------
  template : device : state

     FHEM/SommerAnwesend.cfg:1_01_EZ : 1_01_EZ_2_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_01_EZ : 1_01_EZ_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_04_GT : 1_04_GT_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_06_KU : 1_06_KU_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:1_07_FL : 1_07_FL_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_01_KM : 2_01_KM_2_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_01_KM : 2_01_KM_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerAnwesend.cfg:2_05_BZ : 2_05_BZ_Heizungsthermostat_Clima : file: FHEM/SommerAnwesend.cfg error:Error on reading FHEM/SommerAnwesend.cfg from database!
     FHEM/SommerArbeit.cfg:2_02_KL : 2_02_KL_2_Heizungsthermostat_Clima : file: FHEM/SommerArbeit.cfg error:Error on reading FHEM/SommerArbeit.cfg from database!
     FHEM/SommerArbeit.cfg:2_02_KL : 2_02_KL_Heizungsthermostat_Clima : file: FHEM/SommerArbeit.cfg error:Error on reading FHEM/SommerArbeit.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ : 1_02_WZ_Wandthermostat_Climate : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat : 1_02_WZ_2_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:1_02_WZ_Heizungsthermostat : 1_02_WZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:2_03_SZ : 2_03_SZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:2_04_AZ : 2_04_AZ_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:3_02_M1 : 3_02_M1_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!
     FHEM/SommerKonstant.cfg:3_03_M2 : 3_03_M2_Heizungsthermostat_Clima : file: FHEM/SommerKonstant.cfg error:Error on reading FHEM/SommerKonstant.cfg from database!


Ich kann alles drehen und wenden wie ich will. Immer die gleichen Meldungen.
Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55

dancatt

Cubietruck: FHEM-Server 6.0

Homematic: HM-USB-CFG2, HM-CFG-LAN, HM-LC-SW1-FM, HM-LC-Sw1-Pl-DN-R1, HM-CC-RT-DN, HM-TC-IT-WM-W-EU, HM-SEC-SC-2, HM-SEC-SD, HM-PB-6-WM55