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

Add support for HitachiAirToAirHeatPump (ovp:HLinkMainController) #299

Closed
Seb0101 opened this issue Oct 21, 2020 · 43 comments · Fixed by #364
Closed

Add support for HitachiAirToAirHeatPump (ovp:HLinkMainController) #299

Seb0101 opened this issue Oct 21, 2020 · 43 comments · Fixed by #364

Comments

@Seb0101
Copy link

Seb0101 commented Oct 21, 2020

Device information
I would like to have my Hitachi air conditioners in your component, to see them in HA as climate entities.
If possible manage fans (it's not included in the homebridge plugin I use today - reference homebridge tahoma plugin https://github.com/dubocr/homebridge-tahoma).
In order to have all my Somfy devices with just one integration.

Device details
Unsupported TaHoma device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump)

And thanks for all your job.
Sébastien

{
	"commands": [{
		"commandName": "getName",
		"nparams": 0
	}, {
		"commandName": "identify",
		"nparams": 0
	}, {
		"commandName": "setAutoManu",
		"nparams": 1
	}, {
		"commandName": "setHolidays",
		"nparams": 1
	}, {
		"commandName": "setName",
		"nparams": 1
	}, {
		"commandName": "globalControl",
		"nparams": 5
	}, {
		"commandName": "setMainOperation",
		"nparams": 1
	}],
	"states": [{
		"values": ["auto", "manu"],
		"type": "DiscreteState",
		"qualifiedName": "core:AutoManuModeState"
	}, {
		"values": ["off", "on"],
		"type": "DiscreteState",
		"qualifiedName": "core:HolidaysModeState"
	}, {
		"type": "DataState",
		"qualifiedName": "core:NameState"
	}, {
		"values": ["available", "unavailable"],
		"type": "DiscreteState",
		"qualifiedName": "core:StatusState"
	}, {
		"type": "ContinuousState",
		"qualifiedName": "core:TargetTemperatureState"
	}, {
		"type": "DataState",
		"qualifiedName": "ovp:DiagnosticCodeState"
	}, {
		"values": ["Auto FAN", "Hi FAN", "Lo FAN", "Med FAN", "silent"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:FanSpeedState"
	}, {
		"values": ["OK", "alert"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:FilterConditionState"
	}, {
		"values": ["normal", "reset"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:FilterResetState"
	}, {
		"values": ["auto", "holidays", "normal", "timer"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:HLinkVirtualOperatingModeState"
	}, {
		"values": ["off", "on"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:MainOperationState"
	}, {
		"values": ["auto cooling", "auto heating", "circulator", "cooling", "dehumidify", "fan", "heating"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:ModeChangeState"
	}, {
		"type": "ContinuousState",
		"qualifiedName": "ovp:OutdoorTemperatureState"
	}, {
		"values": ["disable", "enable"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:RemoconControlState"
	}, {
		"type": "ContinuousState",
		"qualifiedName": "ovp:RoomTemperatureState"
	}, {
		"type": "ContinuousState",
		"qualifiedName": "ovp:TemperatureChangeState"
	}, {
		"values": ["off", "on"],
		"type": "DiscreteState",
		"qualifiedName": "ovp:ThermoStatusState"
	}],
	"dataProperties": [{
		"value": "500",
		"qualifiedName": "core:identifyInterval"
	}],
	"widgetName": "HitachiAirToAirHeatPump",
	"uiClass": "HitachiHeatingSystem",
	"qualifiedName": "ovp:HLinkMainController",
	"type": "ACTUATOR"
}
@Seb0101 Seb0101 added the enhancement New feature or request label Oct 21, 2020
@vlebourl
Copy link
Collaborator

Hi, my bad for pointing you to the wrong template...

We need further details to be able to add your device. Can you copy and fill the following?

Device details

Enable debug logging (https://github.com/iMicknl/ha-tahoma#enable-debug-logging) and paste the Unsupported Tahoma device string here.

If your device already shows up in Home Assistant, share the type (e.g. io:DimmableLightIOComponent), which can be gathered from device page in HA looking at Firmware /config/devices/dashboard

@vlebourl vlebourl changed the title Support for Hitachi Heating System Add support for Hitachi Heating System () Oct 21, 2020
@vlebourl vlebourl added new-device platform: climate and removed enhancement New feature or request labels Oct 21, 2020
@vlebourl vlebourl self-assigned this Oct 21, 2020
@Seb0101 Seb0101 changed the title Add support for Hitachi Heating System () Add support for Hitachi Heating System (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump) Oct 27, 2020
@Seb0101
Copy link
Author

Seb0101 commented Oct 27, 2020 via email

@github-actions
Copy link

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@Seb0101
Copy link
Author

Seb0101 commented Nov 29, 2020

Hi, this issue which is rather a request for improvement is still active, thanks.

@github-actions github-actions bot closed this as completed Jan 4, 2021
@iMicknl iMicknl reopened this Jan 8, 2021
Repository owner deleted a comment from github-actions bot Jan 8, 2021
@iMicknl
Copy link
Owner

iMicknl commented Jan 12, 2021

@Seb0101 could you share some more information (or a picture :-)) of the device. I thought this was a climate device, like a thermostat, but upon reading this issue again it looks like this is a physical fan.

I will try to spend some time on your device in the coming weeks.

@iMicknl iMicknl assigned iMicknl and unassigned vlebourl Jan 12, 2021
@Seb0101
Copy link
Author

Seb0101 commented Jan 13, 2021

Hi, I can share a product description, here it is.
Thanks again for all your work.
Sébastien
Hitachi mokai.pdf

@iMicknl
Copy link
Owner

iMicknl commented Jan 15, 2021

Thanks @Seb0101. What would you like to be able to control? Setting the temperature / choosing a preset?

Could you add a screenshot of your TaHoma application here? I wonder what possibilities they have for this device.

@Seb0101
Copy link
Author

Seb0101 commented Jan 17, 2021

Hi,
Here is a screenshot.
Ideally I would like to do the same from HA, the scheduling being done by HA : set the mode (auto / heat / fan / humidity / cool), set the fan speed (auto / manual 0 to 4) and, but I doubt it possible (it is not from tahoma), the direction of the fan - swing mode).
Thanks.
tahoma clim hitachi.pdf

Screen Shot 2021-01-27 at 21 39 38

@iMicknl iMicknl changed the title Add support for Hitachi Heating System (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump) Add support for HitachiAirToAirHeatPump (ovp:HLinkMainController) Jan 27, 2021
@iMicknl iMicknl linked a pull request Jan 27, 2021 that will close this issue
@iMicknl
Copy link
Owner

iMicknl commented Jan 27, 2021

Could you give https://github.com/iMicknl/ha-tahoma/archive/feature/support_HitachiAirToAirHeatPump.zip a try? Extract this file and place custom_components/tahoma in your custom_components folder.

It is a very limited version (yet), but I hope to add more bit by bit. It is quite a complex device, thus we probably need quite some tries.

@pmb91917 @Seb0101

@pmb91917
Copy link

Unfortunately still the same error

2021-01-28 00:01:00 DEBUG (MainThread) [custom_components.tahoma] Finished fetching TaHoma Event Fetcher data in 0.141 seconds
2021-01-28 00:01:04 DEBUG (MainThread) [custom_components.tahoma.coordinator] Initialized DataUpdateCoordinator with 0:00:30 interval.
2021-01-28 00:01:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching TaHoma Event Fetcher data in 0.047 seconds
2021-01-28 00:01:04 DEBUG (MainThread) [custom_components.tahoma] Unsupported TaHoma device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/11799525)
2021-01-28 00:01:04 DEBUG (MainThread) [custom_components.tahoma] Unsupported TaHoma device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/1751712)
2021-01-28 00:01:04 DEBUG (MainThread) [custom_components.tahoma] Unsupported TaHoma device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/8813866)

@Seb0101
Copy link
Author

Seb0101 commented Feb 6, 2021

Hi
Sorry I was away and will not be very available in the next weeks.
I just tried to copy the latest link, pyhoma, nothing changed except a very long startup.
After that I copied the previous link issued in (#299 (comment))
Entities are added to HA, but show as unavailable.
So I recopied the pyhoma 0.5.7, entities are still there, but also show as unavailable.
Just tried to do tahoma.get_execution_history, ordered some commands from tahomalink. Nothing appears in the logs.
Here is a screenshot of the state in developper tools.
Capture d’écran 2021-02-06 à 15 07 27

Should I remove first the tahoma integration before copying your files in custom components ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 11, 2021

@Seb0101 no worries, I am pretty busy as well :).

@Seb0101, @pmb91917 could you please give the latest version (https://github.com/iMicknl/ha-tahoma/archive/feature/support_HitachiAirToAirHeatPump.zip) a try when you have time? I added more debug logging (please turn on debug mode), which I need as input to decide next steps. Remove your current tahoma folder first.

Please share your log with me via email (see my profile). I added extensive logging, thus it would be best to not share this publicly just to be sure.

@Seb0101
Copy link
Author

Seb0101 commented Feb 12, 2021

Hi, I am not sure I will do that now, my last try was a disaster 2 days later... disconnected from somfy, not home, 3 days to make it back again and my automations not working in the meantime.
I supposed it was linked with my installing of your test, maybe it is not, it happened in the past (ach somfy...) but shorter. You must know better, are you confident with your last version ?

@iMicknl
Copy link
Owner

iMicknl commented Feb 12, 2021

@Seb0101 sorry to hear that. I am not sure how that could be related to this change to be honest.. This change only adds a new climate device and if there is any issue, it should only be related to this device.

Latest version can be found here: https://github.com/iMicknl/ha-tahoma/archive/feature/support_HitachiAirToAirHeatPump.zip

@pmb91917 could you give the latest version a try as well, if you have time? It won't be perfect yet, but I did fix the tahoma.get_execution_history for Hi Kumo devices! Now you should be able to retrieve your device history, which means we can better understand how to map Hi Kumo app commands to Home Assistant entities.

@pmb91917
Copy link

Hello @iMicknl, here are the debug log informations

2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] Initialized HitachiAirToAirHeatPump
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] [<pyhoma.models.StateDefinition object at 0x7f92efca00>, <pyhoma.models.StateDefinition object at 0x7f92efcfc0>, <pyhoma.models.StateDefinition object at 0x7f92efcdc0>, <pyhoma.models.StateDefinition object at 0x7f92efce40>, <pyhoma.models.StateDefinition object at 0x7f92efcc40>, <pyhoma.models.StateDefinition object at 0x7f92efcd40>, <pyhoma.models.StateDefinition object at 0x7f92efc3c0>, <pyhoma.models.StateDefinition object at 0x7f92efc380>, <pyhoma.models.StateDefinition object at 0x7f92efc980>, <pyhoma.models.StateDefinition object at 0x7f92efccc0>, <pyhoma.models.StateDefinition object at 0x7f92efcbc0>, <pyhoma.models.StateDefinition object at 0x7f92efcb80>, <pyhoma.models.StateDefinition object at 0x7f92efcc00>, <pyhoma.models.StateDefinition object at 0x7f92efcb00>, <pyhoma.models.StateDefinition object at 0x7f92efcc80>, <pyhoma.models.StateDefinition object at 0x7f92efcd00>, <pyhoma.models.StateDefinition object at 0x7f933629c0>]
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] <pyhoma.models.Device object at 0x7f98a11880>
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] [<pyhoma.models.StateDefinition object at 0x7f933c9f00>, <pyhoma.models.StateDefinition object at 0x7f933c9f40>, <pyhoma.models.StateDefinition object at 0x7f933c9500>, <pyhoma.models.StateDefinition object at 0x7f933c9f80>, <pyhoma.models.StateDefinition object at 0x7f933c9dc0>, <pyhoma.models.StateDefinition object at 0x7f933c97c0>, <pyhoma.models.StateDefinition object at 0x7f933c9480>, <pyhoma.models.StateDefinition object at 0x7f933c9fc0>, <pyhoma.models.StateDefinition object at 0x7f933c9940>, <pyhoma.models.StateDefinition object at 0x7f933c9a40>, <pyhoma.models.StateDefinition object at 0x7f933c9240>, <pyhoma.models.StateDefinition object at 0x7f933c9ac0>, <pyhoma.models.StateDefinition object at 0x7f933c9c40>, <pyhoma.models.StateDefinition object at 0x7f933c9cc0>, <pyhoma.models.StateDefinition object at 0x7f933c92c0>, <pyhoma.models.StateDefinition object at 0x7f933c9280>, <pyhoma.models.StateDefinition object at 0x7f93316c00>]
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] <pyhoma.models.Device object at 0x7f98a117d0>
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] [<pyhoma.models.StateDefinition object at 0x7f934e83c0>, <pyhoma.models.StateDefinition object at 0x7f934e8500>, <pyhoma.models.StateDefinition object at 0x7f934e8940>, <pyhoma.models.StateDefinition object at 0x7f934e8880>, <pyhoma.models.StateDefinition object at 0x7f974a2840>, <pyhoma.models.StateDefinition object at 0x7f974ebb00>, <pyhoma.models.StateDefinition object at 0x7f97a19cc0>, <pyhoma.models.StateDefinition object at 0x7f97a19f40>, <pyhoma.models.StateDefinition object at 0x7f9f764740>, <pyhoma.models.StateDefinition object at 0x7f974f7540>, <pyhoma.models.StateDefinition object at 0x7f9f7647c0>, <pyhoma.models.StateDefinition object at 0x7f9f764a40>, <pyhoma.models.StateDefinition object at 0x7f989e9540>, <pyhoma.models.StateDefinition object at 0x7f914eca40>, <pyhoma.models.StateDefinition object at 0x7f914ecc40>, <pyhoma.models.StateDefinition object at 0x7f914ece80>, <pyhoma.models.StateDefinition object at 0x7f99a91f00>]
2021-02-14 16:21:58 DEBUG (MainThread) [custom_components.tahoma.climate_devices.hitachi_air_to_air_heat_pump] <pyhoma.models.Device object at 0x7f93305b40>

