ha-tahoma: State not updated for Gate (io:DiscreteGateOpenerIOComponent)
Describe the bug Not sure if bug in HA or in Tahoma, but when I open the gate from HA the status of cover correctly reflects the change. WHen the gate closes automatically after two minutes or when the gate is activated through the remote control however, the status change is not passed on to HA.
To Reproduce Steps to reproduce the behaviour:
- change state of gate through cover.open_cover
- close gate using remote
- check status: still set to ‘open’
Expected behavior Status in HA should reflect physical status regardless of origin of command to open or close or stop the gate.
Environment (please complete the following information):
- Home Assistant version: 0.110.4
- Platform: cover
Device: io:DiscreteGateOpenerIOComponent
- Model: [e.g. PositionableScreen, can be gathered from device list in HA]
- Type: io:DiscreteGateOpenerIOComponent
{
"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"
},
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 42 (16 by maintainers)
ultra simple…no magic! https://paste.ubuntu.com/p/DZ256Jz3z9/.
it’s a very workable solution now. I just test on the gate being open for 2 min (plus a few seconds margin) then run the refresh_states service.
done and tested, but result is still the same. @vlebourl if you have a screenshot or indication of where to look in the dev tools that would be super
I think that if you replace the tahoma directory in the custom_components folder by the one in the said branch, you don’t have to remove the integration, just restart HA to load the new version.