iMicknl / ha-tahoma

Custom component for Home Assistant to interact with smart devices via Somfy TaHoma or other OverKiz based API's.
MIT License
154 stars 30 forks source link

PositionableScreen with reverse state #577

Closed thesebastianf closed 3 years ago

thesebastianf commented 3 years ago

Did you read the instructions?

The request

I have 3 SOMFY products for sun screening 2 Awnings (PositionableHorizontalAwning) that are implemented as expected 0% is closed and 100% is open 1 side screen (PositionableScreen) which is reversed in home assistant 0% open and 100% is closed

Which gateway / hub do you use?

Connexoon

Device model (optional)

No response

Device type (optional)

No response

Additional information

No response

tetienne commented 3 years ago

Hi,

Can you please report here the log you will see related to this integration once the log set to debug and HA restarted?

About your PositionableScreen, it is setup vertically or horizontally?

thesebastianf commented 3 years ago

Hey its a vertical sidescreen

not that much in DEBUG after restart

2021-09-23 10:27:41 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.280 seconds (success: True)
2021-09-23 10:27:41 DEBUG (MainThread) [custom_components.tahoma] Added device (io:VerticalExteriorAwningIOComponent - ExteriorScreen - PositionableScreen - io://0711-6308-7711/1253637)
2021-09-23 10:27:41 DEBUG (MainThread) [custom_components.tahoma] Added device (io:HorizontalAwningIOComponent - Awning - PositionableHorizontalAwning - io://0711-6308-7711/7415416)
2021-09-23 10:27:41 DEBUG (MainThread) [custom_components.tahoma] Added device (io:HorizontalAwningIOComponent - Awning - PositionableHorizontalAwning - io://0711-6308-7711/4474559)
2021-09-23 10:27:41 DEBUG (MainThread) [custom_components.tahoma] Added gateway (0711-6308-7711 - GatewayType.CONNEXOON - GatewaySubType.SOMFY_BOX)
tetienne commented 3 years ago

That’s not lot, but it’s enough to understand.

{
  "commands": [
    {
      "commandName": "advancedRefresh",
      "nparams": 1
    },
    {
      "commandName": "close",
      "nparams": 0
    },
    {
      "commandName": "delayedStopIdentify",
      "nparams": 1
    },
    {
      "commandName": "deploy",
      "nparams": 0
    },
    {
      "commandName": "down",
      "nparams": 0
    },
    {
      "commandName": "getName",
      "nparams": 0
    },
    {
      "commandName": "identify",
      "nparams": 0
    },
    {
      "commandName": "my",
      "nparams": 0
    },
    {
      "commandName": "open",
      "nparams": 0
    },
    {
      "commandName": "refreshMemorized1Position",
      "nparams": 0
    },
    {
      "commandName": "setClosure",
      "nparams": 1
    },
    {
      "commandName": "setDeployment",
      "nparams": 1
    },
    {
      "commandName": "setMemorized1Position",
      "nparams": 1
    },
    {
      "commandName": "setName",
      "nparams": 1
    },
    {
      "commandName": "setPosition",
      "nparams": 1
    },
    {
      "commandName": "setSecuredPosition",
      "nparams": 1
    },
    {
      "commandName": "startIdentify",
      "nparams": 0
    },
    {
      "commandName": "stop",
      "nparams": 0
    },
    {
      "commandName": "stopIdentify",
      "nparams": 0
    },
    {
      "commandName": "undeploy",
      "nparams": 0
    },
    {
      "commandName": "up",
      "nparams": 0
    },
    {
      "commandName": "wink",
      "nparams": 1
    },
    {
      "commandName": "runManufacturerSettingsCommand",
      "nparams": 2
    },
    {
      "commandName": "keepOneWayControllersAndDeleteNode",
      "nparams": 0
    },
    {
      "commandName": "pairOneWayController",
      "nparams": 2
    },
    {
      "commandName": "sendIOKey",
      "nparams": 0
    },
    {
      "commandName": "setConfigState",
      "nparams": 1
    },
    {
      "commandName": "unpairAllOneWayControllersAndDeleteNode",
      "nparams": 0
    },
    {
      "commandName": "unpairAllOneWayControllers",
      "nparams": 0
    },
    {
      "commandName": "unpairOneWayController",
      "nparams": 2
    }
  ],
  "states": [
    {
      "type": "DataState",
      "qualifiedName": "core:AdditionalStatusState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:ClosureState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:DeploymentState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "good",
        "low",
        "normal",
        "verylow"
      ],
      "qualifiedName": "core:DiscreteRSSILevelState"
    },
    {
      "type": "DataState",
      "qualifiedName": "core:ManufacturerSettingsState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:Memorized1PositionState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "false",
        "true"
      ],
      "qualifiedName": "core:MovingState"
    },
    {
      "type": "DataState",
      "qualifiedName": "core:NameState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "closed",
        "open"
      ],
      "qualifiedName": "core:OpenClosedState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:PriorityLockTimerState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:RSSILevelState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:SecuredPositionState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "available",
        "unavailable"
      ],
      "qualifiedName": "core:StatusState"
    },
    {
      "type": "ContinuousState",
      "qualifiedName": "core:TargetClosureState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "comfortLevel1",
        "comfortLevel2",
        "comfortLevel3",
        "comfortLevel4",
        "environmentProtection",
        "humanProtection",
        "userLevel1",
        "userLevel2"
      ],
      "qualifiedName": "io:PriorityLockLevelState"
    },
    {
      "type": "DiscreteState",
      "values": [
        "LSC",
        "SAAC",
        "SFC",
        "UPS",
        "externalGateway",
        "localUser",
        "myself",
        "rain",
        "security",
        "temperature",
        "timer",
        "user",
        "wind"
      ],
      "qualifiedName": "io:PriorityLockOriginatorState"
    }
  ],
  "dataProperties": [
    {
      "value": "500",
      "qualifiedName": "core:identifyInterval"
    }
  ],
  "widgetName": "PositionableScreen",
  "uiProfiles": [
    "StatefulDeployableVerticalAwning",
    "StatefulDeployable",
    "Deployable",
    "DeployUndeploy",
    "StatefulCloseable",
    "StatefulOpenClose",
    "OpenClose"
  ],
  "uiClass": "ExteriorScreen",
  "qualifiedName": "io:VerticalExteriorAwningIOComponent",
  "type": "ACTUATOR"
}
tetienne commented 3 years ago

@thesebastianf Can you please try https://github.com/iMicknl/ha-tahoma/archive/refs/heads/fix/cover/reverse-state-awning.zip ?

thesebastianf commented 3 years ago

do I need to uninstall the HACS version first? or just copy the custom components folder and it will take this ?

tetienne commented 3 years ago

or just copy the custom components folder and it will take this ?

Yes this one.

thesebastianf commented 3 years ago

ok it is correct now 0 = closed and 100 = open for all types of somfys I have

The visualization that was created automatically on the Overview UI changed now aswell. It was a UP DOWN arrow for the Vertical before (labeled "Seite"below) and now for all Somfys it is image

just to let you know in case this is interesting.

thesebastianf commented 3 years ago

By the way if the button would be clickable despite the integration thinks its in e.g. the state closed would be good I think. So in case the state isnt properly reflected you could still fire a CLOSE command to the actor.

tetienne commented 3 years ago

Great to know it works fine now. Before closing this issue I have to guess why it breaks #486.

By the way if the button would be clickable despite the integration thinks its in e.g. the state closed would be good I think. So in case the state isnt properly reflected you could still fire a CLOSE command to the actor.

That’s not something a component can handle, that’s related to the HA front logic. If you want perform this, you will have to customize your dashboard with some custom card to tweak what the buttons do, like this one, but it will be out of topic here. Better to ask on the forum.

thesebastianf commented 3 years ago

486 is nothing I could observe

also the buttons work for me ... on the current prod version and on the test version you provided

thesebastianf commented 3 years ago

mhh need to add something so 0 - 100 is correct but in "history" the screen is shown as OPEN (so the label is inverted now)

image

this can also be seen on the UI. The action button is correct.... and offers as available action to open the screen. However the current state on the left side (icon) shows wrongly it is open

image

tetienne commented 3 years ago

I won’t deal with lovelace yet. But instead, we will focus on the state we returned. Can you go in the dev tools page. Deploy your screen, wait at most 30 seconds, and check if the state is well opened. Then undeploy them, and check if the state is well closed?

thesebastianf commented 3 years ago

I did. The screenshot shows all 3 of them "undeployed" 2 report Closed in that state, and the vertical sidescreen reports Open (sidescreen is the most right on the screenshot) image

If I deploy them all the states change to 2 report Open and the sidescreen reports Closed.

I do know that the sidescreen is a different Somfy IO Motor. If you are interested I can look that up.

tetienne commented 3 years ago

That’s pretty clear thx. Can you please download again the zip file, and install it? You will have more debug log.

Once done, before restarting HA, can you deploy your side screen, restart HA, and finally undeploy the sidescreen? You will see a lof more logs normally.

Can you copy paste the logs here please? (don’t move the other awnings, it will make harder to find useful information otherwize).

thesebastianf commented 3 years ago
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Initialized DataUpdateCoordinator with 0:02:00 interval.
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.047 seconds (success: True)
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='core:SupportedManufacturerSettingsCommands', type=<DataType.JSON_ARRAY: 10>, value=['dead_man_up', 'dead_man_down', 'dead_man_stop', 'dead_man_impulse_up', 'dead_man_impulse_down', 'enter_settings_mode', 'save_upper_end_limit', 'save_lower_end_limit', 'stop_after_save_limit', 'set_auto_end_limits', 'save_settings', 'invert_rotation', 'save_my_position', 'delete_my_position', 'set_obstacle_detection', 'set_type_lock', 'save_auxiliary_end_limit_entry', 'save_auxiliary_end_limit_exit', 'set_dbe_up', 'reset_actuator', 'double_power_cut', 'eject_from_setting_mode', 'enter_back_impulse_setting_mode', 'save_back_impulse_position', 'set_x_time']), State(name='core:FirmwareRevision', type=<DataType.STRING: 3>, value='5121525A07?'), State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Somfy')]), available=True, enabled=True, label='SUNEA io Seite Maest', deviceurl=io://****-****-8508/55xxxx37, controllable_name='io:VerticalExteriorAwningIOComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='advancedRefresh', nparams=1), CommandDefinition(command_name='close', nparams=0), CommandDefinition(command_name='delayedStopIdentify', nparams=1), CommandDefinition(command_name='deploy', nparams=0), CommandDefinition(command_name='down', nparams=0), CommandDefinition(command_name='getName', nparams=0), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=0), CommandDefinition(command_name='open', nparams=0), CommandDefinition(command_name='refreshMemorized1Position', nparams=0), CommandDefinition(command_name='setClosure', nparams=1), CommandDefinition(command_name='setDeployment', nparams=1), CommandDefinition(command_name='setMemorized1Position', nparams=1), CommandDefinition(command_name='setName', nparams=1), CommandDefinition(command_name='setPosition', nparams=1), CommandDefinition(command_name='setSecuredPosition', nparams=1), CommandDefinition(command_name='startIdentify', nparams=0), CommandDefinition(command_name='stop', nparams=0), CommandDefinition(command_name='stopIdentify', nparams=0), CommandDefinition(command_name='undeploy', nparams=0), CommandDefinition(command_name='up', nparams=0), CommandDefinition(command_name='wink', nparams=1), CommandDefinition(command_name='runManufacturerSettingsCommand', nparams=2), CommandDefinition(command_name='keepOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='pairOneWayController', nparams=2), CommandDefinition(command_name='sendIOKey', nparams=0), CommandDefinition(command_name='setConfigState', nparams=1), CommandDefinition(command_name='unpairAllOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='unpairAllOneWayControllers', nparams=0), CommandDefinition(command_name='unpairOneWayController', nparams=2)]), states=[StateDefinition(qualified_name='core:AdditionalStatusState', type='DataState', values=None), StateDefinition(qualified_name='core:ClosureState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:DeploymentState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:DiscreteRSSILevelState', type='DiscreteState', values=['good', 'low', 'normal', 'verylow']), StateDefinition(qualified_name='core:ManufacturerSettingsState', type='DataState', values=None), StateDefinition(qualified_name='core:Memorized1PositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:MovingState', type='DiscreteState', values=['false', 'true']), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:OpenClosedState', type='DiscreteState', values=['closed', 'open']), StateDefinition(qualified_name='core:PriorityLockTimerState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:RSSILevelState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:SecuredPositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:TargetClosureState', type='ContinuousState', values=None), StateDefinition(qualified_name='io:PriorityLockLevelState', type='DiscreteState', values=['comfortLevel1', 'comfortLevel2', 'comfortLevel3', 'comfortLevel4', 'environmentProtection', 'humanProtection', 'userLevel1', 'userLevel2']), StateDefinition(qualified_name='io:PriorityLockOriginatorState', type='DiscreteState', values=['LSC', 'SAAC', 'SFC', 'UPS', 'externalGateway', 'localUser', 'myself', 'rain', 'security', 'temperature', 'timer', 'user', 'wind'])], widget_name='PositionableScreen', ui_class='ExteriorScreen', qualified_name='io:VerticalExteriorAwningIOComponent'), data_properties=None, widget='PositionableScreen', ui_class='ExteriorScreen', states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='SUNEA io Seite M'), State(name='core:PriorityLockTimerState', type=<DataType.INTEGER: 1>, value=0), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:DiscreteRSSILevelState', type=<DataType.STRING: 3>, value='low'), State(name='core:RSSILevelState', type=<DataType.FLOAT: 2>, value=28.0), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value=False), State(name='core:ClosureState', type=<DataType.INTEGER: 1>, value=100), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='closed'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value=100), State(name='core:Memorized1PositionState', type=<DataType.INTEGER: 1>, value=88), State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value=100)]), type=<ProductType.ACTUATOR: 1>, placeoid='cb8a7b76-7090-43b8-a2da-da8611227122'))
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Somfy'), State(name='core:SupportedManufacturerSettingsCommands', type=<DataType.JSON_ARRAY: 10>, value=['dead_man_up', 'dead_man_down', 'dead_man_stop', 'dead_man_impulse_up', 'dead_man_impulse_down', 'enter_settings_mode', 'save_upper_end_limit', 'save_lower_end_limit', 'stop_after_save_limit', 'save_settings', 'invert_rotation', 'save_my_position', 'delete_my_position', 'set_dbe_up', 'reset_actuator', 'double_power_cut', 'eject_from_setting_mode', 'enter_back_impulse_setting_mode', 'save_back_impulse_position']), State(name='core:FirmwareRevision', type=<DataType.STRING: 3>, value='5071665X10?')]), available=True, enabled=True, label='SUNEA io Vertikal', deviceurl=io://****-****-8508/7xxxx16, controllable_name='io:HorizontalAwningIOComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='advancedRefresh', nparams=1), CommandDefinition(command_name='close', nparams=0), CommandDefinition(command_name='delayedStopIdentify', nparams=1), CommandDefinition(command_name='deploy', nparams=0), CommandDefinition(command_name='down', nparams=0), CommandDefinition(command_name='getName', nparams=0), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=0), CommandDefinition(command_name='open', nparams=0), CommandDefinition(command_name='refreshMemorized1Position', nparams=0), CommandDefinition(command_name='setClosure', nparams=1), CommandDefinition(command_name='setDeployment', nparams=1), CommandDefinition(command_name='setMemorized1Position', nparams=1), CommandDefinition(command_name='setName', nparams=1), CommandDefinition(command_name='setPosition', nparams=1), CommandDefinition(command_name='setSecuredPosition', nparams=1), CommandDefinition(command_name='startIdentify', nparams=0), CommandDefinition(command_name='stop', nparams=0), CommandDefinition(command_name='stopIdentify', nparams=0), CommandDefinition(command_name='undeploy', nparams=0), CommandDefinition(command_name='up', nparams=0), CommandDefinition(command_name='wink', nparams=1), CommandDefinition(command_name='runManufacturerSettingsCommand', nparams=2), CommandDefinition(command_name='keepOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='pairOneWayController', nparams=2), CommandDefinition(command_name='sendIOKey', nparams=0), CommandDefinition(command_name='setConfigState', nparams=1), CommandDefinition(command_name='unpairAllOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='unpairAllOneWayControllers', nparams=0), CommandDefinition(command_name='unpairOneWayController', nparams=2)]), states=[StateDefinition(qualified_name='core:AdditionalStatusState', type='DataState', values=None), StateDefinition(qualified_name='core:DeploymentState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:DiscreteRSSILevelState', type='DiscreteState', values=['good', 'low', 'normal', 'verylow']), StateDefinition(qualified_name='core:ManufacturerSettingsState', type='DataState', values=None), StateDefinition(qualified_name='core:Memorized1PositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:MovingState', type='DiscreteState', values=['false', 'true']), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:OpenClosedState', type='DiscreteState', values=['closed', 'open']), StateDefinition(qualified_name='core:PriorityLockTimerState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:RSSILevelState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:SecuredPositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:TargetClosureState', type='ContinuousState', values=None), StateDefinition(qualified_name='io:PriorityLockLevelState', type='DiscreteState', values=['comfortLevel1', 'comfortLevel2', 'comfortLevel3', 'comfortLevel4', 'environmentProtection', 'humanProtection', 'userLevel1', 'userLevel2']), StateDefinition(qualified_name='io:PriorityLockOriginatorState', type='DiscreteState', values=['LSC', 'SAAC', 'SFC', 'UPS', 'externalGateway', 'localUser', 'myself', 'rain', 'security', 'temperature', 'timer', 'user', 'wind'])], widget_name='PositionableHorizontalAwning', ui_class='Awning', qualified_name='io:HorizontalAwningIOComponent'), data_properties=None, widget='PositionableHorizontalAwning', ui_class='Awning', states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='SUNEA io'), State(name='core:PriorityLockTimerState', type=<DataType.INTEGER: 1>, value=0), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:DiscreteRSSILevelState', type=<DataType.STRING: 3>, value='low'), State(name='core:RSSILevelState', type=<DataType.FLOAT: 2>, value=26.0), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value=False), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='closed'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value=0), State(name='core:Memorized1PositionState', type=<DataType.INTEGER: 1>, value=71), State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value=0)]), type=<ProductType.ACTUATOR: 1>, placeoid='cb8a7b76-7090-43b8-a2da-da8xxxx122'))
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='core:Manufacturer', type=<DataType.STRING: 3>, value='Somfy'), State(name='core:SupportedManufacturerSettingsCommands', type=<DataType.JSON_ARRAY: 10>, value=['dead_man_up', 'dead_man_down', 'dead_man_stop', 'dead_man_impulse_up', 'dead_man_impulse_down', 'enter_settings_mode', 'save_upper_end_limit', 'save_lower_end_limit', 'stop_after_save_limit', 'save_settings', 'invert_rotation', 'save_my_position', 'delete_my_position', 'set_dbe_up', 'reset_actuator', 'double_power_cut', 'eject_from_setting_mode', 'enter_back_impulse_setting_mode', 'save_back_impulse_position']), State(name='core:FirmwareRevision', type=<DataType.STRING: 3>, value='5071665X10?')]), available=True, enabled=True, label='SUNEA io Haupt', deviceurl=io://****-****-8508/818xxxx59, controllable_name='io:HorizontalAwningIOComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='advancedRefresh', nparams=1), CommandDefinition(command_name='close', nparams=0), CommandDefinition(command_name='delayedStopIdentify', nparams=1), CommandDefinition(command_name='deploy', nparams=0), CommandDefinition(command_name='down', nparams=0), CommandDefinition(command_name='getName', nparams=0), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=0), CommandDefinition(command_name='open', nparams=0), CommandDefinition(command_name='refreshMemorized1Position', nparams=0), CommandDefinition(command_name='setClosure', nparams=1), CommandDefinition(command_name='setDeployment', nparams=1), CommandDefinition(command_name='setMemorized1Position', nparams=1), CommandDefinition(command_name='setName', nparams=1), CommandDefinition(command_name='setPosition', nparams=1), CommandDefinition(command_name='setSecuredPosition', nparams=1), CommandDefinition(command_name='startIdentify', nparams=0), CommandDefinition(command_name='stop', nparams=0), CommandDefinition(command_name='stopIdentify', nparams=0), CommandDefinition(command_name='undeploy', nparams=0), CommandDefinition(command_name='up', nparams=0), CommandDefinition(command_name='wink', nparams=1), CommandDefinition(command_name='runManufacturerSettingsCommand', nparams=2), CommandDefinition(command_name='keepOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='pairOneWayController', nparams=2), CommandDefinition(command_name='sendIOKey', nparams=0), CommandDefinition(command_name='setConfigState', nparams=1), CommandDefinition(command_name='unpairAllOneWayControllersAndDeleteNode', nparams=0), CommandDefinition(command_name='unpairAllOneWayControllers', nparams=0), CommandDefinition(command_name='unpairOneWayController', nparams=2)]), states=[StateDefinition(qualified_name='core:AdditionalStatusState', type='DataState', values=None), StateDefinition(qualified_name='core:DeploymentState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:DiscreteRSSILevelState', type='DiscreteState', values=['good', 'low', 'normal', 'verylow']), StateDefinition(qualified_name='core:ManufacturerSettingsState', type='DataState', values=None), StateDefinition(qualified_name='core:Memorized1PositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:MovingState', type='DiscreteState', values=['false', 'true']), StateDefinition(qualified_name='core:NameState', type='DataState', values=None), StateDefinition(qualified_name='core:OpenClosedState', type='DiscreteState', values=['closed', 'open']), StateDefinition(qualified_name='core:PriorityLockTimerState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:RSSILevelState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:SecuredPositionState', type='ContinuousState', values=None), StateDefinition(qualified_name='core:StatusState', type='DiscreteState', values=['available', 'unavailable']), StateDefinition(qualified_name='core:TargetClosureState', type='ContinuousState', values=None), StateDefinition(qualified_name='io:PriorityLockLevelState', type='DiscreteState', values=['comfortLevel1', 'comfortLevel2', 'comfortLevel3', 'comfortLevel4', 'environmentProtection', 'humanProtection', 'userLevel1', 'userLevel2']), StateDefinition(qualified_name='io:PriorityLockOriginatorState', type='DiscreteState', values=['LSC', 'SAAC', 'SFC', 'UPS', 'externalGateway', 'localUser', 'myself', 'rain', 'security', 'temperature', 'timer', 'user', 'wind'])], widget_name='PositionableHorizontalAwning', ui_class='Awning', qualified_name='io:HorizontalAwningIOComponent'), data_properties=None, widget='PositionableHorizontalAwning', ui_class='Awning', states=States(_states=[State(name='core:NameState', type=<DataType.STRING: 3>, value='SUNEA io'), State(name='core:PriorityLockTimerState', type=<DataType.INTEGER: 1>, value=0), State(name='core:StatusState', type=<DataType.STRING: 3>, value='available'), State(name='core:DiscreteRSSILevelState', type=<DataType.STRING: 3>, value='normal'), State(name='core:RSSILevelState', type=<DataType.FLOAT: 2>, value=54.0), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value=False), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='closed'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value=0), State(name='core:Memorized1PositionState', type=<DataType.INTEGER: 1>, value=99), State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value=0)]), type=<ProductType.ACTUATOR: 1>, placeoid='cb8a7b76-7090-43b8-a2da-da8xxxx122'))
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Unsupported device detected (Device(attributes=States(_states=[State(name='core:ModelName', type=<DataType.STRING: 3>, value='Sonos Play:1'), State(name='core:IPAddress', type=<DataType.STRING: 3>, value='192.xxx.1.xx'), State(name='core:PortNumber', type=<DataType.STRING: 3>, value='1400')]), available=True, enabled=True, label='Sonos PLAY:1', deviceurl=upnpcontrol://****-****-8xx8/uuid:RINCON_5CAxxxxxxxAxx400, controllable_name='upnpcontrol:SonosPlayOneComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='getMute', nparams=0), CommandDefinition(command_name='getVolume', nparams=0), CommandDefinition(command_name='mute', nparams=0), CommandDefinition(command_name='next', nparams=0), CommandDefinition(command_name='pause', nparams=0), CommandDefinition(command_name='play', nparams=0), CommandDefinition(command_name='previous', nparams=0), CommandDefinition(command_name='rewind', nparams=0), CommandDefinition(command_name='setVolume', nparams=1), CommandDefinition(command_name='stop', nparams=0), CommandDefinition(command_name='unmute', nparams=0), CommandDefinition(command_name='getAllPlayingInfo', nparams=0), CommandDefinition(command_name='getCurrentTransportActions', nparams=0), CommandDefinition(command_name='getGroupMute', nparams=0), CommandDefinition(command_name='getGroupVolume', nparams=0), CommandDefinition(command_name='getMediaInfo', nparams=0), CommandDefinition(command_name='getPositionInfo', nparams=0), CommandDefinition(command_name='getSonosFavorites', nparams=0), CommandDefinition(command_name='getSonosPlaylist', nparams=0), CommandDefinition(command_name='getTransportInfo', nparams=0), CommandDefinition(command_name='muteGroup', nparams=0), CommandDefinition(command_name='playURI', nparams=2), CommandDefinition(command_name='setGroupVolume', nparams=1), CommandDefinition(command_name='unmuteGroup', nparams=0)]), states=[StateDefinition(qualified_name='core:PlayState', type='DiscreteState', values=['forward', 'pause', 'playing', 'rewind', 'stop'])], widget_name='MediaRenderer', ui_class='MusicPlayer', qualified_name='upnpcontrol:SonosPlayOneComponent'), data_properties=None, widget='MediaRenderer', ui_class='MusicPlayer', states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, placeoid='cb8a7b76-7090-43b8-a2da-da8611227122'))
2021-09-24 14:20:49 DEBUG (MainThread) [custom_components.tahoma] Added gateway (Gateway(partners=[Partner(activated=True, name='SOMFY GmbH', id=somfy-gmbh, status='OWNER')], functions='INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS', sub_type=<GatewaySubType.SOMFY_BOX: 4>, id=****-****-8508, gateway_id=NOTHING, alive=True, mode='ACTIVE', placeoid='cb8a7b76-7090-43b8-a2da-da8611227122', time_reliable=True, connectivity=Connectivity(status='OK', protocol_version='2021.2.4'), up_to_date=True, update_status=<UpdateBoxStatus.UP_TO_DATE: 'UP_TO_DATE'>, sync_in_progress=False, type=<GatewayType.CONNEXOON: 34>))
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486094335, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label='Home Assistant', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='17c0f5fc-ac10-3e01-7473-4dxxxx1c9608', deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486094335, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443xxxxx3d8, owner_key=8d4xxxxxh-ed****-****-944a-e4xxxxxx3d8, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='17c0f5fc-ac10-3e01-7473-4d3xxxxx9608', deviceurl=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486094335, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=319, _default=None, repr=<function obfuscate_id at 0x7f4000c74940>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-8508, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486094414, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=8d4b668h-ed****-****-944a-exxxx1c43d8, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='17c0f5fc-ac10-3e01-7473-4xxxxc9608', deviceurl=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486094415, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=319, _default=None, repr=<function obfuscate_id at 0x7f4000c74940>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-8508, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-09-24 14:21:34 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.169 seconds (success: True)
2021-09-24 14:21:35 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:36 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486095121, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-8508/5573637, device_states=[State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='true'), State(name='io:PriorityLockOriginatorState', type=<DataType.NONE: 0>, value=None), State(name='io:PriorityLockLevelState', type=<DataType.NONE: 0>, value=None)], old_state=None, new_state=None)
2021-09-24 14:21:36 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486095123, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=8d4b668h-ed****-****-944a-e443ab1c43d8, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='17c0f5fc-ac10-3e01-7473-4d354d1c9608', deviceurl=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-09-24 14:21:36 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.033 seconds (success: True)
2021-09-24 14:21:37 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:38 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-09-24 14:21:39 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-09-24 14:21:40 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:41 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-09-24 14:21:42 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.047 seconds (success: True)
2021-09-24 14:21:43 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:44 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:45 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:46 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.043 seconds (success: True)
2021-09-24 14:21:47 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:48 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-09-24 14:21:49 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-09-24 14:21:50 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:51 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-09-24 14:21:52 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-09-24 14:21:53 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:54 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:55 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-09-24 14:21:56 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486115597, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-8508/5573637, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:ClosureState', type=<DataType.INTEGER: 1>, value='42'), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='42')], old_state=None, new_state=None)
2021-09-24 14:21:56 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.043 seconds (success: True)
2021-09-24 14:21:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:21:58 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.041 seconds (success: True)
2021-09-24 14:21:59 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-09-24 14:22:00 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:22:01 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-09-24 14:22:02 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-09-24 14:22:03 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:22:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:22:05 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:22:06 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.047 seconds (success: True)
2021-09-24 14:22:07 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-09-24 14:22:08 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-09-24 14:22:09 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-09-24 14:22:10 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486129948, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-8508/5573637, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:ClosureState', type=<DataType.INTEGER: 1>, value='1'), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='1')], old_state=None, new_state=None)
2021-09-24 14:22:10 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.052 seconds (success: True)
2021-09-24 14:22:11 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486130527, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-8508/5573637, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:ClosureState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='false')], old_state=None, new_state=None)
2021-09-24 14:22:11 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1632486130529, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=8d4b668h-ed****-****-944a-e443ab1c43d8, owner_key=8d4b668h-ed****-****-944a-e443ab1c43d8, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='17c0f5fc-ac10-3e01-7473-4d354d1c9608', deviceurl=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-09-24 14:22:11 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.034 seconds (success: True)
2021-09-24 14:24:11 DEBUG (MainThread) [custom_components.tahoma.coordinator] Fetching all devices and state via /setup/devices
2021-09-24 14:24:11 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.379 seconds (success: True)
tetienne commented 3 years ago

