Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Gate - DiscreteGateWithPedestrianPosition (io:DiscreteGateOpenerIOComponent) #18

Closed
francodutch opened this issue Jun 4, 2020 · 12 comments · Fixed by #13

Comments

@francodutch
Copy link

francodutch commented Jun 4, 2020

Following from this thread:

{
"creationTime":1577640280000,
"lastUpdateTime":1577640280000,
"label":"Gate",
"deviceURL":"####",
"shortcut":false,
"controllableName":"io:DiscreteGateOpenerIOComponent",
"definition":{
"commands":[
{
"commandName":"close",
"nparams":0
},
{
"commandName":"delayedStopIdentify",
"nparams":1
},
{
"commandName":"getName",
"nparams":0
},
{
"commandName":"identify",
"nparams":0
},
{
"commandName":"open",
"nparams":0
},
{
"commandName":"refreshPedestrianPosition",
"nparams":0
},
{
"commandName":"setName",
"nparams":1
},
{
"commandName":"setPedestrianPosition",
"nparams":0
},
{
"commandName":"startIdentify",
"nparams":0
},
{
"commandName":"stop",
"nparams":0
},
{
"commandName":"stopIdentify",
"nparams":0
},
{
"commandName":"wink",
"nparams":1
}
],
"states":[
{
"type":"DataState",
"qualifiedName":"core:NameState"
},
{
"values":[
"closed",
"open",
"pedestrian",
"unknown"
],
"type":"DiscreteState",
"qualifiedName":"core:OpenClosedPedestrianState"
},
{
"type":"ContinuousState",
"qualifiedName":"core:PedestrianPositionState"
},
{
"type":"ContinuousState",
"qualifiedName":"core:PriorityLockTimerState"
},
{
"type":"ContinuousState",
"qualifiedName":"core:RSSILevelState"
},
{
"values":[
"available",
"unavailable"
],
"type":"DiscreteState",
"qualifiedName":"core:StatusState"
},
{
"values":[
"comfortLevel1",
"comfortLevel2",
"comfortLevel3",
"comfortLevel4",
"environmentProtection",
"humanProtection",
"userLevel1",
"userLevel2"
],
"type":"DiscreteState",
"qualifiedName":"io:PriorityLockLevelState"
},
{
"values":[
"LSC",
"SAAC",
"SFC",
"UPS",
"externalGateway",
"localUser",
"myself",
"rain",
"security",
"temperature",
"timer",
"user",
"wind"
],
"type":"DiscreteState",
"qualifiedName":"io:PriorityLockOriginatorState"
}
],
"dataProperties":[
{
"value":"500",
"qualifiedName":"core:identifyInterval"
}
],
"widgetName":"DiscreteGateWithPedestrianPosition",
"uiClass":"Gate",
"qualifiedName":"io:DiscreteGateOpenerIOComponent",
"type":"ACTUATOR"
},
"states":[
{
"name":"core:NameState",
"type":3,
"value":"Gate"
},
{
"name":"core:PriorityLockTimerState",
"type":1,
"value":0
},
{
"name":"core:OpenClosedPedestrianState",
"type":3,
"value":"closed"
},
{
"name":"core:StatusState",
"type":3,
"value":"available"
},
{
"name":"core:RSSILevelState",
"type":2,
"value":50.0
},
{
"name":"core:PedestrianPositionState",
"type":1,
"value":50
}
],
"attributes":[

     ],
     "available":true,
     "enabled":true,
     "placeOID":"####",
     "widget":"DiscreteGateWithPedestrianPosition",
     "type":1,
     "oid":"####",
     "uiClass":"Gate"
  },
@iMicknl
Copy link
Owner

iMicknl commented Jun 4, 2020

Basis support for gates has been added and is pre-published as 1.1-alpha release on Github and HACS.

  • If you manually want to install the package, download the zip here.
  • If you use HACS, make sure you enable Show beta versions and select 1.1-alpha. If you have a previous version installed already, press re-install to install the beta.

Could you give it a try and report your findings?

@iMicknl iMicknl changed the title Add IO gate to HA Add support for Garage - DiscreteGateWithPedestrianPosition (io:DiscreteGateOpenerIOComponent) Jun 4, 2020
@iMicknl iMicknl linked a pull request Jun 4, 2020 that will close this issue
@iMicknl iMicknl changed the title Add support for Garage - DiscreteGateWithPedestrianPosition (io:DiscreteGateOpenerIOComponent) Add support for Gate - DiscreteGateWithPedestrianPosition (io:DiscreteGateOpenerIOComponent) Jun 5, 2020
@iMicknl
Copy link
Owner

iMicknl commented Jun 5, 2020

Current positions needs to be tweaked for some gates.

yes. but for a swing gate with two parts...50 makes little sense when it's closed

@iMicknl iMicknl reopened this Jun 5, 2020
@francodutch
Copy link
Author

gate opens initially but errors as follows:
Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.2806510768
Source: custom_components/tahoma/tahoma_api.py:55
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 16:27:40 (1 occurrences)
Last logged: 16:27:40

Could not login: Too many requests, try again later : login with ####

@iMicknl
Copy link
Owner

iMicknl commented Jun 5, 2020

@francodutch this is related to #24. Unfortunately the original implementation has not been super well written in regards to API usage. We are improving this, however for now, sometimes this will mean you get locked out after doing a lot of requests in a short timeframe.

@vlebourl
Copy link
Collaborator

vlebourl commented Jun 5, 2020

Bummer... you have to wait 10 to 15 minutes... restart HA once the wait is over.

@francodutch
Copy link
Author

francodutch commented Jun 5, 2020

no way to edit the value of 'position'
image

@francodutch
Copy link
Author

other than above gate opens and closes well

@francodutch
Copy link
Author

Just noticed that if gate opened/closed with remote control, status change is not registered in HA. The automatic closing after having been open for 1 minute isn't either. This looks like a Tahoma problem: seems like Tahoma doesn't get the state changes when initiated outside Tahoma.

@iMicknl
Copy link
Owner

iMicknl commented Jun 7, 2020

Basic gate support has been added, your bug above has been added as #33 and #40.

@iMicknl iMicknl closed this as completed Jun 7, 2020
@NicoLeOca
Copy link

NicoLeOca commented Oct 12, 2021

Hi @iMicknl
I would like to control the pedestrian mode of my "DiscreteGareWithPedetrianPosition" but can't find it anywhere in this integration.
I installed Homebridge to check and the pedetrian mode is available there. So I guess it's available though the Somfy API.
Is it supported by this integration too?
Thanks
NicoLeOca

@tetienne
Copy link
Collaborator

@NicoLeOca please open a new ticket. It's not supported currently, but it can be implemented.

@NicoLeOca
Copy link

Merci @tetienne
That would be great definitely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants