Somfy-Developer / Somfy-TaHoma-Developer-Mode

A collection of requests to use a local API with Somfy TaHoma gateways
147 stars 12 forks source link

Wrong core:ClosureState or core:DeploymentState for io:AwningValanceIOComponent #22

Closed tetienne closed 2 years ago

tetienne commented 2 years ago

Hi,

One end user of our Home Assistant integration reported an issue related to his io:AwningValanceIOComponent. The close and open state are reversed. After investigation, I notice something unusual within the device state returned:

         {
            "name": "core:ClosureState",
            "type": 1,
            "value": 80
          },
          {
            "name": "core:OpenClosedState",
            "type": 3,
            "value": "open"
          },
          {
            "name": "core:DeploymentState",
            "type": 1,
            "value": 80
          }

As you can see core:ClosureState and core:DeploymentState have the same value. Usually, they are complementary. Their sum is 100.

Can you confirm their is something wrong? Thx

More context: https://github.com/home-assistant/core/issues/66857

llavorel-somfy commented 2 years ago

Hi @tetienne

This is not an issue:

tetienne commented 2 years ago

Thx for your explanation. That's the first time I saw this use case. But now it make totally sense.