Thx. So the last event report these states:

State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), 
State(name='core:ClosureState', type=<DataType.INTEGER: 1>, value='0'), 
State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), 
State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='0'), 
State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='false')], old_state=None, new_state=None)

Somfy returned OpenClosedState as open for your PositionableScreen, while DeploymentState is well 0. For other awning device, in such case we have OpenClosedState set to closed and DeploymentState set also to 0.

So it’s why we have a weird behavior. I will contact the Somfy support to see if they can explain me what happen here.

tetienne commented 3 years ago

Just to help to understand what’s a VerticalExteriorAwningIOComponent, can you show me a picture from your’s or from one on internet?

If I treat this device as a classic cover, everything will work, but it will be confusing for you. Indeed, open will mean undeploy, and close mean deploy (like a classic vertical cover). So if you revert to the latest official version, everything should work except you will have an reversed state that you can fixed using cover template.

thesebastianf commented 3 years ago

https://terrawin.imgbolt.de/media/image/81/b2/d5/Qbus-Markise-abgesenkt-mit-Seitenmarkise_600x600.jpg

https://www.jaloucity.de/skin/frontend/default/jaloucity_rwd/images/jc-design/category-sub/markisen/markisen-qbus-beschattungssystem-mit-senkrechtmarkise.jpg

