FHEM => fhem-users => Thema gestartet von: Guest am 06 März 2011, 22:10:55
Titel: Negative offset in FHT8v not supported in FHEM?
Beitrag von: Guest am 06 März 2011, 22:10:55
Originally posted by: <email address deleted>
Hi,
I have 6 FHT8V's in my living room which are controlled by one FHT80b (which is controlled by FHEM).
As in the morning some heaters/radiators stay cold, while others are really hot, I need the 'offset' funtion to adjust the valve openings.
When I use positive offset settings in the FHT80b, FHEM also reports positive offset percentages, e.g.
Offset Offset on reported FHT80b in FHEM 5 => 2% 10 => 4% 15 => 6% 20 => 8%
However, it is also possible to use a NEGATIVE offset on the FHT80b. Then, if I use -5 on the FHT80b, FHEM reports 52%. And if I use -3 it reports 51%.
Maybe FHEM misses or mis-interprets a bit somewhere which is used to report 'negative'?
Anyway, I am not even 100% sure if the negative and positive offset's on the FHT80b and FHT8v actually even work as they should, but that's a different story. Any experience with either of those anyone?
Regards, Jan.
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: rudolfkoenig am 07 März 2011, 14:22:05
Hello Jan,
I have no experience with actuator offsets, so what fhem reports is probably wrong. For my understanding: - do you refer to the actuator1 ... actuator8 messages? - can you send us some raw messages together with the interpreted ones, so that I see exactly the problem? And please tell what offset an actuator is supposed to have. - is it true, that the FHT is sending either an actuator message or an actuatorX message every 115+x seconds?
Right now fhem divides actuator values by 2.55 (100% == 255).
Regards, Rudi.
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: Guest am 07 März 2011, 19:10:49
Originally posted by: <email address deleted>
Hi Jan, Rudi,
I suppose the value happens to be signed 8bit. [127 - (-5%)] / 2.55 == 51,76%.... which is rounded up by FHEM to 52% [127 - (-3%)] / 2.55 == 50,98%1 == 51%
Ciao, Arno
Am 7. März 2011 14:22 schrieb Rudolf Koenig : > Hello Jan, > > I have no experience with actuator offsets, so what fhem reports is probably > wrong. For my understanding: > - do you refer to the actuator1 ... actuator8 messages? > - can you send us some raw messages together with the interpreted ones, > so that I see exactly the problem? And please tell what offset an actuator > is supposed to have. > - is it true, that the FHT is sending either an actuator message or an > actuatorX message every 115+x seconds? > > Right now fhem divides actuator values by 2.55 (100% == 255). > > Regards, > Rudi. > > -- > Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. > Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. > Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. > Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten. > >
-- Arno Willig
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: Guest am 07 März 2011, 23:32:28
Originally posted by: <email address deleted>
Hi Rudolf
> - do you refer to the actuator1 ... actuator8 messages?
Yes.
> - can you send us some raw messages together with the interpreted ones, > so that I see exactly the problem? And please tell what offset an actuator > is supposed to have.
This is output for actuator1 which is configured on the FHT80b with a offset of '4':
That should have been -5%, or at least, consistent with positive offsets half of that so -2 or -3.
> - is it true, that the FHT is sending either an actuator message or an > actuatorX message every 115+x seconds?
Yes, normally only an actuator message at that interval (I see that with all 7 FHT80b's I use), and when you change a 'offset' setting it stops sending the normal actuator message but starts sending a "actuatorX: offset: Y%" message at the same interval. If you change the offset setting for a different actuator, it's starting to send actuatorX messages for that one, and stops sending them for the previous one. In the morning when heating was required again, it stopped sending those actuatorX messages at all, and turned back to normal actuator messages. But the time interval always remains the same.
> Right now fhem divides actuator values by 2.55 (100% == 255).
It seems that Arno Willig's conclusion is consistent with my observations. That could explain that negative values are not shown right, and that positive values are shown at half their actual value...
Regards, Jan.
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: rudolfkoenig am 09 März 2011, 17:28:17
> So weirdly enough everything you set on the FHT80b is shown is half > that value by FHEM.
Not so weird: the computation is int(/2.55+0.5) . This is correct for normal actuator messages, but (obviously) wrong for offset messages. Can you tell me what is shown in the actuator display after an offset was transmitted?
> In the morning when heating was required again, it stopped sending those > actuatorX messages at all, and turned back to normal actuator messages.
What is displayed in this case by the actuator? I assume it is the "normal" value + offset.
My current theory is: the FHT80b sends the offset until the absolute/current value has to be changed. From now on it sends only the absolute value, and forgets about the offsets, the offset has to be remembered by the actuator.
Can you please confirm?
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: Guest am 09 März 2011, 21:05:19
Originally posted by: <email address deleted>
Hi Rudolf,
> Can you > tell me what is shown in the actuator display after an offset was transmitted?
The value on the display of the actuator is the same on all actuators, and is consistent with the normal actuator value reported in FHEM. So the offset does NOT influence the values displayed on the actuator.
When you change an offset value, the actuator will fully open, and then fully close again.
As far as I know it simply changes it's base setting (opening) at that point, and from then on uses the normaly actuator opening percentages again, relatively to the initial configured base setting.
So it does not apply the offset each time heating is required, it only applies the offset once, while resetting itself.
So normally during initialisation it determines howmuch turning is required to fully open, and howmuch is required to fully close and uses that info in the future to open for 'X%' when requested.
Now during that process it uses the offset value to slightly adept those initial settings.
> > In the morning when heating was required again, it stopped sending those > > actuatorX messages at all, and turned back to normal actuator messages. > > What is displayed in this case by the actuator? I assume it is the "normal" > value + offset.
No, just the normal value.
> My current theory is: the FHT80b sends the offset until the absolute/current > value has to be changed. From now on it sends only the absolute value, and > forgets about the offsets, the offset has to be remembered by the actuator.
I don't think so.
If I change the offset of 5 actuators, it will change each 5 of them one-by-one in a +/- 2 minute interval (so only one at a time in one time-window), and odly enough in reverse order, so the newest change first, and the oldest change last. And then it continues to report the offset value of the actuator that was changed last. I think that is simply a bug: it should report each change offset only once.
The actual change within the actuator is made only once (I guess) during reset. Why else would it fully open and fully close when you change the offset?
It would be great if FHEM could be changed to support the signed int values for the offset :-)
Regards, Jan.
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: rudolfkoenig am 10 März 2011, 20:14:11
Hello Jan,
> It would be great if FHEM could be changed to support the signed int > values for the offset :-)
Sorry for the delay, I just wanted to understand the behaviour. I checked in a new version, but the difference is small:
Added ignoreTypes attribute to autocreate to ignore your neighbours devices: attr autocreate ignoreTypes FHT_1234|CUL_HOERMANN.*
Replaced the FHEMBWEB nofork attribute with plotfork, this also reverses the default behaviour, as it creates problems on devices with limited memory and on Windows.
Regards, Rudi
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.
Titel: Re: Negative offset in FHT8v not supported in FHEM?
Beitrag von: Guest am 11 März 2011, 09:28:44
Originally posted by: <email address deleted>
Hi Rudolf,
> Sorry for the delay, I just wanted to understand the behaviour. I checked in a > new version, but the difference is small: > > < elsif($sval =~ m/.8/) { $val = "offset: $fv" } > --- > > > elsif($sval =~ m/.8/) { $val = "offset: " . ($val>128?(128-$val):$val) }
That does seem to do the job, when I set offset to -5 on the FHT80b screen, FHEM reads:
-- Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind. Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com. Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com. Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.