iMicknl / python-overkiz-api

Async Python wrapper to interact with internal Somfy TaHoma API, or other OverKiz API's.
MIT License
47 stars 29 forks source link

NETATMO Gateway #1262

Closed Eridani78 closed 3 months ago

Eridani78 commented 4 months ago

Please consider the following LOG report if you would like to update your code to support Netatmo Gateway :

[2024-06-09 20:05:11][WARNING] : Unsupported value 92 has been returned for <enum 'GatewayType'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NetatmoConfigurationComponent has been returned for <enum 'UIWidget'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value CarbonDioxideSensor has been returned for <enum 'UIClass'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NetatmoConfigurationComponent has been returned for <enum 'UIWidget'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value CarbonDioxideSensor has been returned for <enum 'UIClass'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NetatmoConfigurationComponent has been returned for <enum 'UIWidget'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NoiseSensor has been returned for <enum 'UIClass'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NoiseSensor has been returned for <enum 'UIWidget'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value CarbonDioxideSensor has been returned for <enum 'UIClass'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NetatmoWeatherStationConfiguration has been returned for <enum 'UIWidget'>
[2024-06-09 20:05:11][WARNING] : Unsupported protocol netatmo has been returned for <enum 'Protocol'>
[2024-06-09 20:05:11][WARNING] : Unsupported value NetatmoHome has been returned for <enum 'UIWidget'>`

Thanks

iMicknl commented 4 months ago

@Eridani78 how are you consuming this library? We can add these values to our enums, however you still need to write your own implementation.

For my understanding, why would you want to consume Netatmo device through Overkiz? Which gateway/hub do you have?

Eridani78 commented 3 months ago

Hi Mick, I am trying to develop my own application (mainly written in PHP) in order to control some devices belonging to the Somfy families. I am not using HA. Your lib is great (thank you for that Mick) and I found very convenient to use it to perform communication via Overkiz APIs. In the last Somfy App, it is possible to bridge with other environment such as Netatmo, Hue, ...

I am using a Somfy Tahoma gateway. When I "getSetup" via your lib, I import Somfy data along with extra environment data (Netatmo, Hue, ...).

So I provided these warning messages to you (and previously some other error messages) if you want to update your enums but it is just a proposal, not a formal request. It is up to you and if you think, it will have no impact on your code operation.

Thanks again

iMicknl commented 3 months ago

Thanks @Eridani78! We will include these values in the library.

Do you have more details about your gateway? Do you have a specific version of the Somfy TaHoma Gateway? We haven't seen this GatewayType before. [2024-06-09 20:05:11][WARNING] : Unsupported value 92 has been returned for <enum 'GatewayType'>

This library is mainly used in Home Assistant and here it is easy to use Netatmo and Hue directly via their integration, instead of relaying all the requests via the Somfy TaHoma integration / hub. It could be interesting to see if they have PHP libraries as well, since directly through the Hue / Netatmo API will most likely be a lot faster and stable.

Eridani78 commented 3 months ago

According to the Log report extract provided above, I unserstand 92 is the code for the Netatmo GatewayType.