this looks exactly like mine it has 3 motors ...

  1. For the Top to deploy overhead...
  2. Another one in the front top to lower by some degree
  3. a side screen that moves from top to down on the left side in this case

I think OPEN or CLOSE can be interpreted .. if it actually means deployed or undeployed But it would be good if all behave the same.

tetienne commented 3 years ago

@thesebastianf Can you please try again https://github.com/iMicknl/ha-tahoma/archive/refs/heads/fix/cover/reverse-state-awning.zip ?

xefil commented 3 years ago

Hi @tetienne , I've same behaviour, I mean, the status of my devices is reverted. I'm using a Tahoma V2 Box and the devices are recognized as:

In all cases, they are simply reverted. If you think it's better to open a new Issue, let me know. If I can save try the above zip, let me know. Version installed 2.8.1 over a fresh updated HA setup (docker) 2021.9.7. Thanks, Simon

thesebastianf commented 3 years ago

@thesebastianf Can you please try again https://github.com/iMicknl/ha-tahoma/archive/refs/heads/fix/cover/reverse-state-awning.zip ?

Im Back Home on wednesday and will try asap then

tetienne commented 3 years ago

@xefil can you try indeed the version I linked above?

@thesebastianf thx

xefil commented 3 years ago

Hello @tetienne , Same, status inverted. I've rsynced only the ha-tahoma-fix-cover-reverse-state-awning/custom_components/tahoma/ into the HA custom_components/tahoma/ folder, and the restarted HA. Is that correct? There are different files as well, but outside the tahoma folder in your zip. Let me know in case if the replacement was made correctly or if you need more logs. Thanks, Simon

