Open Invernomut0 opened 10 months ago
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....
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.
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!