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

BTicino BNTH thermostat integration #25

Open
Invernomut0 opened this issue Sep 24, 2023 · 2 comments
Open

BTicino BNTH thermostat integration #25

Invernomut0 opened this issue Sep 24, 2023 · 2 comments

Comments

@Invernomut0
Copy link

Invernomut0 commented Sep 24, 2023

Hi Tobias,
First of all I would like to congratulate you on the fantastic work you are doing. The integration is almost fabulous! Really thank you :)

I am trying to integrate the BTicino BNTH thermostats https://dev.netatmo.com/apidocumentation/control#Heating-and-Cooling
Forgive the errors/holes in the code, but I am new with this kind of integration.

Basically I replicated the structure of the BNS smart thermostat. It recognizes my devices, but I get as self._model = DeviceType.BNTH and not BNTH.

2023-09-24 17:44:12.554 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.563 DEBUG (MainThread) [custom_components.netatmo.climate] Creating climate entity: NetatmoRoom(data_handler=<custom_components.netatmo.data_handler.NetatmoDataHandler object at 0xffff61ab73d0>, room=Room(modules={'c054ce-0530-ed7efbca39e3': <custom_components.netatmo.pyatmo.modules.bticino.BNTH object at 0xffff61617b90>}, device_types={<DeviceType.BNTH: 'BNTH'>}, features={'climate'}, climate_type=<DeviceType.BNTH: 'BNTH'>, heating_power_request=None, humidity=None, reachable=None, therm_setpoint_temperature=None, therm_setpoint_mode=None, therm_measured_temperature=25.1), parent_id='649bc17f5f963dadc2058b6e', signal_name='home-649bc17f5f963dadc2058b6e') 2023-09-24 17:44:12.564 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.564 DEBUG (MainThread) [custom_components.netatmo.climate] Creating climate entity: NetatmoRoom(data_handler=<custom_components.netatmo.data_handler.NetatmoDataHandler object at 0xffff61ab73d0>, room=Room(modules={'c054ce-0630-ed7f04d834de': <custom_components.netatmo.pyatmo.modules.bticino.BNTH object at 0xffff61617bd0>}, device_types={<DeviceType.BNTH: 'BNTH'>}, features={'climate'}, climate_type=<DeviceType.BNTH: 'BNTH'>, heating_power_request=None, humidity=None, reachable=None, therm_setpoint_temperature=None, therm_setpoint_mode=None, therm_measured_temperature=25.4), parent_id='649bc17f5f963dadc2058b6e', signal_name='home-649bc17f5f963dadc2058b6e') 2023-09-24 17:44:12.564 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.565 DEBUG (MainThread) [custom_components.netatmo.climate] Creating climate entity: NetatmoRoom(data_handler=<custom_components.netatmo.data_handler.NetatmoDataHandler object at 0xffff61ab73d0>, room=Room(modules={'c054ce-0230-ed7eddd68754': <custom_components.netatmo.pyatmo.modules.bticino.BNTH object at 0xffff61617a90>}, device_types={<DeviceType.BNTH: 'BNTH'>}, features={'climate'}, climate_type=<DeviceType.BNTH: 'BNTH'>, heating_power_request=None, humidity=None, reachable=None, therm_setpoint_temperature=None, therm_setpoint_mode=None, therm_measured_temperature=25.4), parent_id='649bc17f5f963dadc2058b6e', signal_name='home-649bc17f5f963dadc2058b6e') 2023-09-24 17:44:12.565 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.565 DEBUG (MainThread) [custom_components.netatmo.climate] Creating climate entity: NetatmoRoom(data_handler=<custom_components.netatmo.data_handler.NetatmoDataHandler object at 0xffff61ab73d0>, room=Room(modules={'c054ce-0330-ed7ee6358725': <custom_components.netatmo.pyatmo.modules.bticino.BNTH object at 0xffff61617b10>}, device_types={<DeviceType.BNTH: 'BNTH'>}, features={'climate'}, climate_type=<DeviceType.BNTH: 'BNTH'>, heating_power_request=None, humidity=None, reachable=None, therm_setpoint_temperature=None, therm_setpoint_mode=None, therm_measured_temperature=25.7), parent_id='649bc17f5f963dadc2058b6e', signal_name='home-649bc17f5f963dadc2058b6e') 2023-09-24 17:44:12.566 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.566 DEBUG (MainThread) [custom_components.netatmo.climate] Creating climate entity: NetatmoRoom(data_handler=<custom_components.netatmo.data_handler.NetatmoDataHandler object at 0xffff61ab73d0>, room=Room(modules={'c054ce-0430-ed7ef2fbfde9': <custom_components.netatmo.pyatmo.modules.bticino.BNTH object at 0xffff61617b50>}, device_types={<DeviceType.BNTH: 'BNTH'>}, features={'climate'}, climate_type=<DeviceType.BNTH: 'BNTH'>, heating_power_request=None, humidity=None, reachable=None, therm_setpoint_temperature=None, therm_setpoint_mode=None, therm_measured_temperature=25.9), parent_id='649bc17f5f963dadc2058b6e', signal_name='home-649bc17f5f963dadc2058b6e') 2023-09-24 17:44:12.566 DEBUG (MainThread) [custom_components.netatmo.climate] ******* MODEL: DeviceType.BNTH 2023-09-24 17:44:12.567 DEBUG (MainThread) [custom_components.netatmo.data_handler] Publisher weather removed 2023-09-24 17:44:12.567 DEBUG (MainThread) [custom_components.netatmo.data_handler] Publisher air_care removed 2023-09-24 17:44:12.578 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: NATherm1 2023-09-24 17:44:12.586 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH 2023-09-24 17:44:12.587 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH 2023-09-24 17:44:12.587 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH 2023-09-24 17:44:12.587 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH 2023-09-24 17:44:12.588 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH 2023-09-24 17:44:12.588 DEBUG (MainThread) [custom_components.netatmo.netatmo_entity_base] MODEL: DeviceType.BNTH

If I force the _model to "BNTH" it recognizes all the devices but they all remain offline without any info....
Would you have any suggestions? Am I taking a totally wrong path?

Here you will find the added parts:
https://github.com/Invernomut0/netatmo_custom
Thank you very much again!

@Invernomut0
Copy link
Author

Nevermind :) I figured out how to fix it and now I have an alpha version with many bugs, but something works :)
I proceed like this... I need to figure out how to get the humidity and set the temperature....
image

@cgtobi
Copy link
Owner

cgtobi commented Oct 13, 2023

Nice work. Will you open PRs for pyatmo and Home Assistant? If so, feel free to tag me for review. I'd be happy to.

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