Autor Thema: THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.  (Gelesen 195425 mal)

Offline godmorgon

  • New Member
  • *
  • Beiträge: 40
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #75 am: 15 Februar 2015, 12:04:23 »
0 is supposed to stop ventilation for a period specified by "unsched. vent time stage 0". After that the ventilation should return to the default fan stage. I don't have a clue how to terminate unscheduled ventilation.

I also noticed that setting unscheduled ventilation on the control panel does not always start it immediately.

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1049
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #76 am: 15 Februar 2015, 12:10:31 »
hypothesis:
could be that it starts immediately only if you set the same value, already set in the register?

e.g.
register has a 0 and you want unscheduled 1 --> you have to set 2 times: one for changing and one for activating?
register has a 0 and you want unscheduled 0 --> you have to set 1 time for activating

p.s. I have never liked this feature.

Offline mlb

  • New Member
  • *
  • Beiträge: 47
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #77 am: 15 Februar 2015, 12:43:33 »
Hmm setting it twice does not activate ventilation nor change register value, at least in my case... Yes, I have also noticed when starting from control panel - there is usually delay after unscheduled ventilation is activated.

In my case unscheduled ventilation is very useful feature. I have a fireplace that is connected to heating system. So sometimes when I start the fire, there is a bit of smoke getting into room and then it is useful to increase ventilation to clean the air. Also when it happens to prepare food with intensive smell propagating to other rooms - it is useful feature too. In such cases I need to go to garage and activate ventilation from control panel manually, and it would be so much easier just to draw smartphone from the pocket and start it instantly... :)

Offline andre.k

  • Full Member
  • ***
  • Beiträge: 115
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #78 am: 15 Februar 2015, 12:53:30 »
v 0132 uploaded; tomorrow you can update
- added p99startUnschedVent
- splitting of big register implemented; this is needed for writing in old 206 firmware.
- vertical range in the heating curve changed to 15..35°C as requested.

@all I changed lots of code for the splitting, update only if you need.
@all with old firmware, wait for Andre testing!!
@Andre:please comment out line 797. Can you test the writing in the old firmware? No actual writing takes place. I didn´t finish subTHZ_Set: just 50%. I want your feedback before going on.

immi
Hi immi,
your new version works fine. It's a good idea to introduce a parent child relation for register with multiple values. But we need to be careful with spelling of the readings, because we use the names twice in %parsing and in %sets/%gets, e.g.
p12FanStageManual <> p12FANStageManual

I would suggest to rename some readings.
     "p01RoomTempDay" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "30", unit =>" °C"},
     "p02RoomTempNight" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "30", unit =>" °C"},
     "p03RoomTempStandby" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "30", unit =>" °C"},
-    "p04DHWsetDayTemp" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
-    "p05DHWsetNightTemp" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
-    "p06DHWsetStandbyTemp" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
+    "p04DHWsetTempDay" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
+    "p05DHWsetTempNight" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
+    "p06DHWsetTempStandby" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "55", unit =>" °C"},
     "p07FanStageDay" => {parent=>"p01-p12", argMin =>   "0", argMax =>    "3", unit =>""},
     "p08FanStageNight" => {parent=>"p01-p12", argMin =>   "0", argMax =>    "3", unit =>""},
     "p09FanStageStandby" => {parent=>"p01-p12", argMin =>   "0", argMax =>    "3", unit =>""},
     "p10RoomTempManual" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "65", unit =>" °C"},
-    "p11DHWSetTempManual" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "65", unit =>" °C"},
-    "p12FANStageManual" => {parent=>"p01-p12", argMin =>   "0", argMax =>   "3", unit =>""}
+    "p11DHWsetTempManual" => {parent=>"p01-p12", argMin =>  "10", argMax =>   "65", unit =>" °C"},
+    "p12FanStageManual" => {parent=>"p01-p12", argMin =>   "0", argMax =>   "3", unit =>""}
     

In the patch I corrected also some typos and some bugs from my first version of parsing elements.
Andre
 

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1049
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #79 am: 15 Februar 2015, 13:56:08 »
v0.133 uploaded
- andres path
- autoscale of heatcurve for mlb

Offline mlb

  • New Member
  • *
  • Beiträge: 47
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #80 am: 15 Februar 2015, 14:22:05 »
Cheers immi :)

I'm happy to confirm the unscheduled ventilation started working after I created a control for it:
define Fan.Unscheduled dummy
attr Fan.Unscheduled devStateIcon 0:vent_ventilation_level_0 1:vent_ventilation_level_1 2:vent_ventilation_level_2 3:vent_ventilation_level_3
attr Fan.Unscheduled group THZ-Fans
attr Fan.Unscheduled room Heating
attr Fan.Unscheduled setList 0 1 2 3
attr Fan.Unscheduled webCmd 0:1:2:3
define Notify_p99startUnschedVent notify Fan.Unscheduled set Mythz p99startUnschedVent $EVENT
define Notify_UnschedVent notify (Mythz.p99startUnschedVent.*) setstate Fan.Unscheduled $EVTPART1

No idea why it did not work when I was trying to send values directly...