tetienne commented 3 years ago

@xefil it should be fine, files outside tahoma are not related to the component itself. Can you please open a cover with a reverse state, enable the debug mode, restart HA, close your cover, and finally copy/paste here all the logs related to the component.

xefil commented 3 years ago

Hello, debug enabled and HA restarted. Then, starting with the vertical cover OPEN (even if it's shown as Closed), I've closed it:

image ...via HA

Here the logs:

Closing:

2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355363, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label='Home Assistant', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8d6ea1-ac10-3e01-18e7-2cb63cf9dd8b', deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355364, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8d6ea1-ac10-3e01-18e7-2cb63cf9dd8b', deviceurl=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355364, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355391, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8d6ea1-ac10-3e01-18e7-2cb63cf9dd8b', deviceurl=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355394, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:05:55 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.033 seconds (success: True)
2021-10-04 11:05:56 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338355997, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value='100'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='true')], old_state=None, new_state=None)
2021-10-04 11:05:56 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338356001, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8d6ea1-ac10-3e01-18e7-2cb63cf9dd8b', deviceurl=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-10-04 11:05:56 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:05:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:05:58 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:05:59 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:00 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:01 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:02 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:03 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.028 seconds (success: True)
2021-10-04 11:06:05 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:06 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:07 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:06:08 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:09 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:10 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.043 seconds (success: True)
2021-10-04 11:06:11 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:06:12 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:13 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:14 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:06:15 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.035 seconds (success: True)
2021-10-04 11:06:16 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338376408, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='75')], old_state=None, new_state=None)
2021-10-04 11:06:17 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:18 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:19 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:20 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-10-04 11:06:21 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:22 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:23 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338382547, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='98')], old_state=None, new_state=None)
2021-10-04 11:06:23 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.041 seconds (success: True)
2021-10-04 11:06:24 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338383687, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='100'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='false')], old_state=None, new_state=None)
2021-10-04 11:06:24 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338383690, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8d6ea1-ac10-3e01-18e7-2cb63cf9dd8b', deviceurl=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-10-04 11:06:24 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)

