Remove HEMS an EEBus devices and change TCU handling to gateway - #364
Conversation
CFenner
left a comment
There was a problem hiding this comment.
Can you also add test cases as for the OPTO1?
https://github.com/somm15/PyViCare/blob/master/tests/test_VitoconnectOpto1.py
| if device.deviceType not in ["heating", "zigbee", "vitoconnect", "electricityStorage", "tcu", "ventilation"]: | ||
| continue # we are only interested in heating, photovoltaic, electricityStorage, hems and ventilation devices | ||
|
|
||
| if device.id == "gateway" and device.deviceType == "vitoconnect": |
There was a problem hiding this comment.
Probably this is also no longer necessary.
There was a problem hiding this comment.
Yes you are right, this is not necessary anymore.
|
Sadly, I cannot test the TCU data point for Wi-Fi strength because my TCU is connected via Ethernet, but I will write a test for the Serial number |
CFenner
left a comment
There was a problem hiding this comment.
👍
You could also add auto detect test cases: https://github.com/somm15/PyViCare/blob/master/tests/test_PyViCareDeviceConfig.py
| (self.asElectricalEnergySystem, r"E3_TCU10_x07", ["type:tcu"]), | ||
| (self.asElectricalEnergySystem, r"E3_EEBus", ["type:eebus"]), | ||
| (self.asElectricalEnergySystem, r"E3_VitoCharge_03", ["type:energy_storage"]), | ||
| (self.asGateway, r"E3_TCU10_x07", ["type:gateway;TCU300"]), |
There was a problem hiding this comment.
The TCU could probably also be ignored in the HA integration, right?
https://github.com/home-assistant/core/blob/dev/homeassistant/components/vicare/const.py#L18
There was a problem hiding this comment.
Yes, the TCU does not provide any information
There was a problem hiding this comment.
Do you create the PR in the Home Assistant Repo?
|
Thank you @Nibot1 lgtm |
This PR will remove the handling of HEMS and EEBUS devices because the API does not provide any features or data points.
The Functionality of managing the Vitocharge VX3 is not affected, the HEMS and EEBus devices are separate devices, which I accidentally messed up in my last PR
The handling of the E3_TCU unit will be changed to a gateway, like mentioned by @CFenner in PR #318
Maybe in the future there will be more possibilities to manage, for example Vehicle Charging Stations (VCS).
The devices are already listed, but we cannot access features or data points.
Sadly, I cannot test the TCU data point for Wi-Fi strength because my TCU is connected via Ethernet. There is a documented data point for Ethernet
gateway.ethernet.config, but this also somehow doesn't show up on my TCU, so I can't implement this currently.