Offline houseowner123

  • Full Member
  • ***
  • Beiträge: 189
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #81 am: 15 Februar 2015, 15:19:32 »
I hate these unnecessary safety features.   >:( So, how can I enable to edit fhem.cgf? I tried so far: editConfig1; editConfig=1; editConfig 1; editConfig:1; editConfig: 1
Nothing worked, nothing in the documentation expect for that you should set editConfig to 1.

Help would be appreciated. Thanks!

PS: Do I need to change the entry directly in 01_FHEMWEB.pm? editConfig: 1,0
« Letzte Änderung: 15 Februar 2015, 15:51:01 von houseowner123 »

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1049
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #82 am: 15 Februar 2015, 15:30:00 »
I hate these unnecessary safety features.   >:( So, how can I enable to edit fhem.cgf? I tried so far: editConfig1; editConfig=1; editConfig 1
Nothing worked, nothing in the documentation expect for that you should set editConfig to 1.
OT
I read about this nice idea:) here http://forum.fhem.de/index.php/topic,33708.0.html
please post where Rudolf will read your opinion;
in the development area you are readonly.
« Letzte Änderung: 15 Februar 2015, 15:34:55 von immi »

Offline willybauss

  • Hero Member
  • *****
  • Beiträge: 1832
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #83 am: 15 Februar 2015, 19:00:37 »
I hate these unnecessary safety features.   >:( So, how can I enable to edit fhem.cgf?
The right way is:
  • select "Everything" from the left column
  • scroll down to FHEMWEB section
  • click on the "Web" link
  • in the row starting with the "attr" icon select "editConfig" from the pull down menu
  • for the value select "1" in the most right column
  • press "attr" button to add the new attribute to the configuration
  • press "Save config" button in left column
  • do same steps for WEBphone and/or WEBtablet if necessary
« Letzte Änderung: 15 Februar 2015, 19:03:24 von willybauss »
FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS, CO20, FHEM2FHEM

Offline houseowner123

  • Full Member
  • ***
  • Beiträge: 189
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #84 am: 15 Februar 2015, 19:06:47 »
Thank you so much, Willy!  :D

Offline andre.k

  • Full Member
  • ***
  • Beiträge: 115
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #85 am: 15 Februar 2015, 19:23:09 »
v0.133 uploaded
- andres path
- autoscale of heatcurve for mlb
Immi, have you included the rest of the THZ_Set code for old firmware? Or do you still wait for testing?
Andre

Offline willybauss

  • Hero Member
  • *****
  • Beiträge: 1832
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #86 am: 15 Februar 2015, 19:30:21 »
Thank you so much, Willy!  :D
As long as you're not familiar with the FHEM user interface (and therefore with FHEM at all?) you should avoid modifying the fhem.cfg manually. The above mentioned usage is given almost everywhere in fhem. E.g. if you want to create a new plot just navigate to
Everything - FileLog - FileLog_Mythz
and there click on the "Create_SVG_Plot" button, what brings you into the graphical UI for plot creation.
FHEM auf Raspberry Pi B und 2B; THZ (THZ-303SOL), CUL_HM, TCM-EnOcean, SamsungTV, JSONMETER, SYSMON, OBIS, STATISTICS, CO20, FHEM2FHEM

Offline immi

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1049
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #87 am: 15 Februar 2015, 19:39:52 »
Immi, have you included the rest of the THZ_Set code for old firmware? Or do you still wait for testing?
Andre
Andre
I just managed to avoid that you read p01-p12 13 times during inizialization.
rest of the THZ_Set code will come with the next one, maybe this night; now the children have to be prepared for bed

Offline andre.k

  • Full Member
  • ***
  • Beiträge: 115
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #88 am: 15 Februar 2015, 20:21:25 »
Immi,

I don't want to push you :)
Andre

Offline houseowner123

  • Full Member
  • ***
  • Beiträge: 189
Antw:THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.
« Antwort #89 am: 15 Februar 2015, 21:17:17 »
As long as you're not familiar with the FHEM user interface (and therefore with FHEM at all?) you should avoid modifying the fhem.cfg manually. The above mentioned usage is given almost everywhere in fhem. E.g. if you want to create a new plot just navigate to
Everything - FileLog - FileLog_Mythz
and there click on the "Create_SVG_Plot" button, what brings you into the graphical UI for plot creation.

I know "create_SVG_Plot" button. ;) I find the documentation not really beginner-friendly. So I have been doing things in the them.cfg. Not elegant, I don't understand everything that I do there but through trial and error I get by.  ;)

Back to the unschedules event. To my mind, it only works in conjunction with a duration that needs to be set. I also noticed a bug in the software. When I am in from of the display it never takes the setting the first time. I always have to entire it twice. Does anybody else have this issue too? The new button for me starts the unscheduled event but only at the fan stage setting that was there before. I had setback stage 1--> wanted to trigger unscheduled stage 3--> result was unscheduled stage 1

edit: Just as I thought: activating the trigger twice, does the trick. :) Is there a certain delay necessary?

« Letzte Änderung: 15 Februar 2015, 21:34:50 von houseowner123 »

 

decade-submarginal