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

bug: device labels changed #29

Closed an-mediola closed 2 years ago

an-mediola commented 2 years ago

@llavorel-somfy , I've faced with a strange phenomenon.
Until yesterday, I was getting the correct name of device by using the label field.
Today, the label is automatically changed to something like this "label": "IO (4792196)".
tahomalink.com still shows the correct name(OXIMO io)! What can be the reason and how can I prevent this?
The only thing that is changed is that device was unplugged for a while.
Maybe this helps for debugging.

This is what am I getting right now :

{
    "deviceURL": "io://1224-5722-0308/4792196",
    "available": true,
    "synced": true,
    "type": 1,
    "states": [
        {
            "type": 3,
            "name": "core:StatusState",
            "value": "available"
        },
        {
            "type": 3,
            "name": "core:DiscreteRSSILevelState",
            "value": "normal"
        },
        {
            "type": 1,
            "name": "core:RSSILevelState",
            "value": 46
        },
        {
            "type": 1,
            "name": "core:ClosureState",
            "value": 56
        },
        {
            "type": 3,
            "name": "core:OpenClosedState",
            "value": "open"
        },
        {
            "type": 1,
            "name": "core:TargetClosureState",
            "value": 0
        },
        {
            "type": 6,
            "name": "core:MovingState",
            "value": false
        }
    ],
    "label": "IO (4792196)",
    "subsystemId": 0,
    "attributes": [
        {
            "type": 3,
            "name": "core:Manufacturer",
            "value": "Somfy"
        }
    ],
    "enabled": true,
    "controllableName": "io:RollerShutterGenericIOComponent",
    "definition": {
        "states": [
            {
                "name": "core:DiscreteRSSILevelState"
            },
            {
                "name": "core:RSSILevelState"
            },
            {
                "name": "core:NameState"
            },
            {
                "name": "core:Memorized1PositionState"
            },
            {
                "name": "core:TargetClosureState"
            },
            {
                "name": "core:SecuredPositionState"
            },
            {
                "name": "core:ClosureState"
            },
            {
                "name": "core:OpenClosedState"
            },
            {
                "name": "core:MovingState"
            },
            {
                "name": "core:ManufacturerSettingsState"
            },
            {
                "name": "core:AdditionalStatusState"
            },
            {
                "name": "core:StatusState"
            }
        ],
        "widgetName": "PositionableRollerShutter",
        "attributes": [],
        "uiClass": "RollerShutter",
        "commands": [
            {
                "commandName": "stop",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "setDeployment",
                "paramsSig": "p1"
            },
            {
                "nparams": 1,
                "commandName": "delayedStopIdentify",
                "paramsSig": "p1"
            },
            {
                "nparams": 2,
                "commandName": "runManufacturerSettingsCommand",
                "paramsSig": "p1,p2"
            },
            {
                "commandName": "refreshMemorized1Position",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "setClosure",
                "paramsSig": "p1"
            },
            {
                "commandName": "unpairAllOneWayControllers",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "setConfigState",
                "paramsSig": "p1"
            },
            {
                "nparams": 1,
                "commandName": "pairOneWayController",
                "paramsSig": "p1,*p2"
            },
            {
                "commandName": "unpairAllOneWayControllersAndDeleteNode",
                "nparams": 0
            },
            {
                "commandName": "sendIOKey",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "wink",
                "paramsSig": "p1"
            },
            {
                "commandName": "startIdentify",
                "nparams": 0
            },
            {
                "commandName": "stopIdentify",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "unpairOneWayController",
                "paramsSig": "p1,*p2"
            },
            {
                "nparams": 1,
                "commandName": "setSecuredPosition",
                "paramsSig": "p1"
            },
            {
                "commandName": "keepOneWayControllersAndDeleteNode",
                "nparams": 0
            },
            {
                "commandName": "my",
                "nparams": 0
            },
            {
                "commandName": "up",
                "nparams": 0
            },
            {
                "commandName": "open",
                "nparams": 0
            },
            {
                "commandName": "close",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "setName",
                "paramsSig": "p1"
            },
            {
                "commandName": "identify",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "setPosition",
                "paramsSig": "p1"
            },
            {
                "commandName": "getName",
                "nparams": 0
            },
            {
                "commandName": "down",
                "nparams": 0
            },
            {
                "nparams": 1,
                "commandName": "advancedRefresh",
                "paramsSig": "p1"
            },
            {
                "nparams": 1,
                "commandName": "setMemorized1Position",
                "paramsSig": "p1"
            }
        ],
        "type": "ACTUATOR"
    }
}
llavorel-somfy commented 2 years ago

Hi @an-mediola It might be due to the fact that the Oximo was not available when the TaHoma box has reboot. Are you still facing the issue ?

llavorel-somfy commented 2 years ago

@an-mediola are you still facing this issue ?