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

State not updated for Awning (io:AwningReceiverUnoIOComponent) #44

Closed
lindemar opened this issue Jun 9, 2020 · 6 comments · Fixed by #172
Closed

State not updated for Awning (io:AwningReceiverUnoIOComponent) #44

lindemar opened this issue Jun 9, 2020 · 6 comments · Fixed by #172
Labels
bug Something isn't working platform: cover

Comments

@lindemar
Copy link

lindemar commented Jun 9, 2020

Device information
I was able to copy manually all files into my Home Assistant custom components and integrate TaHoma. Now I can see all awnings but the symbols of integrated io:AwningReceiverUnoIOComponent are not updated, independent of current position.
All symbols appear permanently in bold. See attached screenshot.

Home Assistant 0.110.5
HassOS 4.10

Device details

     {
   	"creationTime": 1584186681000,
   	"lastUpdateTime": 1584186681000,
   	"label": "Living 3",
   	"deviceURL": "io://",
   	"shortcut": false,
   	"controllableName": "io:AwningReceiverUnoIOComponent",
   	"definition": {
   		"commands": [{
   				"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

   			}

   		],
   		"states": [{
   				"type": "ContinuousState",
   				"qualifiedName": "core:Memorized1PositionState"

   			},
   			{
   				"type": "DataState",
   				"qualifiedName": "core:NameState"

   			},
   			{
   				"type": "ContinuousState",
   				"qualifiedName": "core:PriorityLockTimerState"

   			},
   			{
   				"type": "ContinuousState",
   				"qualifiedName": "core:RSSILevelState"

   			},
   			{
   				"type": "ContinuousState",
   				"qualifiedName": "core:SecuredPositionState"

   			},
   			{
   				"values": [
   					"available",
   					"unavailable"

   				],
   				"type": "DiscreteState",
   				"qualifiedName": "core:StatusState"

   			},
   			{
   				"type": "ContinuousState",
   				"qualifiedName": "core:TargetClosureState"

   			},
   			{
   				"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": "PositionableHorizontalAwningUno",
   		"uiClass": "Awning",
   		"qualifiedName": "io:AwningReceiverUnoIOComponent",
   		"type": "ACTUATOR"

   	},
   	"states": [{
   			"name": "core:NameState",
   			"type": 3,
   			"value": "Living 3"

   		},
   		{
   			"name": "core:PriorityLockTimerState",
   			"type": 1,
   			"value": 0

   		},
   		{
   			"name": "core:TargetClosureState",
   			"type": 1,
   			"value": 0

   		},
   		{
   			"name": "core:StatusState",
   			"type": 3,
   			"value": "available"

   		},
   		{
   			"name": "core:RSSILevelState",
   			"type": 2,
   			"value": 50.0

   		}

   	],
   	"attributes": [


   	],
   	"available": true,
   	"enabled": true,
   	"placeOID": "",
   	"widget": "PositionableHorizontalAwningUno",
   	"type": 1,
   	"oid": "",
   	"uiClass": "Awning"

   }
@iMicknl iMicknl changed the title Add support for [ModelName] ([io:AwningReceiverUnoIOComponent]) Add support for Awning (io:AwningReceiverUnoIOComponent) Jun 9, 2020
@iMicknl
Copy link
Owner

iMicknl commented Jun 9, 2020

Could it be the same issue as #40? It looks like there is a refreshMemorized1Position command, which is similar to #40. Maybe we need to add those before the current position will be updated.

@iMicknl iMicknl added bug Something isn't working and removed new-device labels Jun 9, 2020
@iMicknl iMicknl changed the title Add support for Awning (io:AwningReceiverUnoIOComponent) State not updated for Awning (io:AwningReceiverUnoIOComponent) Jun 9, 2020
@iMicknl
Copy link
Owner

iMicknl commented Jun 9, 2020

@lindemar could you try the following branch https://github.com/iMicknl/ha-tahoma/tree/fix_44 and see if this fixes your issue?

@lindemar
Copy link
Author

lindemar commented Jun 9, 2020 via email

@lindemar
Copy link
Author

lindemar commented Jun 9, 2020 via email

@lindemar lindemar closed this as completed Jun 9, 2020
@iMicknl iMicknl reopened this Jun 9, 2020
@rabesocke
Copy link

I tested the changes with our awning plug and adapt my earlier fixes to this branch.

You find my pull request here: #48

@lindemar
Copy link
Author

lindemar commented Jun 9, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: cover
Projects
None yet
3 participants