home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
68.75k stars 28.08k forks source link

Overkiz Unsupported value 128 has been returned for <enum 'GatewayType'> #116043

Open jonthekiller opened 1 week ago

jonthekiller commented 1 week ago

The problem

I have just bought a Somfy Tahoma Switch and activated the local API. When I try to configure it on HA in local API mode and putting my Somfy account credentials, I don't see any entities. After activating the debug mode, I can see the error "Unsupported value 128 has been returned for <enum 'GatewayType'>".

For the moment there is only one module shutter connected (Somfy official).

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Overkiz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/overkiz

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: pyoverkiz.enums.gateway
Source: components/overkiz/config_flow.py:382
First occurred: 6:38:01 PM (1 occurrences)
Last logged: 6:38:01 PM

Unsupported value 128 has been returned for <enum 'GatewayType'>

Additional information

Maybe it's something inside the answer of the local API /setup/devices, not sure but I put it here in case of. (XXXX-XXXX-XXXX is my gateway ID).


[
  {
    "deviceURL": "io://XXXX-XXXX-XXXX/6436689",
    "available": true,
    "synced": true,
    "type": 1,
    "states": [
      {
        "type": 3,
        "name": "core:StatusState",
        "value": "available"
      },
      {
        "type": 11,
        "name": "core:CommandLockLevelsState",
        "value": []
      },
      {
        "type": 3,
        "name": "core:DiscreteRSSILevelState",
        "value": "good"
      },
      {
        "type": 1,
        "name": "core:RSSILevelState",
        "value": 100
      },
      {
        "type": 11,
        "name": "core:ManufacturerSettingsState",
        "value": {
          "current_position": 51200
        }
      },
      {
        "type": 1,
        "name": "core:ClosureState",
        "value": 100
      },
      {
        "type": 3,
        "name": "core:OpenClosedState",
        "value": "closed"
      },
      {
        "type": 3,
        "name": "core:NameState",
        "value": "MODULE SHUTTER"
      },
      {
        "type": 1,
        "name": "core:Memorized1PositionState",
        "value": 105
      },
      {
        "type": 1,
        "name": "io:PairedMicroModuleWithLowBatteryState",
        "value": 0
      }
    ],
    "label": "MODULE SHUTTER",
    "subsystemId": 0,
    "attributes": [
      {
        "type": 10,
        "name": "core:SupportedManufacturerSettingsCommands",
        "value": [
          "set_input_ergonomy",
          "save_my_position",
          "delete_my_position",
          "reset_actuator",
          "double_power_cut"
        ]
      },
      {
        "type": 3,
        "name": "core:Manufacturer",
        "value": "Somfy"
      },
      {
        "type": 3,
        "name": "core:FirmwareRevision",
        "value": "5141146C05"
      }
    ],
    "enabled": true,
    "controllableName": "io:MicroModuleRollerShutterSomfyIOComponent",
    "definition": {
      "states": [
        {
          "name": "core:StatusState",
          "rawStateId": "2147426304"
        },
        {
          "name": "core:NameState",
          "rawStateId": "1"
        },
        {
          "name": "core:AdditionalStatusState",
          "rawStateId": "2146500645"
        },
        {
          "name": "core:ClosureState",
          "rawStateId": "16832522"
        },
        {
          "name": "core:SecuredPositionState",
          "rawStateId": "16832522"
        },
        {
          "name": "io:PairedMicroModuleWithLowBatteryState",
          "rawStateId": "84059655"
        },
        {
          "name": "core:DiscreteRSSILevelState",
          "rawStateId": "2146500638"
        },
        {
          "name": "core:RSSILevelState",
          "rawStateId": "2146500638"
        },
        {
          "name": "core:ManufacturerSettingsState",
          "rawStateId": "65537"
        },
        {
          "name": "core:OpenClosedState",
          "rawStateId": "65537"
        },
        {
          "name": "core:CommandLockLevelsState",
          "rawStateId": "commandLockLevelsState"
        },
        {
          "name": "core:ManufacturerDiagnosticsState",
          "rawStateId": "2"
        },
        {
          "name": "core:Memorized1PositionState",
          "rawStateId": "16832512"
        }
      ],
      "widgetName": "PositionableRollerShutter",
      "attributes": [
        {
          "name": "core:SupportedManufacturerSettingsCommands"
        },
        {
          "name": "core:Manufacturer"
        },
        {
          "name": "core:FirmwareRevision"
        }
      ],
      "uiClass": "RollerShutter",
      "commands": [
        {
          "commandName": "stop",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setDeployment",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "delayedStopIdentify",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "addLockLevel",
          "paramsSig": "p1,*p2"
        },
        {
          "nparams": 2,
          "commandName": "runManufacturerSettingsCommand",
          "paramsSig": "p1,p2"
        },
        {
          "commandName": "down",
          "nparams": 0
        },
        {
          "commandName": "open",
          "nparams": 0
        },
        {
          "commandName": "unpairAllOneWayControllers",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setConfigState",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "removeLockLevel",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "pairOneWayController",
          "paramsSig": "p1,*p2"
        },
        {
          "commandName": "unpairAllOneWayControllersAndDeleteNode",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "wink",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "setMemorized1Position",
          "paramsSig": "p1"
        },
        {
          "commandName": "identify",
          "nparams": 0
        },
        {
          "commandName": "startIdentify",
          "nparams": 0
        },
        {
          "commandName": "stopIdentify",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "advancedRefresh",
          "paramsSig": "p1,*p2"
        },
        {
          "commandName": "resetLockLevels",
          "nparams": 0
        },
        {
          "commandName": "keepOneWayControllersAndDeleteNode",
          "nparams": 0
        },
        {
          "commandName": "refreshMemorized1Position",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "unpairOneWayController",
          "paramsSig": "p1,*p2"
        },
        {
          "commandName": "up",
          "nparams": 0
        },
        {
          "commandName": "close",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setName",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "setSecuredPosition",
          "paramsSig": "p1"
        },
        {
          "nparams": 1,
          "commandName": "setPosition",
          "paramsSig": "p1"
        },
        {
          "commandName": "getName",
          "nparams": 0
        },
        {
          "commandName": "sendIOKey",
          "nparams": 0
        },
        {
          "commandName": "my",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setClosure",
          "paramsSig": "p1"
        }
      ],
      "type": "ACTUATOR"
    }
  },
  {
    "deviceURL": "internal://XXXX-XXXX-XXXX/wifi/0",
    "available": true,
    "synced": true,
    "type": 1,
    "states": [
      {
        "type": 1,
        "name": "internal:SignalStrengthState",
        "value": 66
      },
      {
        "type": 3,
        "name": "internal:CurrentInfraConfigState",
        "value": "NumericWave_Domo"
      },
      {
        "type": 3,
        "name": "internal:WifiModeState",
        "value": "infrastructure"
      }
    ],
    "label": "INTERNAL (wifi/0)",
    "subsystemId": 0,
    "attributes": [],
    "enabled": true,
    "controllableName": "internal:WifiComponent",
    "definition": {
      "states": [
        {
          "name": "internal:CurrentInfraConfigState",
          "rawStateId": "currentInfraConfig"
        },
        {
          "name": "internal:SignalStrengthState",
          "rawStateId": "signalStrength"
        },
        {
          "name": "internal:WifiModeState",
          "rawStateId": "mode"
        }
      ],
      "widgetName": "Wifi",
      "attributes": [],
      "uiClass": "Wifi",
      "commands": [
        {
          "nparams": 1,
          "commandName": "setWifiMode",
          "paramsSig": "p1"
        },
        {
          "commandName": "clearCredentials",
          "nparams": 0
        },
        {
          "nparams": 2,
          "commandName": "setTargetInfraConfig",
          "paramsSig": "p1,p2"
        }
      ],
      "type": "ACTUATOR"
    }
  },
  {
    "deviceURL": "io://XXXX-XXXX-XXXX/10002581",
    "available": true,
    "synced": true,
    "type": 5,
    "states": [],
    "label": "IO (10002581)",
    "subsystemId": 0,
    "attributes": [],
    "enabled": true,
    "controllableName": "io:StackComponent",
    "definition": {
      "states": [],
      "widgetName": "IOStack",
      "attributes": [],
      "uiClass": "ProtocolGateway",
      "commands": [
        {
          "nparams": 1,
          "commandName": "discoverActuators",
          "paramsSig": "p1"
        },
        {
          "commandName": "joinNetwork",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "advancedSomfyDiscover",
          "paramsSig": "p1"
        },
        {
          "commandName": "resetNetworkSecurity",
          "nparams": 0
        },
        {
          "commandName": "shareNetwork",
          "nparams": 0
        },
        {
          "nparams": 0,
          "commandName": "discover1WayController",
          "paramsSig": "*p1,*p2"
        },
        {
          "nparams": 1,
          "commandName": "discoverSensors",
          "paramsSig": "p1"
        },
        {
          "commandName": "discoverSomfyUnsetActuators",
          "nparams": 0
        }
      ],
      "type": "PROTOCOL_GATEWAY"
    }
  },
  {
    "deviceURL": "zigbee://XXXX-XXXX-XXXX/65535",
    "available": true,
    "synced": true,
    "type": 5,
    "states": [],
    "label": "ZIGBEE (65535)",
    "subsystemId": 0,
    "attributes": [],
    "enabled": true,
    "controllableName": "zigbee:TransceiverV3_0Component",
    "definition": {
      "states": [],
      "widgetName": "ZigbeeStack",
      "attributes": [],
      "uiClass": "ProtocolGateway",
      "commands": [],
      "type": "PROTOCOL_GATEWAY"
    }
  },
  {
    "deviceURL": "internal://XXXX-XXXX-XXXX/pod/0",
    "available": true,
    "synced": true,
    "type": 1,
    "states": [
      {
        "type": 3,
        "name": "core:ConnectivityState",
        "value": "online"
      },
      {
        "type": 3,
        "name": "core:NameState",
        "value": "Box"
      },
      {
        "type": 3,
        "name": "core:CountryCodeState",
        "value": "FR"
      },
      {
        "type": 1,
        "name": "internal:LightingLedPodModeState",
        "value": 1
      }
    ],
    "label": "NW-Tahoma",
    "subsystemId": 0,
    "attributes": [],
    "enabled": true,
    "controllableName": "internal:PodV3Component",
    "definition": {
      "states": [
        {
          "name": "core:ConnectivityState",
          "rawStateId": "networkConnectivity"
        },
        {
          "name": "core:LocalAccessProofState",
          "rawStateId": "localAccessProof"
        },
        {
          "name": "internal:Button2State",
          "rawStateId": "button2"
        },
        {
          "name": "core:LocalIPv4AddressState",
          "rawStateId": "ip"
        },
        {
          "name": "core:CountryCodeState",
          "rawStateId": "countryCode"
        },
        {
          "name": "internal:Button3State",
          "rawStateId": "button3"
        },
        {
          "name": "internal:LightingLedPodModeState",
          "rawStateId": "lightingLedPodMode"
        },
        {
          "name": "core:NameState",
          "rawStateId": "name"
        },
        {
          "name": "internal:Button1State",
          "rawStateId": "button1"
        }
      ],
      "widgetName": "Pod",
      "attributes": [],
      "uiClass": "Pod",
      "commands": [
        {
          "commandName": "deactivateCalendar",
          "nparams": 0
        },
        {
          "commandName": "refreshPodMode",
          "nparams": 0
        },
        {
          "commandName": "getName",
          "nparams": 0
        },
        {
          "commandName": "setPodLedOff",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setCalendar",
          "paramsSig": "p1"
        },
        {
          "commandName": "setPodLedOn",
          "nparams": 0
        },
        {
          "commandName": "activateCalendar",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setLightingLedPodMode",
          "paramsSig": "p1"
        },
        {
          "commandName": "update",
          "nparams": 0
        },
        {
          "commandName": "refreshUpdateStatus",
          "nparams": 0
        },
        {
          "nparams": 1,
          "commandName": "setCountryCode",
          "paramsSig": "p1"
        }
      ],
      "type": "ACTUATOR"
    }
  }
]```
home-assistant[bot] commented 1 week ago

Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, @tronix117, mind taking a look at this issue as it has been labeled with an integration (overkiz) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `overkiz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign overkiz` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


overkiz documentation overkiz source (message by IssueLinks)

iMicknl commented 1 week ago

Unsupported value 128 has been returned for <enum 'GatewayType'> this is just a warning and should not cause any other issues.

Can you share your diagnostics? Did your roller shutter work via the Cloud API in Overkiz?

jonthekiller commented 1 week ago

When I have setup yesterday in Local API directly, the rollet shutter didn't show up, but now yes by doing the following:

I have made several tests today and everything seems working now. So I don't know if the manipulation unlocked something of a temporary bug.