2021-02-14 16:22:28 DEBUG (MainThread) [custom_components.tahoma.coordinator] EventName.DEVICE_STATE_CHANGED/None (device: ovp://0825-1988-0746/11799525, state: None -> None)
2021-02-14 16:22:28 DEBUG (MainThread) [custom_components.tahoma] Finished fetching events data in 0.153 seconds
2021-02-14 16:22:58 DEBUG (MainThread) [custom_components.tahoma] Finished fetching events data in 0.156 seconds

Devices still shown as unavailable

@pmb91917
Copy link

I just made the update from 2.4.6 to 2.4.7 via HACS (looks like the latest version has build number 2.4.6) and now i get

2021-02-14 16:56:01 DEBUG (MainThread) [custom_components.tahoma] Finished fetching events data in 0.059 seconds
2021-02-14 16:56:01 DEBUG (MainThread) [custom_components.tahoma] Unsupported device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/11799525)
2021-02-14 16:56:01 DEBUG (MainThread) [custom_components.tahoma] Unsupported device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/1751712)
2021-02-14 16:56:01 DEBUG (MainThread) [custom_components.tahoma] Unsupported device detected (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/8813866)
2021-02-14 16:56:01 DEBUG (MainThread) [custom_components.tahoma] Added gateway (0825-1988-0746 - 44 - 0)

