Note: You have to add two spaces in front of each line
#: "2.0209" is a comment in my configuration. You do not need to adapt anything here.
I asked the german support to update my device to latest firmware. Please consider do the same, because they have changed several names of the provided values in between.
Don’t forget to enable the API. Then you are able to test the connectivity first by using curl on Windows CMD prompt:
The <local_password> was initially send to you while registering the device.
Compare the provided values and add the rest config into Home Assistant configuration.yaml or rest.yaml, reboot … and check if the values are present using the developer tools menu (2-3 min later) …
This solution works without any cloud API. If I understand the support of BWT correctly, this will remain in the future firmware independent what the cloud API will provide. Currently the local API is only read-only!
How to interpret the values:
Interestingly I believe that nearly all values shows the troughput at 0dH! Due to the fact that the water is mixed with the unthreated water at the end again (to get the desired dH level), the total throughput is higher then these values.
There is one additional figure, which seems to show this: “BlendedWaterSinceSetup_l” in FW 209
Hope that helps
Thanks! The api is working so far. I created (paste & edit) a rest.yaml with your details. Unfortunately, this yaml stuff is not mine…
This is what my configuration.yaml looks like. The rest.yaml is in the same folder.
Now you could check all available fields, provided by the API: Use the output of the curl command to investigate, which additional value is relevant to you. Do you also see “BlendedWaterSinceSetup_l”?
Update: Maybe you are interested in additional values provided the API too:
Check:
Hi Sascha,
basically, my aim was to add the water consumption to the energy dashboard. So I added another sensor for daily water consumption. I choose the WaterTreatedCurrentDay_l for that. Surprisingly I get a strange output:
It seems as if the way with sensor.bwt_water_treated_current_day is not working. I guess the problem is, that on resetting the values at 0.00 am, the sensor shows the value from last day, which is then set to zero. Therefore, the consumption from last day is shown as negative value?!
You might need to store the last value just before resetting into another sensor (probably an input helper) and create an utility meter with it to feed into energy dashboard
Honestly, this is trial and error
I’ll give a feedback tomorrow…
The next problem would be that I can’t add the created helper to the energy dashboard cause it does not appear there?!
For notice: You are able to adjust the statistics using the developer tools → statistics menu. Click on the icon of the used sensor ( → Adjust a statistic) and adapt the individual value (you have to check the graph first to find the timestamp)…
Ok, this makes things a lot easier.
I’ll give that a try, thanks!
BTW: The way with setting the state_class to total_increasing seems to deliver valid measurements too, at least for today. This works for using the sensor water_treated_current_day as well as the utility meter. I understand that this may interfere with the overal statistic. So this might be the wrong way.
Hi @anon63427907
the source output of the command provides a figure in liter.
Example output taken from my BWT using curl:
"BlendedWaterSinceSetup_l" : 97681,
So I assume that this value shows the grand total of output water of the device in liter. Converted to m³ I have devided it by 1000.
My HA sensors show:
sensor.bwt_water_blended_total_l: 97681.0
sensor.bwt_water_blended_total_m3: 97.681