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 handle multiple heaters (limited to only first heater) #4

Closed
prier4ever opened this issue Oct 29, 2019 · 7 comments
Closed

Can't handle multiple heaters (limited to only first heater) #4

prier4ever opened this issue Oct 29, 2019 · 7 comments

Comments

@prier4ever
Copy link

prier4ever commented Oct 29, 2019

I have more than one heater but only one is shown in Home Assistant, the heater with climate control is not showing. It only gets the heater 0 , is it possible to select heater 1 instead of 0.

[2019-10-29 07:31:22 DEBUG (MainThread) [incomfortclient] Gateway(hostname=10.0.0.249) instantiated.
2019-10-29 07:31:22 DEBUG (MainThread) [incomfortclient] _get(url=heaterlist.json, auth=None)
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] _get(url=heaterlist.json): response = {'heaterlist': ['********728', '********429', None, None, None, None, None, None]}
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] Heater(serial_no=********728) instantiated.
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] Heater(serial_no=********429) instantiated.
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] _get(url=data.json?heater=0, auth=None)
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] _get(url=data.json?heater=0): response = {'nodenr': 162, 'ch_temp_lsb': 165, 'ch_temp_msb': 25, 'tap_temp_lsb': 105, 'tap_temp_msb': 16, 'ch_pressure_lsb': 150, 'ch_pressure_msb': 0, 'room_temp_1_lsb': 255, 'room_temp_1_msb': 127, 'room_temp_set_1_lsb': 255, 'room_temp_set_1_msb': 127, 'room_temp_2_lsb': 255, 'room_temp_2_msb': 127, 'room_temp_set_2_lsb': 255, 'room_temp_set_2_msb': 127, 'displ_code': 126, 'IO': 0, 'serial_year': 19, 'serial_month': 5, 'serial_line': 15, 'serial_sn1': 0, 'serial_sn2': 97, 'serial_sn3': 28, 'room_set_ovr_1_msb': 0, 'room_set_ovr_1_lsb': 0, 'room_set_ovr_2_msb': 0, 'room_set_ovr_2_lsb': 0, 'rf_message_rssi': 31, 'rfstatus_cntr': 0}
2019-10-29 07:31:23 DEBUG (MainThread) [incomfortclient] Heater(********728).status() = {'display_code': 126, 'display_text': 'standby', 'fault_code': None, 'is_burning': False, 'is_failed': False, 'is_pumping': False, 'is_tapping': False, 'heater_temp': 65.65, 'tap_temp': 42.01, 'pressure': 1.5, 'serial_no': '********728', 'nodenr': 162, 'rf_message_rssi': 31, 'rfstatus_cntr': 0}](url)
@zxdavb
Copy link
Collaborator

zxdavb commented Oct 29, 2019

Sure. We can do this: can I check you have no need for multiple heaters, and that you only need to choose which heater?

@zxdavb
Copy link
Collaborator

zxdavb commented Oct 29, 2019

... can you open this issue at HAs repo? The problem is over there - it makes it easier for everyone.

@prier4ever
Copy link
Author

Multiple heaters to show up would be nice, the selection is more a workaround

@prier4ever
Copy link
Author

prier4ever commented Oct 29, 2019

... can you open this issue at HAs repo? The problem is over there - it makes it easier for everyone.

Done

Incomfort - Multiple heaters problem home-assistant/core#28318

@zxdavb
Copy link
Collaborator

zxdavb commented Oct 29, 2019

Closing this here as it is not an issue with this code.

@zxdavb zxdavb closed this as completed Oct 29, 2019
@zxdavb
Copy link
Collaborator

zxdavb commented Oct 29, 2019

Re-opening, as this functionality will require a change in this code after all.

There is a hard-coded limitation to the first heater only in the code (DEFAULT_HEATER):
https://github.com/zxdavb/incomfort-client/blob/ff758f4f0e084eaa7a1376c3f80760997f3927d4/incomfortclient/__init__.py#L222-L225

@zxdavb zxdavb reopened this Oct 29, 2019
@zxdavb zxdavb changed the title Multiple heaters Can't handle multiple heaters (limited to only first heater) Oct 29, 2019
@zxdavb
Copy link
Collaborator

zxdavb commented Oct 29, 2019

PR pushed. Resolved.

@zxdavb zxdavb closed this as completed Oct 29, 2019
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