@iMicknl
Copy link
Owner

iMicknl commented Feb 15, 2021

@pmb91917 I will have a new look, not sure what is going wrong here.

Otherwise, would you be willing to work with me via Discord and to share your credentials temporarily? It would speed up the development a lot, since those climate devices are hard to understand and implement. With other users I have seen that this helps to create a basic version in less than an hour, instead of going back and forth. (Discord: https://discord.gg/ENPcXd9j, or iMick#1903)

@pmb91917
Copy link

pmb91917 commented Mar 2, 2021

Hi, can you please resend the discord invite - the one above has been expired.

@iMicknl
Copy link
Owner

iMicknl commented Mar 3, 2021

@iMicknl
Copy link
Owner

iMicknl commented Mar 16, 2021

@Seb0101, @xorassistant, @pmb91917 would someone be interested to go over this issue with me? I would like to implement the required changes and close this issue, but I definitely need someone with this device to help :).

@github-actions
Copy link

'There hasn't been any activity on this issue recently. Is this issue still present?
Please make sure to update to the latest Home Assistant version and version of this integration to see if that solves the issue. Let us know if that works for you by adding a comment 👍.
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.'

@seblang
Copy link

seblang commented May 21, 2021

Hi iMicknl,

No feedback from Seb0101, xorassistant or pmb91917 ?
I am fassing the quite same issue :

[custom_components.tahoma] Unsupported device detected (hlrrwifi:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - hlrrwifi://0501-6831-2426/1)

if you want I am avaialable to go over on this issue.
regards
sebastien

@iMicknl
Copy link
Owner

iMicknl commented May 27, 2021

@Seb0101 @pmb91917 you could give https://github.com/iMicknl/ha-tahoma/archive/refs/heads/feature/support_HitachiAirToAirHeatPump.zip a try when you have time.

The only thing that doesn't work yet is that it seems that you need to refresh the states after you execute a command... This means that after a change, it can take a few minutes before the status is updated in Home Assistant.

@pmb91917
Copy link

Hi,

just tested the version but devices still shown us unavailable. The log shows

2021-05-29 01:03:24 DEBUG (MainThread) [custom_components.tahoma] Added device (ovp:HLinkMainController - HitachiHeatingSystem - HitachiAirToAirHeatPump - ovp://0825-1988-0746/11799234)
2021-05-29 01:03:24 DEBUG (MainThread) [custom_components.tahoma] Added gateway (0825-1988-0103 - GatewayType.HI_BOX - 0)
2021-05-29 01:03:54 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.187 seconds

But even after minutes the status does not change.

@iMicknl
Copy link
Owner

iMicknl commented May 28, 2021

Are there any errors in the log? It seems that your device is slightly different compared to the other one I was able to test this with.

Would you be able to work with me via Discord (iMick #1903) so we can speed up the development? Easiest would be if you could temporary change your password and send your credentials, so I can do some live debugging on my machine. I assume that there are just some small tweaks that I need to make for your device.

@iMicknl
Copy link
Owner

iMicknl commented May 29, 2021

@pmb91917 here is a new version you could try. https://github.com/iMicknl/ha-tahoma/archive/refs/heads/feature/support_HitachiAirToAirHeatPump.zip

It shows the right information, but I didn't try any commands yet.

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

Successfully merging a pull request may close this issue.

5 participants