tschamm / boschshc-hass

Home Assistant component for accessing Bosch Smart Home Controller using boschshcpy python library.
Other
152 stars 21 forks source link

Energy manager #95

Open SimonRothmann opened 1 year ago

SimonRothmann commented 1 year ago

Is there any chance to intigrate the energy manager into the module, so you could get readings for the photovoltaik. The goal is then to create automations based on this data? :)

tschamm commented 9 months ago

You mean to get PV readings from the energy manager displayed in HA as well? That would be possible, at least these information are available within the polling. I skipped integrating these information, as I expect using a specific PV inverter integration would be the better solution.

yodasopa commented 9 months ago

Hi tschamm,

it would be great if you could add the PV information :)!

I could use the SMA integration directly, but the Bosch Energy Manager has additional information through the Power Meter and Power Sensor.

I can see in the Energy Manager app what my PV is generating, what I feed into the grid or draw, what the household and heat pump is using.

Screenshot (09 10 2023 23_17_44)

SimonRothmann commented 8 months ago

I will get exactly the same setup as @yodasopa as it seems. So yeah would be great to get this energy data also into home assistant.

tschamm commented 7 months ago

This data is expose via the API:

DEBUG (SHCPollingThread) [boschshcpy] Long poll: {'localizedSubTitles': {'de': 'Netzbezug', 'en': 'Grid Supply'}, '@type': 'link', 'name': 'EMMA', 'currentIconId': 'supply', 'id': 'com.bosch.tt.emma.applink', 'version': 'xxx', 'localizedTitles': {'de': 'Energiefluss', 'en': 'Energy Flow'}, 'localizedInformation': {'en': '316 W'}}

This is however relatively sparse, this is why I do not see that very helpful. What is your opinion?

yodasopa commented 4 months ago

Ah, this is the "Energiefluss" card in the Smart Home App: Screenshot_20240217-081636

This will help me a lot. I tried to integrate the Bosch Power Meter into Home Assistant via ModBus TCP, unfortunately without success. With this information and the SMA Integration i can calculate what the house is using. Unfortunately, I still don't know what the heat pump uses but its a step in the right direction.

So you can get all the information from the Bosch Smart Home App via your API, but sadly not the information from the Energy Manager, wich is also running on the Smart Home Controller :( Maybe you cant see these values because you first need to activate the Energy Manager? https://www.bosch-smarthome.com/de/de/produkte/weitere-bosch-produkte/energiemanager/ If you want look into this and i can help you with information from my controller, let me know :)

It would be really nice if you can add the "Energiefluss" Value in your Integration.

Thank you!

RaHehl commented 4 months ago

I would also be interested in integrating the energy manager, but less because of the PV than because of the heat pump, as I don't know of any other data source for energy consumption of the heat pump

tschamm commented 4 months ago

As said above, not much information is provided via the API of the SHC. You want to file a feature request here.

For monitoring the values of the heat pump (I guess its an Bosch/Buderus one), I recommend buying an EMSESP device and read directly the EMS bus. Works reliable at my home and provides all details to read HP states and set states.

RaHehl commented 4 months ago

I have a Bosch Compress 7001i

The thing with the EMS ESP sounds exciting, but that would only be useful in 2.5 years when the warranty on my heat pump has expired. My "premium" Bosch service partner is already overwhelmed by the fact that I have an energy manager from Bosch. He doesn't want to have anything to do with such "modern" devilish stuff. If I then connect something to the internal bus, he'll have a heart attack during the next maintenance.

I'm actually primarily interested in seeing where the electricity goes in the house; the information about the energy flow from the EMMA app would be enough for this.

More data such as heating circuit and buffer tank temperature as can be found in the HomeCom app would at most be a bonus goal.

So far I have used https://github.com/bosch-thermostat/home-assistant-bosch-custom-component for this, but this is incompatible as of 2024.2 because of python 3.12 and the xmpp lib used, and I also suspect that Cause when my heat pump goes offline until the control is switched off and on.

Then I'll try it with a feature request, since the data is already available in the private API (at least in terms of energy flow) it should actually be possible

RaHehl commented 2 months ago

Using EMS ESP worked: https://github.com/emsesp/EMS-ESP32/issues/1717

yodasopa commented 2 months ago

perfect, now i only need the energy flow value. @tschamm can you please add the energy flow value?

RaHehl commented 2 months ago

@yodasopa These are values that your SMA inverter/power meter should provide you with

yodasopa commented 2 months ago

I dont't have an SMA power meter. I have the Bosch Power Meter PM7000 and an Power Sensor PS7000. I already tried to integrate the Power Meter via ModBus TCP, unfortunately without success. The SMA inverter only knows what it is producing.