and then opening:

2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338397526, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label='Home Assistant', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8e1354-ac10-3e01-18e7-2cb6a05da0c3', deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338397526, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8e1354-ac10-3e01-18e7-2cb6a05da0c3', deviceurl=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338397527, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338397530, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8e1354-ac10-3e01-18e7-2cb6a05da0c3', deviceurl=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338397532, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:06:37 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.033 seconds (success: True)
2021-10-04 11:06:38 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.324 seconds (success: True)
2021-10-04 11:06:39 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338398141, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='true')], old_state=None, new_state=None)
2021-10-04 11:06:39 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338398144, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8e1354-ac10-3e01-18e7-2cb6a05da0c3', deviceurl=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-10-04 11:06:39 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:06:40 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-10-04 11:06:41 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:42 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:43 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-10-04 11:06:44 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.067 seconds (success: True)
2021-10-04 11:06:45 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:46 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:47 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:48 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:49 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.033 seconds (success: True)
2021-10-04 11:06:50 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:51 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:52 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:53 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:54 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:06:55 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.037 seconds (success: True)
2021-10-04 11:06:56 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.280 seconds (success: True)
2021-10-04 11:06:58 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:06:59 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338418559, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='32')], old_state=None, new_state=None)
2021-10-04 11:06:59 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:07:00 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:07:01 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:07:02 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:07:03 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:07:04 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:07:05 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:07:06 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:07:07 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338426727, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='4')], old_state=None, new_state=None)
2021-10-04 11:07:07 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:07:08 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338427823, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/10579084, device_states=[State(name='core:ManufacturerSettingsState', type=<DataType.NONE: 0>, value=None), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='closed'), State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='false')], old_state=None, new_state=None)
2021-10-04 11:07:08 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633338427827, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=-1, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4a8e1354-ac10-3e01-18e7-2cb6a05da0c3', deviceurl=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.COMPLETED: 'COMPLETED'>)
2021-10-04 11:07:08 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.039 seconds (success: True)

Thanks @tetienne !

Simon

tetienne commented 3 years ago

@xefil Thx for the quick feedback. Looking at your logs, everything seems OK. When you deploy your awning image, at the end you well have DeploymentState set to 100. And when you undeploy, you well have DeploymentState set to 0.

Your cover are setup vertically? In such case, it can be confusing, and the HA wording will be not accurate. close means undeploy, and open means deploy.

xefil commented 3 years ago

Hello, Well, yess, I've two covers that are installed vertically and recognized as PositionableHorizontalAwning by Somfy and one horizontally as PergolaHorizontalAwning by Somfy.

For the first two, what do you suggest? Isn't there a way to override? Even on Tahoma Box, I don't know.

For the PergolaHorizontalAwning that's the same btw. In fact it is the Pergola Roof. Now it's closed and on HA looks Open.

Here a test opening it pressing the following button which is the only one I can press: image

In fact it opens the roof:

2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340657510, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label='Home Assistant', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340657511, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340657511, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340657514, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340657516, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=379, _default=None, repr=<function obfuscate_id at 0x7fb9d03911f0>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-6059, exec_id=None, deviceurl=None, device_states=[], old_state=None, new_state=None)
2021-10-04 11:44:17 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.043 seconds (success: True)
2021-10-04 11:44:18 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.032 seconds (success: True)
2021-10-04 11:44:19 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340658134, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/11447718, device_states=[State(name='core:TargetClosureState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='true')], old_state=None, new_state=None)
2021-10-04 11:44:19 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340658137, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=None, device_states=[], old_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>, new_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>)
2021-10-04 11:44:19 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:44:20 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.028 seconds (success: True)
2021-10-04 11:44:21 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:22 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:23 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:24 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:25 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.282 seconds (success: True)
2021-10-04 11:44:26 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:27 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:28 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:29 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:30 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:44:31 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:32 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:33 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:34 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:35 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:36 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:37 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:38 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:39 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340678369, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/11447718, device_states=[State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='49'), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='open')], old_state=None, new_state=None)
2021-10-04 11:44:39 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.031 seconds (success: True)
2021-10-04 11:44:40 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:41 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:42 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:43 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:44 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:45 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:46 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:47 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:48 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:49 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.045 seconds (success: True)
2021-10-04 11:44:50 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.282 seconds (success: True)
2021-10-04 11:44:51 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:52 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:53 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.029 seconds (success: True)
2021-10-04 11:44:54 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.041 seconds (success: True)
2021-10-04 11:44:55 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:56 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:57 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.030 seconds (success: True)
2021-10-04 11:44:58 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340697504, name=<EventName.DEVICE_STATE_CHANGED: 'DeviceStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id=None, deviceurl=io://****-****-6059/11447718, device_states=[State(name='core:DeploymentState', type=<DataType.INTEGER: 1>, value='0'), State(name='core:OpenClosedState', type=<DataType.STRING: 3>, value='closed'), State(name='core:MovingState', type=<DataType.BOOLEAN: 6>, value='false')], old_state=None, new_state=None)
2021-10-04 11:44:58 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340697508, name=<EventName.COMMAND_EXECUTION_STATE_CHANGE: 'CommandExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=<FailureType.WHILEEXEC_BLOCKED_BY_HAZARD: 161>, failure_type='WHILEEXEC_BLOCKED_BY_HAZARD', condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=io://****-****-6059/11447718, device_states=[], old_state=None, new_state=<ExecutionState.FAILED: 'FAILED'>)
2021-10-04 11:44:58 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1633340697509, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=83ebcef****-9d****-446a-8ae****-8763f70f802d, owner_key=83ebcef****-9d****-446a-8ae****-8763f70f802d, type=1, sub_type=1, time_to_next_state=-1, failed_commands=[{'deviceurl': 'io://1226-9556-6059/11447718', 'rank': 0, 'failure_type': 'WHILEEXEC_BLOCKED_BY_HAZARD'}], failure_type_code=<FailureType.WHILEEXEC_BLOCKED_BY_HAZARD: 161>, failure_type='WHILEEXEC_BLOCKED_BY_HAZARD', condition_groupoid=None, placeoid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='4ab08f63-ac10-3e01-18e7-2cb6ffee3306', deviceurl=None, device_states=[], old_state=<ExecutionState.IN_PROGRESS: 'IN_PROGRESS'>, new_state=<ExecutionState.FAILED: 'FAILED'>)
2021-10-04 11:44:58 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.034 seconds (success: True)

