Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't read publish correctly to home assistant dhw_comfort_temp #26

Open
jetmcquack opened this issue Dec 12, 2024 · 6 comments
Open

can't read publish correctly to home assistant dhw_comfort_temp #26

jetmcquack opened this issue Dec 12, 2024 · 6 comments

Comments

@jetmcquack
Copy link

Hello, and first of all thanks for your work, it is really helpful!

before trying your solution I was using the ariston.csv from komw
With his file I could read (and publish) with no issue

r,boiler,dhw_comfort_temp,DHW Comfort Temp,,fe,200e,6126,,s,SIN,,°C,,,,,,,,,,,,,,,,,,,,,,
w,boiler,dhw_comfort_temp,DHW Comfort Temp,,fe,2020,6126,,s,SIN,,°C,,,,,,,,,,,,,,,,,,,,,,

with your ariston.csv it is not read

r,energymgr,dhw_comfort_temp,DHW Comfort Temp,,18,2000,6126,,s,IGN:1,,,,,,SIN,10,°C,,,,,,,,,,,,,,,,,,,,,,
b,energymgr,dhw_comfort_temp,DHW Comfort Temp,,fe,200e,6126,,s,SIN,10,°C,,,,,,,,,,,,,,,,,,,,,,
w,energymgr,dhw_comfort_temp,DHW Comfort Temp,,fe,2020,6126,,s,SIN,10,°C,,,,,,,,,,,,,,,,,,,,,,

So I tried pasting those lines from komw in your ariston.csv commenting out yours, and I could finally read the values in the mqtt broker (except the value is not divided by 10).

Anyway when I try to read them from home assistant the payload is sent using a wrong format and I can't see it in the interface.
this is the output from the mqtt config in home assistant

{
  "unique_id": "ebusd_boiler_dhw_comfort_temp_0",
  "device": {
    "identifiers": "ebusd__boiler",
    "manufacturer": "ebusd.eu",
    "via_device": "ebusd",
    "sw_version": "24.1",
    "suggested_area": "Heating",
    "name": "ebusd boiler"
  },
  "value_template": "{{value_json[\"0\"].value}}",
  "state_topic": "ebusd/boiler/dhw_comfort_temp",
  "unit_of_measurement": "°C",
  "state_class": "measurement",
  "device_class": "temperature",
  "name": "dhw_comfort_temp "
}

and this is the output of the payload (seems plaintext and not json)

Received 12:37:58
QoS: 0, Retained
Payload: 450

how can I make them appear with the correct JSON structure?

QoS: 0
Payload:  {
  "0": {
    "name": "",
    "value": 450
  }
}
@wrongisthenewright
Copy link
Owner

HI,
the Json formatting AFAIK is not influenced by the CSV configuration, so if there's a problem then it's present in ebusd, so you should open an issue on that repo.

For the missing /1v0 dividend it's simple enough, just add the divisor between datatype and unit of measurement:

...SIN,10,°C...

for not being able to read with my lines you should check who "owns" the 6126 parameter on your HVAC system, can you share the output of this command?

ebusctl grab result all | grep 6126

@jetmcquack
Copy link
Author

Hello and thanks for your help,

here's the result of the command:

37fe2000026126 = 100
37fe2001026126 = 215
37fe200e086126c20190018a02 = 198
37fe200f056126c20100 = 94
37fe20200c6126c201622664007d265802 = 3: energymgr dhw_info_3

@wrongisthenewright
Copy link
Owner

Try with this line instead of the previous one:

r,energymgr,dhw_comfort_temp,DHW Comfort Temp,,3c,2000,6126,,s,IGN:1,,,,,,SIN,10,°C,,,,,,,,,,,,,,,,,,,,,,

@jetmcquack
Copy link
Author

jetmcquack commented Dec 12, 2024

Hi, I have a few updates.
concerning the JSON issue is resolved, i have managed to send all the values in JSON.

at the same time, running ebusd with komw's ariston.csv inserting the ...SIN,10,°C... as you mentioned resolve the value not divided by 10.

unfortunately I can't still read the dhw_comfort_temp using your ariston.csv and your modified line, which is my goal, as your file provide much more data...

right now I have tried:

  1. pasting the lines from komw's ariston.csv to your file (commenting yours lines)
  2. editing the line in your ariston.csv as you mentioned above

I admit that I haven't fully understood how the configuration file works, and I can't really explain how it's possible that the same line in a file works but pasted in the others' don't . I guess I'm missing something.

BTW. I also get sometimes

main error] scan config 3c: ERR: SYN received

@jetmcquack
Copy link
Author

So I have made further exploration of the data broadcasted by my boiler.
the message containing the value I want to read is this:

37fe200e086126cc0190018a02

I really can't understand why the SAME LINE from KOMW file works and the SAME LINE pasted in your configuration (commenting all the others parameters ID 6126) doesn't work.

Is there some reason? do I need to set something else in the csv file?

@wrongisthenewright
Copy link
Owner

Hi, it seems to me that this message:
37fe200e086126cc0190018a02
that is a broadcasted one, so in cannot be queried, it must simply be grabbed by the bus traffic, this can be done by this line :

b,energymgr,dhw_comfort_temp,DHW Comfort Temp,,fe,200e,6126,,s,SIN,10,°C,,,,,,,,,,,,,,,,,,,,,,

Try it: as I wrote, being a broadcasted message you must wait that some device on the bus send it. you cannot force reading it.
But parameter DHW comfort temp it seems it is already grabbed by dhw_info_3 line

37fe20200c6126c201622664007d265802 = 3: energymgr dhw_info_3

This line gives you back:

6126 -> DHW Comfort Temp
6226 -> DHW Reduced/Economy Temp
7d26 -> ?? 5082=0258= 600 = 60°C ??

BTW As I got some boiler line from kmow CSV he just adapted some of the lines you found in my CSV into his CSV, so the 2 files are mostly overlapping (for boiler related messages, my file has many more codes pertaining to HP).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants