-
-
Notifications
You must be signed in to change notification settings - Fork 97
Added retrieving settings (0xA5) (validated on RC30N), and MQTT cmd t… #352
Conversation
…o set display, building type and language.
super!
BTW: how do i get my dev branch on github now be in sync with yours? Is
there a specific magic? Last time, i've had to delete the space in github
and recreate it.
thank you
have a nice day,
Yves
…On Mon, Mar 23, 2020 at 11:30 AM Proddy ***@***.***> wrote:
Merged #352 <#352> into dev.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBL7YERKIFNAESDGFR3RI425FANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
are you using the command line or Visual Studio Code? |
Hi, |
to operate on my dev branch on github, i use the github website. on the
local dev repository, i use mainly command line as well as the git gui.
in vsc, it directly mirrors your dev branch, but i don't submit from there,
as i did not know how to make a pull request from there. so, i copy the
modified files to my local dev repository, commit and push from there, and
create the pull request from github.
sounds like overkill :-)
…On Mon, Mar 23, 2020 at 2:30 PM Proddy ***@***.***> wrote:
are you using the command line or Visual Studio Code?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBJBCFP5OFC7IN2B5J3RI5QADANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
I'm using git for windows as base tool and on top of that Tortoise Git - an excellent integration of Git into the Windows environment. Push requests I create on Github... |
I don't have to copy locally. VSC and Tortoise Git all operate on the same directory. |
thanks!
i'll give it a try
…On Mon, Mar 23, 2020 at 2:53 PM Martin Patzel ***@***.***> wrote:
I don't have to copy locally. VSC and Tortoise Git all operate on the same
directory.
So if I change something in VSC I directly see the differences in Tortoise
Git and can commit and push it to Github
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBJPED7ZUPONTB5UOV3RI5SVTANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
I have tested this on RC35 (which is almost identical to RC30N): But writing seems not to work: writing raw to offset 0 or 1 does not work, writing raw to offset 05 (min ext. temp) works. |
In ems-esp.cpp, there is no restriction to setting values, so the void
ems_setSettingsLanguage(uint8_t lg) is called properly and made up and
(should have) fire(d) the telegram.
It is only in ems_getSettingsValues where i implemented a restriction to
the type of thermostat to be queried daily (to avoid crashing other
systems). There you want to also add the case for RC35.
It would be interesting to "log w A5" and then issue
{"cmd":"language","data":"italian"} (indeed correct syntax and the
debug log of setting language to 3 is also in line with expectations).
The command 0B 90 A5 00 20 is asking the thermostat to surrender the
settings, and indeed yours did not change. Alternatively, i wonder if it is
not region-dependent. When you go in the setup of the RC35 and change
language (watch "log w A5"), which other languages do you have? do they
correspond to the same values?
best,
Yves
…On Mon, Mar 23, 2020 at 6:54 PM MichaelDvP ***@***.***> wrote:
I have tested this on RC35 (which is almost identical to RC30N):
(17:17:36) Sending raw: 0B 90 A5 00 20
(17:17:36) Thermostat -> Me, IBASettingsMessage(0xA5), telegram: 10 0B A5
00 00 00 00 00 FF F5 01 06 00 01 00 01 00 FF 00 01 00 05 20 05 28 FF 03 00
00 00 00 (#data=27)
in MQTT:
settings_data:
{"display":"int.
temperature","language":"German","CalIntTemperature":0,"MinExtTemperature":-11,"building":"medium","clockOffset":0}
info:
Thermostat data:
Thermostat: RC35 (DeviceID: 0x10, ProductID: 86, Version: 01.18)
Thermostat time is 18:01:31 23/03/2020
Display: internal temperature
Language: German
Offset int. temperature: 0.0 K
Min ext. temperature: -11 C
Building: medium
Offset clock: 0 s
But writing seems not to work:
{"cmd":"language","data":"italian"}
gives in terminal:
Setting language to 3
but the telegram A5 is unchanged.
(18:14:45) Sending raw: 0B 90 A5 00 20
(18:14:46) Thermostat -> Me, IBASettingsMessage(0xA5), telegram: 10 0B A5
00 00 00 00 00 FF F5 01 06 00 01 00 01 00 FF 00 01 00 05 20 05 28 FF 03 00
00 00 00 (#data=27)
writing raw to offset 0 or 1 does not work, writing raw to offset 05 (min
ext. temp) works.
I will test a bit more.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBKCBXULXPMYAY2VM5TRI6O47ANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
OK, i've checked the menu settings:
|
Hi Michael,
thank you for the information, appreciated!
Let me understand better.
in my RC30N:
10 0B A5 00 00 02 00 00 FF F6 01 06 00 01 0D 03 03
00 01 02 03 04 05 06 07 08 09 10 11 12
in yours (from previous message)
10 0B A5 00 00 00 00 00 FF F5 01 06 00 01 00 01 00 FF 00 01 00 05 20 05 28
FF *03* 00 00 00 00 (#data=27)
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17
18 19 20 21 *22* 23 24 25 26
your display line is controlled by the position 22 (0x16), and currently
with value 3, right?
could you describe which value for what
(Clock/Outdoortemp/Boilertemp/WWtemp)?
thank you
kind regards
Yves
…On Tue, Mar 24, 2020 at 11:06 AM MichaelDvP ***@***.***> wrote:
OK, i've checked the menu settings:
- Language: German
RC35 has not language menu, it is always german and can not be changed.
- Display:
In the display only the upper line can be changed to
Clock/Outdoortemp/Boilertemp/WWtemp
It's in pos. 0x16 in the A5-telegram and differs from RC30N
- Offset int. temperature: 0.0 K
Can't test, i have weather controled ciruit, RC35 int. temp isn't
measured in this mode.
- Min ext. temperature: -11 C
works, i can change it also
- Building: medium
works also
- Offset clock: 0 s
not present in RC35
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBO6TA4HDFHHSZ6OCE3RJCAZJANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
Hi Yves, BTW: |
OK, i submitted code changes to take the rc35 into account, and updated the
mqtt wiki to document clockoffset and minexttemp.
…On Tue, Mar 24, 2020 at 12:24 PM MichaelDvP ***@***.***> wrote:
Hi Yves,
right, pos 22 (0x16) with value 3 (WWTemp). The values are:
0 Date&Clock
1 Outdoortemp
2 Boilertemp
3 WWTemp.
and according to manual Solar Collectortemp. if solarmodule is attached (i
guess it's 4).
BTW:
i see that in MQTTCallback the setting for
EMS_VALUE_IBASettings_LANG_DUTCH is missing, and
TOPIC_SETTINGS_CMD_MINEXTTEMP is defined but not present for now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBKMTYZWMYMNIASTDZ3RJCJ5LANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
Hi Yves, The RC35 display is a bit strange. I can set the value and it is stored in the thermostat, but the display updates only if i do something manual on the RC30 (push info and go back to homescreen for instance). Is it the same on RC30? Or is there a commmand to trigger a displayupdate? (if i change the setpoint roomtemp the display shows "geänderte Raumtemperatur" in the lower line and updates also the upper line to the display setting) You ask before how to sync with proddy. I'm also relative new to git and maybe it's not the best way, but it works for me: From the local commandline create an new branch: |
Hi Michael
RC30 does not need to be triggered to change display. It happens seconds
after the instruction is received. Actually it takes place when the RC30
replies with its updated configuration. I don't know about RC35. A quick
look for the manual on the web shows same form factor, but different
settings. I was also happy to read how building type was used to model the
heating curves (tab 11 for the factors used in adj. time constant).
thank you for the abridged list of git functions. I discovered indeed new
things, it merged correctly your changes, but was not able to exploit these
to make diffs between your code and my latest dev (and i tried svc, git gui
and tortoise)
I did therefore a quick peek at the diffs on github. I am not sure that you
used my latest developments (for example, receiving 0 from mqtt should be
allowed - that is the if(t) { should be removed).
On the int8_t changes, please hide hardcoded value (127) into a #define,
it'll make any future changes easier (hoping that 127 stays outside of
permissible ranges of values for the other variables as well of course).
In my opinion, it would make more sense that you push your code once Proddy
has taken the pull request of my latest dev. This would provide the
possibility to make diff on the changes more clearly. I have not tested
your developments, so, so far, i don't know whether it breaks anything for
the rc30.
kind regards
Yves
…On Fri, Mar 27, 2020 at 10:43 AM MichaelDvP ***@***.***> wrote:
Hi Yves,
thank you for implementing the RC35. I've merged your code to my
MyDev-branch and made some small changes to your code. Can you please check
if it also fits your demands?
If you agree i can make the pull request to proddy, as i have some other
enhencements.
The RC35 display is a bit strange. I can set the value and it is stored in
the thermostat, but the display updates only if i do something manual on
the RC30 (push info and go back to homescreen for instance). Is it the same
on RC30? Or is there a commmand to trigger a displayupdate? (if i change
the setpoint roomtemp the display shows "geänderte Raumtemperatur" in the
lower line and updates also the upper line to the display setting)
You ask before how to sync with proddy. I'm also relative new to git and
maybe it's not the best way, but it works for me: From the local
commandline create an new branch:
git checkout -b newbranch
check if it is active
git branch
create a upstream
git remote add proddy https://github.com/proddy/EMS-ESP
fetch actual version
git fetch proddy
merge
git merge proddy/dev
You can also add other upstreams:
git remote add Michael https://github.com/MichaelDvP/EMS-ESP
git fetch Michael
git merge Michael/MyDev
to show the changes to your dev-branch:
git diff dev newbranch
and push to you github
git push --set-upstream origin newbranch
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#352 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMDTBMPSUBROQHEKP5ZZNDRJRYNXANCNFSM4LRMZGBQ>
.
--
Cordialement,
Yours sincerely,
-Yves Paindaveine
|
Hi Yves,
Have you merged to a new branch? From the git gui select Repository->Git Bash
I have merged your dev-repo from github, but in your code the mqtt-values have to be send as string with quotes {"cmd":"calintemp","data":"-1"} instead of number ("data":-1) as all other values in ems-esp, so i changed it. The code also works with value 0, try it.
OK, done.
Hmm, i think it's double work for proddy to handle two PRs, and you can test on RC30, I can test on RC35, so if we can agree to a single pull request ist less work for proddy and the code ist tested on both contollers. |
Is there anything I can do to help here? |
you are right, i don't know why it works in my first test. I've changed now in the way to allow numbers including 0. I tested double for all values. (also fixed my bug in signed int handling and added mqtt for CalIntTemp) @proddy |
LOL. I appreciate your contributions, really good stuff. I was thinking since both of you and going back and forth with pull requests I could create a special branch under EMS-ESP for this feature and add you both as contributors. Then you can checkin/checkout as you want. Also I'm busy re-writing EMS-ESP for a version 2.0. I started from scratch and used more modern software design patterns to make it easily extensible. At some point I'll need to port your settings code over so watch out for that. |
Added retrieving settings (0xA5) (validated on RC30N), and MQTT cmd to set display, building type and language.