Maybe it's in fact the status of the cover that doesn't reflect the action. I mean, for horizzontal, it's correct that the cover must be stretched https://user-images.githubusercontent.com/8216238/135826789-0f98755a-9db9-422f-9e68-b0ee8a881130.png but the roof must be shown as closed at the end. So in this case the buttons are shown correct for the actions they do, but the status is incorrect.

Ideas?

Simon

tetienne commented 3 years ago

@xefil On my side, I cannot do more. Indeed, as you are using a motor for horizontal devices, you will have a reverse state. For such case, you will have to create some template cover: https://www.home-assistant.io/integrations/cover.template/ to reverse the behavior.

xefil commented 3 years ago

Hello @tetienne , sorry, let me reassume if I've understood correctly: for both scenarios, 2x PositionableHorizontalAwning and 1x PergolaHorizontalAwning I've to play with cover.template to set all properly? The actual state is: PositionableHorizontalAwning: status inverted, button inverted and "wrong" (i'll need it in vertical, not horizontal) PergolaHorizontalAwning: status inverted, button inverted but correct type. Thanks, Simon!

iMicknl commented 3 years ago

@xefil I would also advise to see if you can change the type, however this has to be done by the installer probably. Not sure why he created them as HorizontalAwning when they are used in a vertical way.

How do they look in the TaHoma app?

xefil commented 3 years ago

Hello @iMicknl , On the Tahoma interface, the two PositionableHorizontalAwning are shown as terrace awning and shown as "up", also open, like they are. on HA they are Closed.

image

The PergolaHorizontalAwning is shown in the Tahoma interface as Pergola Roof, in a closed state, correctly. In HA appears as Open even if the roof is closed.

image

So in the Tahoma interface are in correct way shown. Well, the PositionableHorizontalAwning is not exactly ad awning like in the above picture, but it's vertical (correct) and follows the correct open/close state.

So the problem is on how it's recognized by ha-tasmota or shown from the API.

I've not found where to edit the device, seems no option for that!

For any suggesion, I'm there ;-)

Simon

xefil commented 3 years ago

@tetienne hello. In waiting for suggestione from @iMicknl , meanwhile, the status of the pergola roof is inverted even if it's recognized as HorizontalAwning. Is this even correct? Shoult I remap all with cover template? Thanks, Simon

tetienne commented 3 years ago

@xefil close means undeploy, and open means deploy for any kind of awning. If you see this behavior, it works as expected.

xefil commented 3 years ago

ok @tetienne no problem. strange is, from the Tahoma App the images shows it correctly, i mean open as open and closed as closed. I'm not implying the integration is working wrong, I'm really happy to use this integration. I'll try to solve the problem using covers. I've already posted help, due it's something new for me. I've checked-out even if it's possible to re-program or change device type from the motor side (1x Pergola IO Pure 40/17 and 2x Maestria IO 25/17) but in the documentation nothing is specified. Thanks.

iMicknl commented 3 years ago

@xefil what if you change the device class from awning to blind or something else (in HA)? The Awning implementation in Home Assistant is super confusing.

xefil commented 3 years ago

@iMicknl Would this change the interaction? In case how do that? Thanks! Simon

tetienne commented 3 years ago

See https://www.home-assistant.io/docs/configuration/customizing-devices/#device_class

thesebastianf commented 3 years ago

@thesebastianf Can you please try again https://github.com/iMicknl/ha-tahoma/archive/refs/heads/fix/cover/reverse-state-awning.zip ?

so I tried. the state is 0 in developer tools for when undeployed. so should be correct

the default UI looks like when all are undeployed image

anything more you need?

tetienne commented 3 years ago

@thesebastianf That’s perfect thx. I will able to merge mix fix, and release it in the next version.

xefil commented 3 years ago

Hi @iMicknl and @tetienne . Ok, cover changed with blind but this gives me only a different icon. It makes more sense on what it is for real :-) Shoud a start over with the tests? I've applied the zip fole above, should I revert back to original? Simon

iMicknl commented 3 years ago

@xefil I am afraid that it can't be fixed in your case, if your device is seen as an Awning (and it isn't an awning).